Text Generation
Transformers
Safetensors
opt
axolotl
Generated from Trainer
conversational
text-generation-inference
Instructions to use SystemAdmin123/opt-125m with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use SystemAdmin123/opt-125m with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="SystemAdmin123/opt-125m") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("SystemAdmin123/opt-125m") model = AutoModelForCausalLM.from_pretrained("SystemAdmin123/opt-125m", device_map="auto") messages = [ {"role": "user", "content": "Who are you?"}, ] inputs = tokenizer.apply_chat_template( messages, add_generation_prompt=True, tokenize=True, return_dict=True, return_tensors="pt", ).to(model.device) outputs = model.generate(**inputs, max_new_tokens=256) print(tokenizer.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use SystemAdmin123/opt-125m with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "SystemAdmin123/opt-125m" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "SystemAdmin123/opt-125m", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/SystemAdmin123/opt-125m
- SGLang
How to use SystemAdmin123/opt-125m 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 "SystemAdmin123/opt-125m" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "SystemAdmin123/opt-125m", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'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 "SystemAdmin123/opt-125m" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "SystemAdmin123/opt-125m", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use SystemAdmin123/opt-125m with Docker Model Runner:
docker model run hf.co/SystemAdmin123/opt-125m
Commit History
-
Training in progress, step 100, checkpoint
Verified signature4491653 -
Training in progress, step 80, checkpoint
Verified signatureb5153e5 -
Training in progress, step 60, checkpoint
Verified signature8811766 -
Training in progress, step 40, checkpoint
Verified signature536d119 -
Training in progress, step 20, checkpoint
Verified signatureb5b5894 -
Training in progress, step 100, checkpoint
Verified signature7d571b6
-
Training in progress, step 400, checkpoint
Verified signature39c3b57 -
Training in progress, step 350, checkpoint
Verified signaturefb8a2f5 -
Training in progress, step 300, checkpoint
Verified signaturec98d2e1 -
Training in progress, step 250, checkpoint
Verified signature7858aef -
Training in progress, step 200, checkpoint
Verified signaturea840c32 -
Training in progress, step 150, checkpoint
Verified signaturea9207e1 -
Training in progress, step 100, checkpoint
Verified signatureffc49a0 -
Training in progress, step 50, checkpoint
Verified signature092b221 -
Training in progress, step 360, checkpoint
Verified signature2aa4ee5 -
Training in progress, step 340, checkpoint
Verified signaturec027156 -
Training in progress, step 320, checkpoint
Verified signature8698f32 -
Training in progress, step 300, checkpoint
Verified signatureb9e276b -
Training in progress, step 280, checkpoint
Verified signature3afb672 -
Training in progress, step 260, checkpoint
Verified signature80add9a -
Training in progress, step 240, checkpoint
Verified signature1d276ae -
Training in progress, step 220, checkpoint
Verified signature7e9b0ec -
Training in progress, step 200, checkpoint
Verified signature9d19dbb -
Training in progress, step 180, checkpoint
Verified signaturedd53eaf -
Training in progress, step 160, checkpoint
Verified signature10c0442 -
Training in progress, step 140, checkpoint
Verified signature205563a -
Training in progress, step 120, checkpoint
Verified signaturee4df262 -
Training in progress, step 100, checkpoint
Verified signature05dbb1a -
Training in progress, step 80, checkpoint
Verified signaturef351a9d -
Training in progress, step 60, checkpoint
Verified signaturec197c5b -
Training in progress, step 40, checkpoint
Verified signature50c744a -
Training in progress, step 20, checkpoint
Verified signature249f995