Text Generation
Transformers
Safetensors
qwen3
Generated from Trainer
open-r1
trl
grpo
conversational
text-generation-inference
Instructions to use prefixsliding/8B-v2 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use prefixsliding/8B-v2 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="prefixsliding/8B-v2") 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/8B-v2") model = AutoModelForCausalLM.from_pretrained("prefixsliding/8B-v2", 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/8B-v2 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "prefixsliding/8B-v2" # 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/8B-v2", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/prefixsliding/8B-v2
- SGLang
How to use prefixsliding/8B-v2 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/8B-v2" \ --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/8B-v2", "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/8B-v2" \ --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/8B-v2", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use prefixsliding/8B-v2 with Docker Model Runner:
docker model run hf.co/prefixsliding/8B-v2
Commit History
-
End of training
Verified signatureffc35b9 -
Model save
Verified signaturee451b83 -
Training in progress, step 2000
Verified signature129ca7b -
Training in progress, step 1900
Verified signaturea5d8f6d
-
Training in progress, step 1800
Verified signature9b1db3c -
Training in progress, step 1700
Verified signature4002f1a -
Training in progress, step 1600
Verified signature8195049 -
Training in progress, step 1500
Verified signature3768aac
-
Training in progress, step 1400
Verified signatureb03db36 -
Training in progress, step 1300
Verified signature9cdcf68 -
Training in progress, step 1200
Verified signaturefa4ace9 -
Training in progress, step 1100
Verified signaturede0fa59
-
End of training
Verified signature1463b3c -
Model save
Verified signature594aa9b -
Training in progress, step 1001
Verified signaturec2fb683 -
End of training
Verified signaturebdb9468 -
Model save
Verified signature56b0fb3 -
Training in progress, step 1000
Verified signature23a4e9f
-
Training in progress, step 900
Verified signature2e7e1dc -
Training in progress, step 800
Verified signature6061dd2 -
Training in progress, step 700
Verified signatureb7bbee5 -
Training in progress, step 600
Verified signature6cbe280 -
Training in progress, step 500
Verified signature36d64a3
-
Training in progress, step 400
Verified signaturea563475 -
Training in progress, step 300
Verified signaturef5f2ae9 -
Training in progress, step 200
Verified signature1aba583 -
Training in progress, step 100
Verified signature094812e
-
initial commit
Verified signaturefd18637