Instructions to use huggingtweets/jack with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use huggingtweets/jack with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="huggingtweets/jack")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("huggingtweets/jack") model = AutoModelForCausalLM.from_pretrained("huggingtweets/jack", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use huggingtweets/jack with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "huggingtweets/jack" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "huggingtweets/jack", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/huggingtweets/jack
- SGLang
How to use huggingtweets/jack 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/jack" \ --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/jack", "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/jack" \ --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/jack", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use huggingtweets/jack with Docker Model Runner:
docker model run hf.co/huggingtweets/jack
Commit History
-
Update model preview
4ff3174 -
Update model preview
b368e58 -
Update model preview
3e24993 -
Update model preview
edf49a0 -
New model from https://wandb.ai/wandb/huggingtweets/runs/3f3e0roo
06ffaea -
New model from https://wandb.ai/wandb/huggingtweets/runs/2lpeei6q
24e9ee6
-
Update model preview
2808b44 -
Update model preview
47453c6 -
New model from https://wandb.ai/wandb/huggingtweets/runs/1g1wg3dc
de66288
-
upload flax model
9d27c54 -
allow flax
b3ada33
-
New model from https://wandb.ai/wandb/huggingtweets/runs/1otyqptl
0aa4589
-
Update pytorch_model.bin
66508b6 -
Update README.md
16d1733 -
Update config.json
c7e7eee -
Update tokenizer_config.json
a79460d -
Update vocab.json
5964a46 -
Update merges.txt
ceae647 -
Update special_tokens_map.json
34b0674 -
initial commit
4f23859