Text Generation
Transformers
Safetensors
qwen2
Generated from Trainer
conversational
text-generation-inference
Instructions to use blue-prince/test-v16-checkpoints with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use blue-prince/test-v16-checkpoints with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="blue-prince/test-v16-checkpoints") 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("blue-prince/test-v16-checkpoints") model = AutoModelForCausalLM.from_pretrained("blue-prince/test-v16-checkpoints", 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 blue-prince/test-v16-checkpoints with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "blue-prince/test-v16-checkpoints" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "blue-prince/test-v16-checkpoints", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/blue-prince/test-v16-checkpoints
- SGLang
How to use blue-prince/test-v16-checkpoints 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 "blue-prince/test-v16-checkpoints" \ --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": "blue-prince/test-v16-checkpoints", "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 "blue-prince/test-v16-checkpoints" \ --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": "blue-prince/test-v16-checkpoints", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use blue-prince/test-v16-checkpoints with Docker Model Runner:
docker model run hf.co/blue-prince/test-v16-checkpoints
Commit History
-
Update tokenizer_config.json
4a929de -
Update generation_config.json
daff03a -
Training in progress, step 153000, checkpoint
66bcb25 -
Training in progress, step 153000
68c7e4a -
Training in progress, step 152000, checkpoint
79cf718 -
Training in progress, step 152000
8ec9072 -
Training in progress, step 151000, checkpoint
56769a0 -
Training in progress, step 150000, checkpoint
e78e8be -
Training in progress, step 149000, checkpoint
ff11721 -
Training in progress, step 148000, checkpoint
e44cf21 -
Training in progress, step 147000, checkpoint
a3386a8 -
Training in progress, step 146000, checkpoint
642cd7d -
Training in progress, step 145000, checkpoint
d51ccd3 -
Training in progress, step 144000, checkpoint
a115583 -
Training in progress, step 143000, checkpoint
3684f4d -
Training in progress, step 142000, checkpoint
0369ff5 -
Training in progress, step 141000, checkpoint
618604e -
Training in progress, step 140000, checkpoint
23d795b -
Training in progress, step 139000, checkpoint
18ef858 -
Training in progress, step 138000, checkpoint
aa78307 -
Training in progress, step 137000, checkpoint
b4fc40c -
Training in progress, step 136000, checkpoint
74460b5 -
Training in progress, step 135000, checkpoint
43cc203 -
Training in progress, step 134000, checkpoint
fad203b -
Training in progress, step 133000, checkpoint
c87dfde -
Training in progress, step 133000
13b360f
-
Fix: Enforce deterministic generation (Temp=0)
0a9b8d7 -
Fix: Inject correct chat_template string
6b30c60 -
Training in progress, step 132000, checkpoint
a44d52b -
Training in progress, step 131000, checkpoint
508cb46 -
Training in progress, step 130000, checkpoint
be2a408 -
Training in progress, step 129000, checkpoint
813cb42 -
Training in progress, step 128000, checkpoint
147649f -
Training in progress, step 127000, checkpoint
d54dc37 -
Training in progress, step 126000, checkpoint
27ba3f7 -
Training in progress, step 125000, checkpoint
3d4a908 -
Training in progress, step 124000, checkpoint
7a31577 -
Training in progress, step 123000, checkpoint
db9f24a -
Training in progress, step 122000, checkpoint
a9ea93e -
Training in progress, step 121000, checkpoint
789dd3d -
Training in progress, step 120000, checkpoint
94ae890 -
Training in progress, step 119000, checkpoint
30d4d60 -
Training in progress, step 118000, checkpoint
b5b0b47 -
Training in progress, step 117000
30e8eda -
Fix: Enforce deterministic generation (Temp=0)
d9ce279 -
Fix: Inject correct chat_template string
e463613 -
Training in progress, step 116000, checkpoint
9742d5c -
Training in progress, step 115000, checkpoint
7449bf3 -
Training in progress, step 114000, checkpoint
e7813da -
Training in progress, step 113000, checkpoint
c7b6984