Instructions to use huggingtweets/david_rccv with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use huggingtweets/david_rccv with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="huggingtweets/david_rccv")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("huggingtweets/david_rccv") model = AutoModelForCausalLM.from_pretrained("huggingtweets/david_rccv", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use huggingtweets/david_rccv with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "huggingtweets/david_rccv" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "huggingtweets/david_rccv", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/huggingtweets/david_rccv
- SGLang
How to use huggingtweets/david_rccv 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/david_rccv" \ --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/david_rccv", "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/david_rccv" \ --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/david_rccv", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use huggingtweets/david_rccv with Docker Model Runner:
docker model run hf.co/huggingtweets/david_rccv
Commit History
-
upload flax model
d1b5b03 -
allow flax
eb0de7a
-
Update README.md
89e9949 -
Update merges.txt
730829c -
Update vocab.json
414f982 -
Update config.json
9966d97 -
Update special_tokens_map.json
7c3cc37 -
Update tokenizer_config.json
ec7ebe1 -
Update README.md
dc23d3f -
Update pytorch_model.bin
d8d6b88 -
Update merges.txt
d7ff6a3 -
Update vocab.json
c89e8ed -
Update config.json
70c9d6e -
Update special_tokens_map.json
cdb0f34 -
Update tokenizer_config.json
e4e91da -
Update README.md
166e5c9 -
initial commit
78804bf