Instructions to use huggingtweets/rusticgendarme with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use huggingtweets/rusticgendarme with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="huggingtweets/rusticgendarme")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("huggingtweets/rusticgendarme") model = AutoModelForCausalLM.from_pretrained("huggingtweets/rusticgendarme", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use huggingtweets/rusticgendarme with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "huggingtweets/rusticgendarme" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "huggingtweets/rusticgendarme", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/huggingtweets/rusticgendarme
- SGLang
How to use huggingtweets/rusticgendarme with SGLang:
Install from pip and serve model
# Install SGLang from pip: pip install sglang # Start the SGLang server: python3 -m sglang.launch_server \ --model-path "huggingtweets/rusticgendarme" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "huggingtweets/rusticgendarme", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker images
docker run --gpus all \ --shm-size 32g \ -p 30000:30000 \ -v ~/.cache/huggingface:/root/.cache/huggingface \ --env "HF_TOKEN=<secret>" \ --ipc=host \ lmsysorg/sglang:latest \ python3 -m sglang.launch_server \ --model-path "huggingtweets/rusticgendarme" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "huggingtweets/rusticgendarme", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use huggingtweets/rusticgendarme with Docker Model Runner:
docker model run hf.co/huggingtweets/rusticgendarme
Commit History
-
Update model preview
07bc003 -
Update model preview
6d8da6d -
Update model preview
9b8ae72 -
Update model preview
43fa11f -
Update model preview
9819904 -
Update model preview
13e4784 -
Update model preview
554e43e -
Update model preview
9a80f6b -
Update model preview
e346c8e -
New model from https://wandb.ai/wandb/huggingtweets/runs/2eajj2bh
291ecbc
-
Update model preview
9518ecc -
New model from https://wandb.ai/wandb/huggingtweets/runs/13i2a6ym
7ab38cd -
Update model preview
4e0019e -
New model from https://wandb.ai/wandb/huggingtweets/runs/30v45gpu
044c855
-
Update model preview
b5c688e -
Update model preview
98c5bde -
Update model preview
b564e90 -
Update model preview
943fb56 -
Update model preview
378e3ca -
Update model preview
185fd49 -
Update model preview
fa2b6c6 -
Update model preview
0d57716 -
Update model preview
6884937 -
New model from https://wandb.ai/wandb/huggingtweets/runs/2jjg7paw
dfd9353
-
Update model preview
0fda1ce -
New model from https://wandb.ai/wandb/huggingtweets/runs/1v65nmzk
f5c9646 -
initial commit
0c75ca4