Instructions to use huggingtweets/lithros with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use huggingtweets/lithros with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="huggingtweets/lithros")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("huggingtweets/lithros") model = AutoModelForCausalLM.from_pretrained("huggingtweets/lithros", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use huggingtweets/lithros with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "huggingtweets/lithros" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "huggingtweets/lithros", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/huggingtweets/lithros
- SGLang
How to use huggingtweets/lithros 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/lithros" \ --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/lithros", "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/lithros" \ --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/lithros", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use huggingtweets/lithros with Docker Model Runner:
docker model run hf.co/huggingtweets/lithros
Commit History
-
upload flax model
e688452 -
allow flax
08605ae
-
Update model preview
51a2424 -
Update model preview
99efe6f -
New model from https://wandb.ai/wandb/huggingtweets/runs/1j5ekaf6
1306550 -
Update model preview
10189bd -
Update model preview
e857767 -
Update model preview
f240493 -
Update model preview
e17633c -
Update model preview
ef9fe22 -
Update model preview
5d597a3 -
Update model preview
6e222bd -
Update model preview
8a4ca43 -
Update model preview
267bf32 -
Update model preview
075cdc7 -
Update model preview
52b759c -
Update model preview
05dc8a1 -
Update model preview
6e92a66 -
Update model preview
ef0a24e -
Update model preview
ee26c10 -
Update model preview
dc4d77d -
Update model preview
7fb792a -
Update model preview
6596ce3 -
Update model preview
1d647f9 -
Update model preview
d6645fa -
New model from https://wandb.ai/wandb/huggingtweets/runs/2lrq8rtw
7fbbaa8 -
Update model preview
e94c9cd -
Update model preview
d7f83ed -
Update model preview
8c8a657 -
Update model preview
dc02db6 -
Update model preview
7c9a18a -
Update model preview
215725b -
Update model preview
a7fc687 -
Update model preview
4abd692 -
Update model preview
4cd200b -
Update model preview
44271b0 -
Update model preview
9223841 -
Update model preview
283a596 -
Update model preview
f6e6a29 -
Update model preview
17ca85a -
Update model preview
2872498 -
Update model preview
1c4284d -
Update model preview
63cc329 -
Update model preview
535dcfe -
Update model preview
eafa21a -
Update model preview
8ccda6d -
Update model preview
b4da2ed -
Update model preview
7dd237d -
Update model preview
ba123c8 -
Update model preview
cb6fb98