Instructions to use huggingtweets/tomb_respecter with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use huggingtweets/tomb_respecter with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="huggingtweets/tomb_respecter")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("huggingtweets/tomb_respecter") model = AutoModelForCausalLM.from_pretrained("huggingtweets/tomb_respecter", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use huggingtweets/tomb_respecter with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "huggingtweets/tomb_respecter" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "huggingtweets/tomb_respecter", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/huggingtweets/tomb_respecter
- SGLang
How to use huggingtweets/tomb_respecter 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/tomb_respecter" \ --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/tomb_respecter", "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/tomb_respecter" \ --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/tomb_respecter", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use huggingtweets/tomb_respecter with Docker Model Runner:
docker model run hf.co/huggingtweets/tomb_respecter
Commit History
-
upload flax model
7f7f020 -
allow flax
fb8347c
-
Update model preview
1179aa3 -
Update model preview
1002612 -
Update model preview
f26088c -
Update model preview
4ec3abe -
Update model preview
89cd6ce -
Update model preview
5fca057 -
Update model preview
bb5cea4 -
New model from https://wandb.ai/wandb/huggingtweets/runs/1tdsteqg
6abbd9e -
Update model preview
b281130 -
New model from https://wandb.ai/wandb/huggingtweets/runs/156ee4qf
5196aee
-
Update model preview
35fa8af -
New model from https://wandb.ai/wandb/huggingtweets/runs/yi9idrjm
22b9ecb -
Update model preview
a5a8f6c -
Update model preview
4f0d1ab -
New model from https://wandb.ai/wandb/huggingtweets/runs/3q4ix17d
310798b -
Update model preview
51ee788 -
Update model preview
b17b38b -
Update model preview
8bc11b9 -
Update model preview
4b6a613 -
Update model preview
bd57ab4 -
Update model preview
3a54157 -
Update model preview
661fba2 -
Update model preview
fd8c3d7 -
Update model preview
d7462e1 -
Update model preview
bf84a96 -
Update model preview
24909a6 -
Update model preview
067711a -
Update model preview
9b6c3b1 -
Update model preview
f8ea4ca -
Update model preview
15495a5 -
New model from https://wandb.ai/wandb/huggingtweets/runs/3mw0hv09
ec632ff -
New model from https://wandb.ai/wandb/huggingtweets/runs/xrvlryyh
e7d3d05 -
initial commit
b94e284