Instructions to use huggingtweets/gilational with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use huggingtweets/gilational with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="huggingtweets/gilational")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("huggingtweets/gilational") model = AutoModelForCausalLM.from_pretrained("huggingtweets/gilational", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use huggingtweets/gilational with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "huggingtweets/gilational" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "huggingtweets/gilational", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/huggingtweets/gilational
- SGLang
How to use huggingtweets/gilational 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/gilational" \ --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/gilational", "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/gilational" \ --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/gilational", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use huggingtweets/gilational with Docker Model Runner:
docker model run hf.co/huggingtweets/gilational
Commit History
-
Update model preview
a2b83b1 -
Update model preview
d071312 -
Update model preview
eb3b75b -
Update model preview
8586a52 -
Update model preview
e980ceb -
Update model preview
1a14f90 -
Update model preview
eb96a80 -
Update model preview
4221ecb -
Update model preview
d50c000 -
Update model preview
db5dc1e -
Update model preview
5fe36a2 -
Update model preview
70f13e8 -
Update model preview
212c9d8 -
Update model preview
ec7c425 -
Update model preview
8dedc6a -
Update model preview
35c1a11 -
Update model preview
2b801de -
Update model preview
791ba5a -
Update model preview
a479926 -
Update model preview
b598c57 -
Update model preview
d0101f3 -
Update model preview
2db1f37 -
Update model preview
f3acb10 -
Update model preview
e07ebe9 -
Update model preview
e947e52 -
Update model preview
d5f060e -
Update model preview
59f9314 -
New model from https://wandb.ai/wandb/huggingtweets/runs/37tpk9wh
a0d7c60