Instructions to use huggingtweets/natesilver538 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use huggingtweets/natesilver538 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="huggingtweets/natesilver538")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("huggingtweets/natesilver538") model = AutoModelForCausalLM.from_pretrained("huggingtweets/natesilver538", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use huggingtweets/natesilver538 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "huggingtweets/natesilver538" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "huggingtweets/natesilver538", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/huggingtweets/natesilver538
- SGLang
How to use huggingtweets/natesilver538 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/natesilver538" \ --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/natesilver538", "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/natesilver538" \ --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/natesilver538", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use huggingtweets/natesilver538 with Docker Model Runner:
docker model run hf.co/huggingtweets/natesilver538
Commit History
-
upload flax model
cf12507 -
allow flax
694014c
-
Update model preview
397d38d -
New model from https://wandb.ai/wandb/huggingtweets/runs/8i97f9l8
899f62a
-
New model from https://wandb.ai/wandb/huggingtweets/runs/3uoounbv
baa8b96 -
New model from https://wandb.ai/wandb/huggingtweets/runs/360damz8
9a86779
-
Update merges.txt
36bf721 -
Update README.md
24e6d11 -
Update tokenizer_config.json
6041d46 -
Update vocab.json
ab9769d -
Update config.json
a8897bb -
Update special_tokens_map.json
9c75fda -
Update pytorch_model.bin
69319ab -
initial commit
89f9019