Instructions to use huggingtweets/cassidoo with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use huggingtweets/cassidoo with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="huggingtweets/cassidoo")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("huggingtweets/cassidoo") model = AutoModelForCausalLM.from_pretrained("huggingtweets/cassidoo", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use huggingtweets/cassidoo with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "huggingtweets/cassidoo" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "huggingtweets/cassidoo", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/huggingtweets/cassidoo
- SGLang
How to use huggingtweets/cassidoo 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/cassidoo" \ --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/cassidoo", "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/cassidoo" \ --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/cassidoo", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use huggingtweets/cassidoo with Docker Model Runner:
docker model run hf.co/huggingtweets/cassidoo
Commit History
-
upload flax model
8fe0905 -
allow flax
c5d9edf
-
Update README.md
7d28907 -
Update README.md
7d34425 -
Update README.md
b0d349d -
Update README.md
3f7753e -
Update README.md
09a435e -
Update README.md
bd69807 -
Update README.md
71d6061 -
Update README.md
2e23811 -
Update README.md
becbe08 -
Update README.md
15e14e2 -
Update README.md
ad13216 -
Update README.md
4f581a3 -
Update README.md
f538288 -
Update README.md
e38e298 -
Update README.md
4bf5a6a -
Update README.md
500deee -
Update README.md
3c9d304 -
Update merges.txt
0746bed -
Update vocab.json
f5c60db -
Update config.json
03864db -
Update special_tokens_map.json
bcccf67 -
Update tokenizer_config.json
e4aaa9d -
Update README.md
98c915a -
Update pytorch_model.bin
b9701d2 -
Update README.md
9e35ce1 -
Update README.md
eb01c92 -
Update vocab.json
eb45230 -
Update README.md
90dc86f -
Update merges.txt
6ab0306 -
Update tokenizer_config.json
0dd4363 -
Update config.json
cec58d5 -
Update special_tokens_map.json
badf2a3 -
Update README.md
bfc4309 -
Update vocab.json
a424776 -
Update tokenizer_config.json
fb63fa2 -
Update README.md
2a4dc2e -
Update merges.txt
5d81d56 -
Update config.json
f52f5be -
Update special_tokens_map.json
3e6cd4d -
initial commit
2345269