Instructions to use huggingtweets/staenrey with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use huggingtweets/staenrey with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="huggingtweets/staenrey")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("huggingtweets/staenrey") model = AutoModelForCausalLM.from_pretrained("huggingtweets/staenrey", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use huggingtweets/staenrey with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "huggingtweets/staenrey" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "huggingtweets/staenrey", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/huggingtweets/staenrey
- SGLang
How to use huggingtweets/staenrey 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/staenrey" \ --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/staenrey", "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/staenrey" \ --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/staenrey", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use huggingtweets/staenrey with Docker Model Runner:
docker model run hf.co/huggingtweets/staenrey
Commit History
-
upload flax model
22dbe23 -
allow flax
e979398
-
Update model preview
3939da1 -
Update model preview
b7656dc -
Update model preview
eb36f99 -
Update model preview
9157851 -
Update model preview
fa7d656 -
Update model preview
920c82f -
Update model preview
ac9799e -
Update model preview
7a36c9d -
Update model preview
6fa6db7 -
Update model preview
c82971d -
Update model preview
6c41fc3 -
Update model preview
2d189de -
Update model preview
332a2f8 -
Update model preview
c520b8d -
Update model preview
5175ab4 -
New model from https://wandb.ai/wandb/huggingtweets/runs/2vt46tmy
f42df5d -
initial commit
4c8875d