Instructions to use huggingtweets/ben_r_hoffman with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use huggingtweets/ben_r_hoffman with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="huggingtweets/ben_r_hoffman")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("huggingtweets/ben_r_hoffman") model = AutoModelForCausalLM.from_pretrained("huggingtweets/ben_r_hoffman", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use huggingtweets/ben_r_hoffman with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "huggingtweets/ben_r_hoffman" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "huggingtweets/ben_r_hoffman", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/huggingtweets/ben_r_hoffman
- SGLang
How to use huggingtweets/ben_r_hoffman 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/ben_r_hoffman" \ --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/ben_r_hoffman", "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/ben_r_hoffman" \ --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/ben_r_hoffman", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use huggingtweets/ben_r_hoffman with Docker Model Runner:
docker model run hf.co/huggingtweets/ben_r_hoffman
Download flax_model.msgpack from huggingtweets/ben_r_hoffman: direct link, hf CLI and curl.
- Browser
- Download file 498 MB
-
https://huggingface.co/huggingtweets/ben_r_hoffman/resolve/main/flax_model.msgpack
- Command line
-
hf download hf://huggingtweets/ben_r_hoffman/flax_model.msgpack
-
curl -L -o flax_model.msgpack https://huggingface.co/huggingtweets/ben_r_hoffman/resolve/main/flax_model.msgpack
498 MB
- Xet hash:
- bf15be34e2e265ecfee62aab9538a167eb14f67e8d9953583be35ff145c37a6e
- Size of remote file:
- 498 MB
- SHA256:
- 5e414ddad1d8cd1d297e42c4b3f05fee40629f6cd6cc35281a6bdc1db033a0b7
·
Xet efficiently stores Large Files inside Git, intelligently splitting files into unique chunks and accelerating uploads and downloads. More info.