Instructions to use huggingtweets/aoc with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use huggingtweets/aoc with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="huggingtweets/aoc")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("huggingtweets/aoc") model = AutoModelForCausalLM.from_pretrained("huggingtweets/aoc", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use huggingtweets/aoc with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "huggingtweets/aoc" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "huggingtweets/aoc", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/huggingtweets/aoc
- SGLang
How to use huggingtweets/aoc 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/aoc" \ --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/aoc", "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/aoc" \ --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/aoc", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use huggingtweets/aoc with Docker Model Runner:
docker model run hf.co/huggingtweets/aoc
Commit History
-
Update model preview
f3b343e -
New model from https://wandb.ai/wandb/huggingtweets/runs/1gjmi5b8
c7ce451
-
New model from https://wandb.ai/wandb/huggingtweets/runs/1n5unoap
d0ac70f
-
upload flax model
3d93aeb -
allow flax
7908d56
-
Update model preview
4d843af -
New model from https://wandb.ai/wandb/huggingtweets/runs/11ujdz7u
3b9a625
-
Update README.md
c91e90c -
Update README.md
28ddf27 -
Update README.md
9e57e4e -
Update merges.txt
30afcc4 -
Update config.json
4a8dc9b -
Update pytorch_model.bin
e5f6aa0 -
Update special_tokens_map.json
aa39d2e -
Update vocab.json
ab53515 -
Update tokenizer_config.json
1a25d2e -
initial commit
61cceef