Instructions to use huggingtweets/fchollet with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use huggingtweets/fchollet with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="huggingtweets/fchollet")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("huggingtweets/fchollet") model = AutoModelForCausalLM.from_pretrained("huggingtweets/fchollet", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use huggingtweets/fchollet with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "huggingtweets/fchollet" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "huggingtweets/fchollet", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/huggingtweets/fchollet
- SGLang
How to use huggingtweets/fchollet 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/fchollet" \ --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/fchollet", "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/fchollet" \ --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/fchollet", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use huggingtweets/fchollet with Docker Model Runner:
docker model run hf.co/huggingtweets/fchollet
Commit History
-
upload flax model
b600be5 -
allow flax
19b8226
-
Update special_tokens_map.json
9ab71b1 -
Update merges.txt
af0d5bf -
Update pytorch_model.bin
b8acb74 -
Update README.md
1681de5 -
Update config.json
f4f05d6 -
Update tokenizer_config.json
d2eaf94 -
Update vocab.json
9a8f88f
-
Update config.json
1354af1 -
Update README.md
f8e6759 -
Update merges.txt
3206d6b -
Update special_tokens_map.json
954a34e -
Update tokenizer_config.json
523d2b5 -
Update vocab.json
3e9bf9f -
initial commit
362ae13