Instructions to use huggingtweets/theorangealt with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use huggingtweets/theorangealt with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="huggingtweets/theorangealt")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("huggingtweets/theorangealt") model = AutoModelForCausalLM.from_pretrained("huggingtweets/theorangealt", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use huggingtweets/theorangealt with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "huggingtweets/theorangealt" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "huggingtweets/theorangealt", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/huggingtweets/theorangealt
- SGLang
How to use huggingtweets/theorangealt 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/theorangealt" \ --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/theorangealt", "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/theorangealt" \ --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/theorangealt", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use huggingtweets/theorangealt with Docker Model Runner:
docker model run hf.co/huggingtweets/theorangealt
Commit History
-
upload flax model
0eb1222 -
allow flax
bf15ceb
-
Update model preview
eafc859 -
Update model preview
de814c5 -
Update model preview
f5e38b6 -
Update model preview
1c8003c -
Update model preview
c26b2a4 -
Update model preview
7770621 -
Update model preview
69793c4 -
Update model preview
47f4cb4 -
Update model preview
4d91193 -
Update model preview
1402ba6 -
Update model preview
2c7579f -
Update model preview
27656ff -
Update model preview
fde931d -
Update model preview
cc67049 -
Update model preview
90663ed -
Update model preview
14e7599 -
Update model preview
4c91371 -
Update model preview
12e6888 -
Update model preview
f8dd0bc -
Update model preview
76bb8c9 -
Update model preview
5bd6857 -
Update model preview
028e0aa -
Update model preview
0ef08d1 -
Update model preview
b456f8e -
Update model preview
bec9aa1 -
Update model preview
74efbba -
Update model preview
d3b837b -
New model from https://wandb.ai/wandb/huggingtweets/runs/10ay86fi
4b6bc66 -
initial commit
2c282b4