Text Generation
Transformers
PyTorch
Safetensors
opt
Generated from Trainer
text-generation-inference
Instructions to use jda/opt with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use jda/opt with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="jda/opt")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("jda/opt") model = AutoModelForCausalLM.from_pretrained("jda/opt", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use jda/opt with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "jda/opt" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "jda/opt", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/jda/opt
- SGLang
How to use jda/opt 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 "jda/opt" \ --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": "jda/opt", "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 "jda/opt" \ --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": "jda/opt", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use jda/opt with Docker Model Runner:
docker model run hf.co/jda/opt
Commit History
-
Model save
37a152b -
Training in progress, step 35000
efe582f
-
Training in progress, step 30000
7e6d556 -
Training in progress, step 25000
8a7a037 -
Training in progress, step 20000
99b05ee -
Training in progress, step 15000
c701ca5 -
Training in progress, step 10000
0364892 -
Training in progress, step 5000
eb33d11
-
Model save
c74ef64 -
Training in progress, step 35000
5a0e32c -
Training in progress, step 30000
2bfcba8 -
Training in progress, step 25000
6599ee2
-
Training in progress, step 20000
dcbb137 -
Training in progress, step 15000
ed35f98 -
Training in progress, step 10000
7a878ec -
Training in progress, step 5000
a53eb85
-
Model save
6427dcb
-
Model save
652ea65 -
Model save
9209daf -
Model save
3fc0af6 -
Model save
9e54340 -
Model save
a98c735 -
Model save
a750c0e