Text Generation
PEFT
Safetensors
Transformers
lora
promptcot
chain-of-thought
mathematical-reasoning
unsloth
Instructions to use PanzerBread/PromptCoT with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use PanzerBread/PromptCoT with PEFT:
from peft import PeftModel from transformers import AutoModelForCausalLM base_model = AutoModelForCausalLM.from_pretrained("unsloth/deepseek-r1-distill-qwen-7b-unsloth-bnb-4bit") model = PeftModel.from_pretrained(base_model, "PanzerBread/PromptCoT") - Transformers
How to use PanzerBread/PromptCoT with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="PanzerBread/PromptCoT")# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("PanzerBread/PromptCoT", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use PanzerBread/PromptCoT with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "PanzerBread/PromptCoT" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "PanzerBread/PromptCoT", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/PanzerBread/PromptCoT
- SGLang
How to use PanzerBread/PromptCoT 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 "PanzerBread/PromptCoT" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "PanzerBread/PromptCoT", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'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 "PanzerBread/PromptCoT" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "PanzerBread/PromptCoT", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Unsloth Desktop
- Docker Model Runner
How to use PanzerBread/PromptCoT with Docker Model Runner:
docker model run hf.co/PanzerBread/PromptCoT
Upload folder using huggingface_hub
Browse files- coding-0.2/q/latest/README.md +3 -3
- coding-0.2/q/latest/adapter_config.json +4 -4
- coding-0.2/q/latest/base_adapter/adapter_config.json +4 -4
- coding-0.2/q/latest/base_adapter/adapter_model.safetensors +1 -1
- coding-0.2/q/latest/checkpoint-28/adapter_config.json +4 -4
- coding-0.2/q/latest/checkpoint-28/base_adapter/adapter_config.json +4 -4
- coding-0.2/q/latest/checkpoint-28/base_adapter/adapter_model.safetensors +1 -1
- coding-0.2/q/latest/checkpoint-28/optimizer.pt +1 -1
- coding-0.2/q/latest/checkpoint-28/training_args.bin +1 -1
coding-0.2/q/latest/README.md
CHANGED
|
@@ -1,7 +1,7 @@
|
|
| 1 |
---
|
| 2 |
base_model: unsloth/deepseek-r1-distill-qwen-7b-unsloth-bnb-4bit
|
| 3 |
library_name: peft
|
| 4 |
-
model_name: iter-
|
| 5 |
tags:
|
| 6 |
- base_model:adapter:unsloth/deepseek-r1-distill-qwen-7b-unsloth-bnb-4bit
|
| 7 |
- lora
|
|
@@ -13,7 +13,7 @@ licence: license
|
|
| 13 |
pipeline_tag: text-generation
|
| 14 |
---
|
| 15 |
|
| 16 |
-
# Model Card for iter-
|
| 17 |
|
| 18 |
This model is a fine-tuned version of [unsloth/deepseek-r1-distill-qwen-7b-unsloth-bnb-4bit](https://huggingface.co/unsloth/deepseek-r1-distill-qwen-7b-unsloth-bnb-4bit).
|
| 19 |
It has been trained using [TRL](https://github.com/huggingface/trl).
|
|
@@ -31,7 +31,7 @@ print(output["generated_text"])
|
|
| 31 |
|
| 32 |
## Training procedure
|
| 33 |
|
| 34 |
-
[<img src="https://raw.githubusercontent.com/wandb/assets/main/wandb-github-badge-28.svg" alt="Visualize in Weights & Biases" width="150" height="24"/>](https://wandb.ai/kstaron-/
|
| 35 |
|
| 36 |
|
| 37 |
This model was trained with SFT.
|
|
|
|
| 1 |
---
|
| 2 |
base_model: unsloth/deepseek-r1-distill-qwen-7b-unsloth-bnb-4bit
|
| 3 |
library_name: peft
|
| 4 |
+
model_name: iter-2
|
| 5 |
tags:
|
| 6 |
- base_model:adapter:unsloth/deepseek-r1-distill-qwen-7b-unsloth-bnb-4bit
|
| 7 |
- lora
|
|
|
|
| 13 |
pipeline_tag: text-generation
|
| 14 |
---
|
| 15 |
|
| 16 |
+
# Model Card for iter-2
|
| 17 |
|
| 18 |
This model is a fine-tuned version of [unsloth/deepseek-r1-distill-qwen-7b-unsloth-bnb-4bit](https://huggingface.co/unsloth/deepseek-r1-distill-qwen-7b-unsloth-bnb-4bit).
|
| 19 |
It has been trained using [TRL](https://github.com/huggingface/trl).
|
|
|
|
| 31 |
|
| 32 |
## Training procedure
|
| 33 |
|
| 34 |
+
[<img src="https://raw.githubusercontent.com/wandb/assets/main/wandb-github-badge-28.svg" alt="Visualize in Weights & Biases" width="150" height="24"/>](https://wandb.ai/kstaron-/promptcot-em/runs/em_training_6iters)
|
| 35 |
|
| 36 |
|
| 37 |
This model was trained with SFT.
|
coding-0.2/q/latest/adapter_config.json
CHANGED
|
@@ -34,12 +34,12 @@
|
|
| 34 |
"revision": null,
|
| 35 |
"target_modules": [
|
| 36 |
"up_proj",
|
| 37 |
-
"down_proj",
|
| 38 |
"q_proj",
|
| 39 |
-
"gate_proj",
|
| 40 |
"k_proj",
|
| 41 |
-
"
|
| 42 |
-
"
|
|
|
|
|
|
|
| 43 |
],
|
| 44 |
"target_parameters": null,
|
| 45 |
"task_type": "CAUSAL_LM",
|
|
|
|
| 34 |
"revision": null,
|
| 35 |
"target_modules": [
|
| 36 |
"up_proj",
|
|
|
|
| 37 |
"q_proj",
|
|
|
|
| 38 |
"k_proj",
|
| 39 |
+
"down_proj",
|
| 40 |
+
"gate_proj",
|
| 41 |
+
"v_proj",
|
| 42 |
+
"o_proj"
|
| 43 |
],
|
| 44 |
"target_parameters": null,
|
| 45 |
"task_type": "CAUSAL_LM",
|
coding-0.2/q/latest/base_adapter/adapter_config.json
CHANGED
|
@@ -34,12 +34,12 @@
|
|
| 34 |
"revision": null,
|
| 35 |
"target_modules": [
|
| 36 |
"up_proj",
|
| 37 |
-
"down_proj",
|
| 38 |
"q_proj",
|
| 39 |
-
"gate_proj",
|
| 40 |
"k_proj",
|
| 41 |
-
"
|
| 42 |
-
"
|
|
|
|
|
|
|
| 43 |
],
|
| 44 |
"target_parameters": null,
|
| 45 |
"task_type": "CAUSAL_LM",
|
|
|
|
| 34 |
"revision": null,
|
| 35 |
"target_modules": [
|
| 36 |
"up_proj",
|
|
|
|
| 37 |
"q_proj",
|
|
|
|
| 38 |
"k_proj",
|
| 39 |
+
"down_proj",
|
| 40 |
+
"gate_proj",
|
| 41 |
+
"v_proj",
|
| 42 |
+
"o_proj"
|
| 43 |
],
|
| 44 |
"target_parameters": null,
|
| 45 |
"task_type": "CAUSAL_LM",
|
coding-0.2/q/latest/base_adapter/adapter_model.safetensors
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 645975704
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:4a8027569a1928584334d516bcdee797ffbbdb9f3fe1f07302a94d89b8e7871e
|
| 3 |
size 645975704
|
coding-0.2/q/latest/checkpoint-28/adapter_config.json
CHANGED
|
@@ -34,12 +34,12 @@
|
|
| 34 |
"revision": null,
|
| 35 |
"target_modules": [
|
| 36 |
"up_proj",
|
| 37 |
-
"down_proj",
|
| 38 |
"q_proj",
|
| 39 |
-
"gate_proj",
|
| 40 |
"k_proj",
|
| 41 |
-
"
|
| 42 |
-
"
|
|
|
|
|
|
|
| 43 |
],
|
| 44 |
"target_parameters": null,
|
| 45 |
"task_type": "CAUSAL_LM",
|
|
|
|
| 34 |
"revision": null,
|
| 35 |
"target_modules": [
|
| 36 |
"up_proj",
|
|
|
|
| 37 |
"q_proj",
|
|
|
|
| 38 |
"k_proj",
|
| 39 |
+
"down_proj",
|
| 40 |
+
"gate_proj",
|
| 41 |
+
"v_proj",
|
| 42 |
+
"o_proj"
|
| 43 |
],
|
| 44 |
"target_parameters": null,
|
| 45 |
"task_type": "CAUSAL_LM",
|
coding-0.2/q/latest/checkpoint-28/base_adapter/adapter_config.json
CHANGED
|
@@ -34,12 +34,12 @@
|
|
| 34 |
"revision": null,
|
| 35 |
"target_modules": [
|
| 36 |
"up_proj",
|
| 37 |
-
"down_proj",
|
| 38 |
"q_proj",
|
| 39 |
-
"gate_proj",
|
| 40 |
"k_proj",
|
| 41 |
-
"
|
| 42 |
-
"
|
|
|
|
|
|
|
| 43 |
],
|
| 44 |
"target_parameters": null,
|
| 45 |
"task_type": "CAUSAL_LM",
|
|
|
|
| 34 |
"revision": null,
|
| 35 |
"target_modules": [
|
| 36 |
"up_proj",
|
|
|
|
| 37 |
"q_proj",
|
|
|
|
| 38 |
"k_proj",
|
| 39 |
+
"down_proj",
|
| 40 |
+
"gate_proj",
|
| 41 |
+
"v_proj",
|
| 42 |
+
"o_proj"
|
| 43 |
],
|
| 44 |
"target_parameters": null,
|
| 45 |
"task_type": "CAUSAL_LM",
|
coding-0.2/q/latest/checkpoint-28/base_adapter/adapter_model.safetensors
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 645975704
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:4a8027569a1928584334d516bcdee797ffbbdb9f3fe1f07302a94d89b8e7871e
|
| 3 |
size 645975704
|
coding-0.2/q/latest/checkpoint-28/optimizer.pt
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 328468869
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:a3c5cea2b3675fb08a5e2b048e6d7a05c85361a0cc7f5bc9cbbf7d70d434b482
|
| 3 |
size 328468869
|
coding-0.2/q/latest/checkpoint-28/training_args.bin
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 6225
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:799019af97f88b0dede11b599dd5625da266946ab675eb4066c3afe4a95813d6
|
| 3 |
size 6225
|