Instructions to use huggingtweets/ericrweinstein with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use huggingtweets/ericrweinstein with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="huggingtweets/ericrweinstein")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("huggingtweets/ericrweinstein") model = AutoModelForCausalLM.from_pretrained("huggingtweets/ericrweinstein", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use huggingtweets/ericrweinstein with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "huggingtweets/ericrweinstein" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "huggingtweets/ericrweinstein", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/huggingtweets/ericrweinstein
- SGLang
How to use huggingtweets/ericrweinstein 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/ericrweinstein" \ --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/ericrweinstein", "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/ericrweinstein" \ --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/ericrweinstein", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use huggingtweets/ericrweinstein with Docker Model Runner:
docker model run hf.co/huggingtweets/ericrweinstein
Commit History
-
Update model preview
b5d6434 -
New model from https://wandb.ai/wandb/huggingtweets/runs/35jswvdg
f11455f
-
upload flax model
3a3fb6f -
allow flax
10b5150
-
Update model preview
75cd232 -
New model from https://wandb.ai/wandb/huggingtweets/runs/2kjut9bx
f610d17
-
Update README.md
0b56ffc -
Update README.md
6a0f0a3 -
Update README.md
3f274e3 -
Update README.md
7f42d3b -
Update README.md
d5446c8 -
Update config.json
29605ce -
Update special_tokens_map.json
9042258 -
Update tokenizer_config.json
9e3251d -
Update pytorch_model.bin
fc5997f -
Update merges.txt
1878ba1 -
Update vocab.json
42140ba -
Update README.md
541c92d -
initial commit
72908ed