Text Generation
Transformers
Safetensors
English
qwen2
text-generation-inference
unsloth
trl
sft
conversational
4-bit precision
bitsandbytes
Instructions to use SvalTek/Qwen2.5-ColdBrew-R1_4bit with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use SvalTek/Qwen2.5-ColdBrew-R1_4bit with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="SvalTek/Qwen2.5-ColdBrew-R1_4bit") 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("SvalTek/Qwen2.5-ColdBrew-R1_4bit") model = AutoModelForCausalLM.from_pretrained("SvalTek/Qwen2.5-ColdBrew-R1_4bit", 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 SvalTek/Qwen2.5-ColdBrew-R1_4bit with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "SvalTek/Qwen2.5-ColdBrew-R1_4bit" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "SvalTek/Qwen2.5-ColdBrew-R1_4bit", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/SvalTek/Qwen2.5-ColdBrew-R1_4bit
- SGLang
How to use SvalTek/Qwen2.5-ColdBrew-R1_4bit 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 "SvalTek/Qwen2.5-ColdBrew-R1_4bit" \ --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": "SvalTek/Qwen2.5-ColdBrew-R1_4bit", "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 "SvalTek/Qwen2.5-ColdBrew-R1_4bit" \ --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": "SvalTek/Qwen2.5-ColdBrew-R1_4bit", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Unsloth Desktop
- Docker Model Runner
How to use SvalTek/Qwen2.5-ColdBrew-R1_4bit with Docker Model Runner:
docker model run hf.co/SvalTek/Qwen2.5-ColdBrew-R1_4bit
Trained with Unsloth
Browse filesUpload model trained with Unsloth 2x faster
- README.md +1 -0
- config.json +4 -4
- model-00001-of-00002.safetensors +2 -2
- model-00002-of-00002.safetensors +1 -1
- model.safetensors.index.json +1 -1
README.md
CHANGED
|
@@ -6,6 +6,7 @@ tags:
|
|
| 6 |
- unsloth
|
| 7 |
- qwen2
|
| 8 |
- trl
|
|
|
|
| 9 |
license: apache-2.0
|
| 10 |
language:
|
| 11 |
- en
|
|
|
|
| 6 |
- unsloth
|
| 7 |
- qwen2
|
| 8 |
- trl
|
| 9 |
+
- sft
|
| 10 |
license: apache-2.0
|
| 11 |
language:
|
| 12 |
- en
|
config.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
| 1 |
{
|
| 2 |
-
"_name_or_path": "Theros/Qwen2.5-ColdBrew-
|
| 3 |
"architectures": [
|
| 4 |
"Qwen2ForCausalLM"
|
| 5 |
],
|
|
@@ -19,7 +19,7 @@
|
|
| 19 |
"organization": "SvalTek",
|
| 20 |
"pad_token_id": 151665,
|
| 21 |
"quantization_config": {
|
| 22 |
-
"bnb_4bit_compute_dtype": "
|
| 23 |
"bnb_4bit_quant_type": "nf4",
|
| 24 |
"bnb_4bit_use_double_quant": true,
|
| 25 |
"llm_int8_enable_fp32_cpu_offload": false,
|
|
@@ -35,9 +35,9 @@
|
|
| 35 |
"rope_theta": 1000000.0,
|
| 36 |
"sliding_window": null,
|
| 37 |
"tie_word_embeddings": false,
|
| 38 |
-
"torch_dtype": "
|
| 39 |
"transformers_version": "4.48.3",
|
| 40 |
-
"unsloth_version": "2025.
|
| 41 |
"use_cache": true,
|
| 42 |
"use_mrope": false,
|
| 43 |
"use_sliding_window": false,
|
|
|
|
| 1 |
{
|
| 2 |
+
"_name_or_path": "Theros/Qwen2.5-ColdBrew-Aetheria",
|
| 3 |
"architectures": [
|
| 4 |
"Qwen2ForCausalLM"
|
| 5 |
],
|
|
|
|
| 19 |
"organization": "SvalTek",
|
| 20 |
"pad_token_id": 151665,
|
| 21 |
"quantization_config": {
|
| 22 |
+
"bnb_4bit_compute_dtype": "bfloat16",
|
| 23 |
"bnb_4bit_quant_type": "nf4",
|
| 24 |
"bnb_4bit_use_double_quant": true,
|
| 25 |
"llm_int8_enable_fp32_cpu_offload": false,
|
|
|
|
| 35 |
"rope_theta": 1000000.0,
|
| 36 |
"sliding_window": null,
|
| 37 |
"tie_word_embeddings": false,
|
| 38 |
+
"torch_dtype": "bfloat16",
|
| 39 |
"transformers_version": "4.48.3",
|
| 40 |
+
"unsloth_version": "2025.3.8",
|
| 41 |
"use_cache": true,
|
| 42 |
"use_mrope": false,
|
| 43 |
"use_sliding_window": false,
|
model-00001-of-00002.safetensors
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:b5bdde34d9daa88ebd3c39449a3f9b9537eaf1cb83c5ba7e629b146ffebf2f22
|
| 3 |
+
size 4454406713
|
model-00002-of-00002.safetensors
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 1087142016
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:ecfd97e2984dad183f6e057aa379f9d8d00dda2f2b305fa7fe7b5183ef1fdfba
|
| 3 |
size 1087142016
|
model.safetensors.index.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
| 1 |
{
|
| 2 |
"metadata": {
|
| 3 |
-
"total_size":
|
| 4 |
},
|
| 5 |
"weight_map": {
|
| 6 |
"lm_head.weight": "model-00002-of-00002.safetensors",
|
|
|
|
| 1 |
{
|
| 2 |
"metadata": {
|
| 3 |
+
"total_size": 5541392169
|
| 4 |
},
|
| 5 |
"weight_map": {
|
| 6 |
"lm_head.weight": "model-00002-of-00002.safetensors",
|