Instructions to use huggingtweets/dril with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use huggingtweets/dril with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="huggingtweets/dril")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("huggingtweets/dril") model = AutoModelForCausalLM.from_pretrained("huggingtweets/dril", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use huggingtweets/dril with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "huggingtweets/dril" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "huggingtweets/dril", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/huggingtweets/dril
- SGLang
How to use huggingtweets/dril 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/dril" \ --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/dril", "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/dril" \ --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/dril", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use huggingtweets/dril with Docker Model Runner:
docker model run hf.co/huggingtweets/dril
Commit History
-
Adding `safetensors` variant of this model
This is an automated PR created with https://huggingface.co/spaces/safetensors/convert This new file is equivalent to `pytorch_model.bin` but safe in the sense that no arbitrary code can be put into it. These files also happen to load much faster than their pytorch counterpart: https://colab.research.google.com/github/huggingface/notebooks/blob/main/safetensors_doc/en/speed.ipynb The widgets on your model page will run using this model even if this is not merged making sure the file actually works. If you find any issues: please report here: https://huggingface.co/spaces/safetensors/convert/discussions Feel free to ignore this PR.fa46df3
-
New model from https://wandb.ai/wandb/huggingtweets/runs/k0swqzf3
623e0bc
-
New model from https://wandb.ai/wandb/huggingtweets/runs/hjrxi7hf
b46e2d9
-
New model from https://wandb.ai/wandb/huggingtweets/runs/5g1jywhh
401c40c
-
Update model preview
b742da9 -
New model from https://wandb.ai/wandb/huggingtweets/runs/uxgkx96y
f070af8
-
New model from https://wandb.ai/wandb/huggingtweets/runs/1bsup08h
fd3e5e5
-
New model from https://wandb.ai/wandb/huggingtweets/runs/1qy6q7d2
d1c041c
-
Update model preview
2bcd933 -
New model from https://wandb.ai/wandb/huggingtweets/runs/nk270ibz
d3340c5 -
Update model preview
ab7e808 -
New model from https://wandb.ai/wandb/huggingtweets/runs/25bi8ig8
7a05a1f
-
New model from https://wandb.ai/wandb/huggingtweets/runs/1ibtuzob
f0e5beb
-
Update model preview
1576712 -
New model from https://wandb.ai/wandb/huggingtweets/runs/vqfhmrlt
5f532ef
-
Update model preview
9086d89 -
New model from https://wandb.ai/wandb/huggingtweets/runs/1vdjob6t
4100692 -
Update model preview
43feb29 -
New model from https://wandb.ai/wandb/huggingtweets/runs/ds6vz063
ca39b8d
-
Update model preview
b912288 -
New model from https://wandb.ai/wandb/huggingtweets/runs/2dk3qgua
444bea0 -
Update model preview
9ae615c -
New model from https://wandb.ai/wandb/huggingtweets/runs/2tpo29b4
4ca8562 -
Update model preview
96eb53d -
New model from https://wandb.ai/wandb/huggingtweets/runs/2jpdf9xq
48327bb
-
Update model preview
ad5e906 -
New model from https://wandb.ai/wandb/huggingtweets/runs/11wk3i8q
f8fabfa -
New model from https://wandb.ai/wandb/huggingtweets/runs/6bx3jhvi
6cf3731 -
Update model preview
94fa36a -
New model from https://wandb.ai/wandb/huggingtweets/runs/1ccnk686
a8b363f
-
Update model preview
2030a03 -
New model from https://wandb.ai/wandb/huggingtweets/runs/2lxefvp2
6ba3ec5
-
Update model preview
1f94c5a -
New model from https://wandb.ai/wandb/huggingtweets/runs/2sula98d
a2e7ef2
-
Update model preview
8cd121a -
New model from https://wandb.ai/wandb/huggingtweets/runs/39n09con
fa582e9
-
Update model preview
b90a93a -
New model from https://wandb.ai/wandb/huggingtweets/runs/2ksyxrv3
2cc060d
-
Update model preview
2d35500 -
New model from https://wandb.ai/wandb/huggingtweets/runs/3lmxm66b
1d275ff
-
Update model preview
c21080f -
Update model preview
e7b998f -
New model from https://wandb.ai/wandb/huggingtweets/runs/btq6261n
044a1b6
-
Update model preview
0323b24 -
New model from https://wandb.ai/wandb/huggingtweets/runs/10ys0mxq
7c6102c
-
Update model preview
8ebfbad -
New model from https://wandb.ai/wandb/huggingtweets/runs/od1c806w
ccff713
-
New model from https://wandb.ai/wandb/huggingtweets/runs/2o0sjggo
9cab7a9
-
Update model preview
da60bf7 -
New model from https://wandb.ai/wandb/huggingtweets/runs/1bi73i4u
9fd8684