Text Generation
Transformers
Safetensors
qwen2
Generated from Trainer
open-r1
trl
grpo
conversational
text-generation-inference
Instructions to use kguo2/output_dir with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use kguo2/output_dir with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="kguo2/output_dir") 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("kguo2/output_dir") model = AutoModelForCausalLM.from_pretrained("kguo2/output_dir", 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 kguo2/output_dir with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "kguo2/output_dir" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "kguo2/output_dir", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/kguo2/output_dir
- SGLang
How to use kguo2/output_dir 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 "kguo2/output_dir" \ --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": "kguo2/output_dir", "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 "kguo2/output_dir" \ --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": "kguo2/output_dir", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use kguo2/output_dir with Docker Model Runner:
docker model run hf.co/kguo2/output_dir
Commit History
-
End of training
Verified signature5275b8b -
Model save
Verified signaturebad2d1d -
Training in progress, step 450
Verified signaturefb5a0ae -
Training in progress, step 425
Verified signature049a419 -
Training in progress, step 400
Verified signature108c4fe -
Training in progress, step 375
Verified signature51d713f -
Training in progress, step 350
Verified signature5b29c0b -
Training in progress, step 325
Verified signaturea4c3042 -
Training in progress, step 300
Verified signatured3f2977 -
Training in progress, step 275
Verified signature25a3e3c -
Training in progress, step 250
Verified signaturec3b56e8 -
Training in progress, step 225
Verified signature0394f11 -
Training in progress, step 200
Verified signaturee107735 -
Training in progress, step 175
Verified signaturea6f5424 -
Training in progress, step 150
Verified signature4b932b7 -
Training in progress, step 125
Verified signature5e90f56 -
Training in progress, step 100
Verified signaturebde9ec8 -
Training in progress, step 75
Verified signaturea618c93 -
Training in progress, step 50
Verified signature9e18150 -
Training in progress, step 25
Verified signaturee92d07b
-
End of training
Verified signaturedf9d0de -
Model save
Verified signaturebba48a1 -
Training in progress, step 450
Verified signature3b78134 -
Training in progress, step 425
Verified signature159f347 -
Training in progress, step 400
Verified signaturebe0773a -
Training in progress, step 375
Verified signaturee6f74e8 -
Training in progress, step 350
Verified signature789950c -
Training in progress, step 325
Verified signature11e2cc3 -
Training in progress, step 300
Verified signature06d8ea3 -
Training in progress, step 275
Verified signature5033ef0 -
Training in progress, step 250
Verified signature34cbdb7 -
Training in progress, step 225
Verified signature834896a -
Training in progress, step 200
Verified signature4435295 -
Training in progress, step 175
Verified signature4e99c3c -
Training in progress, step 150
Verified signaturef70b600 -
Training in progress, step 125
Verified signature28c5b0e -
Training in progress, step 100
Verified signature52715ee -
Training in progress, step 75
Verified signaturea0ac595 -
Training in progress, step 50
Verified signaturee951099 -
Training in progress, step 25
Verified signature6f694a4 -
Training in progress, step 1
Verified signaturea17e3a2 -
initial commit
Verified signaturea9ff32f