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 8200
c22f9cb -
Training in progress, step 8150
bdcbfc1 -
Training in progress, step 8100
aa4397d -
Training in progress, step 8000
3515e3d -
Training in progress, step 7950
0793f50 -
Training in progress, step 7900
2f27d7b -
Training in progress, step 7850
ad3d777 -
Training in progress, step 7800
adfc78b -
Training in progress, step 7750
540ed58 -
Training in progress, step 7700
297e94a -
Training in progress, step 7650
f1e7d52 -
Training in progress, step 7600
880b1a5 -
Training in progress, step 7550
928e57e -
Training in progress, step 7500
f4ba77a -
Training in progress, step 7450
bb8b1f3 -
Training in progress, step 7400
496df60 -
Training in progress, step 7300
fc8a363 -
Training in progress, step 7250
f11aa34 -
Training in progress, step 7200
e611808 -
Training in progress, step 7150
c1a843c -
Training in progress, step 7050
b462cd2 -
Training in progress, step 7000
b77cc5b -
Training in progress, step 6950
215dd59 -
Training in progress, step 6900
34c8eb9 -
Training in progress, step 6850
7e7ba50 -
Training in progress, step 6800
a241655 -
Training in progress, step 6750
74bd8ec -
Training in progress, step 6700
a1635d9 -
Training in progress, step 6650
a3af58c -
Training in progress, step 6600
351324f -
Training in progress, step 6550
642cb18 -
Training in progress, step 6500
a907b6a -
Training in progress, step 6450
0fa41da -
Training in progress, step 6400
1248fb8 -
Training in progress, step 6350
dadfd3b -
Training in progress, step 6300
3d677c3 -
Training in progress, step 6250
6dea600 -
Training in progress, step 6200
fe01daa -
Training in progress, step 6150
4de725e -
Training in progress, step 6100
9fc4971 -
Training in progress, step 6050
c2ce69d -
Training in progress, step 6000
db41f51 -
Training in progress, step 5950
855d75d -
Training in progress, step 5900
e0294ee -
Training in progress, step 5850
a8a9e3e -
Training in progress, step 5800
2f64321 -
Training in progress, step 5750
f009f90 -
Training in progress, step 5650
dca7592 -
Training in progress, step 5600
1598832 -
Training in progress, step 5550
643a285