Instructions to use huggingtweets/andrewfleer with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use huggingtweets/andrewfleer with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="huggingtweets/andrewfleer")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("huggingtweets/andrewfleer") model = AutoModelForCausalLM.from_pretrained("huggingtweets/andrewfleer", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use huggingtweets/andrewfleer with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "huggingtweets/andrewfleer" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "huggingtweets/andrewfleer", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/huggingtweets/andrewfleer
- SGLang
How to use huggingtweets/andrewfleer 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/andrewfleer" \ --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/andrewfleer", "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/andrewfleer" \ --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/andrewfleer", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use huggingtweets/andrewfleer with Docker Model Runner:
docker model run hf.co/huggingtweets/andrewfleer
Commit History
-
upload flax model
a8a74b7 -
allow flax
06e9410
-
Update README.md
a733e32 -
Update README.md
7cf9782 -
Update vocab.json
d79ad67 -
Update tokenizer_config.json
aff77d7 -
Update README.md
0226d51 -
Update merges.txt
0911512 -
Update config.json
332bc64 -
Update pytorch_model.bin
58241e3 -
Update special_tokens_map.json
c559e8c -
Update README.md
6110c4f -
Update README.md
fe9579c -
Update vocab.json
58a2901 -
Update tokenizer_config.json
5c6248d -
Update README.md
ef3353a -
Update merges.txt
560391b -
Update config.json
1278e1d -
Update special_tokens_map.json
6718957 -
Update README.md
28f0f5e -
Update README.md
e19200f -
Update README.md
8e37f74 -
Update README.md
d16e149 -
Update vocab.json
5947793 -
Update tokenizer_config.json
ae4d913 -
Update README.md
d071d61 -
Update merges.txt
86b96be -
Update config.json
27cb47e -
Update special_tokens_map.json
580f9ef -
initial commit
e3a2b82