Text Generation
Transformers
Safetensors
qwen3
Generated from Trainer
open-r1
trl
grpo
conversational
text-generation-inference
Instructions to use prefixsliding/1.5B-v18 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use prefixsliding/1.5B-v18 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="prefixsliding/1.5B-v18") 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("prefixsliding/1.5B-v18") model = AutoModelForCausalLM.from_pretrained("prefixsliding/1.5B-v18", 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 prefixsliding/1.5B-v18 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "prefixsliding/1.5B-v18" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "prefixsliding/1.5B-v18", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/prefixsliding/1.5B-v18
- SGLang
How to use prefixsliding/1.5B-v18 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 "prefixsliding/1.5B-v18" \ --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": "prefixsliding/1.5B-v18", "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 "prefixsliding/1.5B-v18" \ --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": "prefixsliding/1.5B-v18", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use prefixsliding/1.5B-v18 with Docker Model Runner:
docker model run hf.co/prefixsliding/1.5B-v18
Commit History
-
Training in progress, step 50
Verified signatureb8d6d28
-
Training in progress, step 150
Verified signature73a27d6 -
Training in progress, step 100
Verified signature65f77ea -
Training in progress, step 50
Verified signaturecf03fd4
-
Training in progress, step 150
Verified signaturea4d0e52
-
Training in progress, step 100
Verified signature1cfa8ad -
Training in progress, step 50
Verified signature398846c -
Training in progress, step 400
Verified signature4bbe827 -
Training in progress, step 350
Verified signaturebc30e7f
-
Training in progress, step 300
Verified signature63d6f71 -
Training in progress, step 250
Verified signature70ada81 -
Training in progress, step 200
Verified signaturea45bf37 -
Training in progress, step 150
Verified signatured503839 -
Training in progress, step 100
Verified signature44a8e50 -
Training in progress, step 50
Verified signature676e9c4 -
Training in progress, step 350
Verified signature95c59be -
Training in progress, step 300
Verified signature38a2d37 -
Training in progress, step 250
Verified signature83a479c
-
Training in progress, step 200
Verified signaturec86c6b4 -
Training in progress, step 150
Verified signature3976dd4 -
Training in progress, step 100
Verified signature16d599f -
Training in progress, step 50
Verified signature356a894
-
Training in progress, step 300
Verified signature9954472 -
Training in progress, step 250
Verified signature174aaae -
Training in progress, step 200
Verified signaturee6ef864 -
Training in progress, step 150
Verified signaturec470efb
-
End of training
Verified signature90a31ce -
Model save
Verified signatured8af225 -
Training in progress, step 2000
Verified signaturec15ba20 -
Training in progress, step 1950
Verified signature8398631 -
Training in progress, step 1900
Verified signaturec1ed35a -
Training in progress, step 1850
Verified signature07f2fe8 -
Training in progress, step 1800
Verified signaturea2a830c -
Training in progress, step 100
Verified signature86b3d49 -
Training in progress, step 1750
Verified signature41f96e2 -
Training in progress, step 1700
Verified signatured979cef -
Training in progress, step 1650
Verified signature00aa613 -
Training in progress, step 1600
Verified signature0729ebc -
Training in progress, step 1550
Verified signature2f5614f -
Training in progress, step 1500
Verified signature6f9d2e8 -
Training in progress, step 1450
Verified signature2401250 -
Training in progress, step 1400
Verified signature6c454b9 -
Training in progress, step 1350
Verified signature6e58c1b -
Training in progress, step 1300
Verified signature7a0ef87 -
Training in progress, step 1250
Verified signature10c7328 -
Training in progress, step 1200
Verified signature62a1af1 -
Training in progress, step 1150
Verified signature04acf43 -
Training in progress, step 1100
Verified signatureb3fdaac -
Training in progress, step 1050
Verified signaturea67a5cf -
Training in progress, step 1000
Verified signature8e90baa