Instructions to use huggingtweets/tdxf20 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use huggingtweets/tdxf20 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="huggingtweets/tdxf20")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("huggingtweets/tdxf20") model = AutoModelForCausalLM.from_pretrained("huggingtweets/tdxf20", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use huggingtweets/tdxf20 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "huggingtweets/tdxf20" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "huggingtweets/tdxf20", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/huggingtweets/tdxf20
- SGLang
How to use huggingtweets/tdxf20 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/tdxf20" \ --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/tdxf20", "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/tdxf20" \ --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/tdxf20", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use huggingtweets/tdxf20 with Docker Model Runner:
docker model run hf.co/huggingtweets/tdxf20
Commit History
-
Update model preview
8d84278 -
Update model preview
0a20137 -
New model from https://wandb.ai/wandb/huggingtweets/runs/19ikisni
78a7fbb -
Update model preview
534ec49 -
Update model preview
1e83dc6 -
Update model preview
1c14aa9 -
Update model preview
71637c7 -
Update model preview
0acfaef -
Update model preview
0458c1c -
Update model preview
caec4e8 -
Update model preview
542b74b -
Update model preview
8742cc3 -
Update model preview
b7e80d8 -
Update model preview
a7c7205 -
Update model preview
9cdd9bb -
Update model preview
ed35785 -
Update model preview
707bdd9 -
Update model preview
c3881ff -
Update model preview
e595fa9 -
Update model preview
87accdb -
Update model preview
4ba7d9c -
Update model preview
23998bd -
Update model preview
ca8b2d1 -
Update model preview
11dd903 -
Update model preview
1f86a48 -
Update model preview
2de3a04 -
New model from https://wandb.ai/wandb/huggingtweets/runs/3ughdr07
fd658b6 -
initial commit
fc82213