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
-
End of training
Verified signature80ed2fd -
Training in progress, step 100, checkpoint
Verified signature4491653 -
Training in progress, step 100
Verified signatureb97a4ce -
Training in progress, step 80, checkpoint
Verified signatureb5153e5 -
Training in progress, step 80
Verified signature5051259 -
Training in progress, step 60, checkpoint
Verified signature8811766 -
Training in progress, step 60
Verified signatured891e58 -
Training in progress, step 40, checkpoint
Verified signature536d119 -
Training in progress, step 40
Verified signature3362113 -
Training in progress, step 20, checkpoint
Verified signatureb5b5894 -
Training in progress, step 20
Verified signature18bf1e1 -
End of training
Verified signature9c38d59 -
Training in progress, step 100, checkpoint
Verified signature7d571b6 -
Training in progress, step 100
Verified signature5c842c0
-
Training in progress, step 400, checkpoint
Verified signature39c3b57 -
Training in progress, step 400
Verified signaturee950f5c -
Training in progress, step 350, checkpoint
Verified signaturefb8a2f5 -
Training in progress, step 350
Verified signature629cd60 -
Training in progress, step 300, checkpoint
Verified signaturec98d2e1 -
Training in progress, step 300
Verified signature5104fdf -
Training in progress, step 250, checkpoint
Verified signature7858aef -
Training in progress, step 250
Verified signaturedfb7f9a -
Training in progress, step 200, checkpoint
Verified signaturea840c32 -
Training in progress, step 200
Verified signature632b175 -
Training in progress, step 150, checkpoint
Verified signaturea9207e1 -
Training in progress, step 150
Verified signature74332b5 -
Training in progress, step 100, checkpoint
Verified signatureffc49a0 -
Training in progress, step 100
Verified signature3ae6c79 -
Training in progress, step 50, checkpoint
Verified signature092b221 -
Training in progress, step 50
Verified signature04f35a7 -
Training in progress, step 380
Verified signaturef353d35 -
Training in progress, step 360, checkpoint
Verified signature2aa4ee5 -
Training in progress, step 360
Verified signaturecdd1772 -
Training in progress, step 340, checkpoint
Verified signaturec027156 -
Training in progress, step 340
Verified signatured50a023 -
Training in progress, step 320, checkpoint
Verified signature8698f32 -
Training in progress, step 320
Verified signaturef4a286c -
Training in progress, step 300, checkpoint
Verified signatureb9e276b -
Training in progress, step 300
Verified signature7ef1983 -
Training in progress, step 280, checkpoint
Verified signature3afb672 -
Training in progress, step 280
Verified signaturef4fccc5 -
Training in progress, step 260, checkpoint
Verified signature80add9a -
Training in progress, step 260
Verified signature08d1f8e -
Training in progress, step 240, checkpoint
Verified signature1d276ae -
Training in progress, step 240
Verified signaturec6dbd0c -
Training in progress, step 220, checkpoint
Verified signature7e9b0ec -
Training in progress, step 220
Verified signature2631242 -
Training in progress, step 200, checkpoint
Verified signature9d19dbb -
Training in progress, step 200
Verified signatured7bf7c2 -
Training in progress, step 180, checkpoint
Verified signaturedd53eaf