Instructions to use AlanRobotics/opt-assisted-generation with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use AlanRobotics/opt-assisted-generation with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="AlanRobotics/opt-assisted-generation")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("AlanRobotics/opt-assisted-generation") model = AutoModelForCausalLM.from_pretrained("AlanRobotics/opt-assisted-generation", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use AlanRobotics/opt-assisted-generation with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "AlanRobotics/opt-assisted-generation" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "AlanRobotics/opt-assisted-generation", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/AlanRobotics/opt-assisted-generation
- SGLang
How to use AlanRobotics/opt-assisted-generation 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 "AlanRobotics/opt-assisted-generation" \ --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": "AlanRobotics/opt-assisted-generation", "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 "AlanRobotics/opt-assisted-generation" \ --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": "AlanRobotics/opt-assisted-generation", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use AlanRobotics/opt-assisted-generation with Docker Model Runner:
docker model run hf.co/AlanRobotics/opt-assisted-generation
Commit History
-
Training in progress, step 5150
780ea48 -
Training in progress, step 5100
dce4807 -
Training in progress, step 5050
23f980f -
Training in progress, step 5000
cf2736c -
Training in progress, step 4850
02b4747 -
Training in progress, step 4800
7d8cbaf -
Training in progress, step 4750
072697c -
Training in progress, step 4700
18d2831 -
Training in progress, step 4650
215e1fc -
Training in progress, step 4600
c4a7b87 -
Training in progress, step 4550
23b24f8 -
Training in progress, step 4500
1229a2b -
Training in progress, step 4450
dcf0151 -
Training in progress, step 4350
fa510e4 -
Training in progress, step 4300
d9f7773 -
Training in progress, step 4250
4f978df -
Training in progress, step 4200
506e294 -
Training in progress, step 4150
85543d7 -
Training in progress, step 4100
0c264e9 -
Training in progress, step 4050
47249d9 -
Training in progress, step 4000
d08f850 -
Training in progress, step 3950
7a13d9d -
Training in progress, step 3900
6a2e325 -
Training in progress, step 3850
c0cb149 -
Training in progress, step 3800
412fd42 -
Training in progress, step 3750
0fd8bdc -
Training in progress, step 3700
1aeb58d -
Training in progress, step 3650
f0ee8cc -
Training in progress, step 3600
a667ab4 -
Training in progress, step 3550
123f36c -
Training in progress, step 3500
22c7fde -
Training in progress, step 3450
91ff7e4 -
Training in progress, step 3400
d593e53 -
Training in progress, step 3350
f87ec2e -
Training in progress, step 3300
2b878d4 -
Training in progress, step 3250
067c7b3 -
Training in progress, step 3150
239f0a8 -
Training in progress, step 3100
2062b29 -
Training in progress, step 3050
a1bd938 -
Training in progress, step 3000
1f36fc9 -
Training in progress, step 2950
837455e -
Training in progress, step 2900
3313850 -
Training in progress, step 2850
65faecd -
Training in progress, step 2800
bae429b -
Training in progress, step 2700
11f6fe8 -
Training in progress, step 2650
01c5de0 -
Training in progress, step 2600
a4647a6 -
Training in progress, step 2500
7b70f75 -
Training in progress, step 2450
1c6f6a7 -
Training in progress, step 2400
b246ce8