Instructions to use huggingtweets/antoinebordes with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use huggingtweets/antoinebordes with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="huggingtweets/antoinebordes")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("huggingtweets/antoinebordes") model = AutoModelForCausalLM.from_pretrained("huggingtweets/antoinebordes", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use huggingtweets/antoinebordes with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "huggingtweets/antoinebordes" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "huggingtweets/antoinebordes", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/huggingtweets/antoinebordes
- SGLang
How to use huggingtweets/antoinebordes 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/antoinebordes" \ --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/antoinebordes", "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/antoinebordes" \ --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/antoinebordes", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use huggingtweets/antoinebordes with Docker Model Runner:
docker model run hf.co/huggingtweets/antoinebordes
Commit History
-
upload flax model
6843c3a -
allow flax
a49b97c
-
Update pytorch_model.bin
ea4aefd -
Update config.json
4160a1e -
Update README.md
167741f -
Update merges.txt
b46a483 -
Update tokenizer_config.json
512ff1e -
Update vocab.json
9806967 -
Update special_tokens_map.json
06196b4
-
Update README.md
a0688fa -
Update README.md
11830f9 -
Update special_tokens_map.json
0fec807 -
Update merges.txt
f47de34 -
Update config.json
2bb474b -
Update tokenizer_config.json
3ee3677 -
Update vocab.json
d5b3b56 -
Update special_tokens_map.json
5579d48 -
Update README.md
d751e2b -
Update merges.txt
c77af40 -
Update config.json
2dd4354 -
Update tokenizer_config.json
eb8d862 -
Update vocab.json
5716a04 -
initial commit
4098517