Instructions to use issdandavis/scbe-coding-approval-metrics-qwen-kaggle-v1 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use issdandavis/scbe-coding-approval-metrics-qwen-kaggle-v1 with PEFT:
from peft import PeftModel from transformers import AutoModelForCausalLM base_model = AutoModelForCausalLM.from_pretrained("Qwen/Qwen2.5-Coder-0.5B-Instruct") model = PeftModel.from_pretrained(base_model, "issdandavis/scbe-coding-approval-metrics-qwen-kaggle-v1") - Transformers
How to use issdandavis/scbe-coding-approval-metrics-qwen-kaggle-v1 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="issdandavis/scbe-coding-approval-metrics-qwen-kaggle-v1") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("issdandavis/scbe-coding-approval-metrics-qwen-kaggle-v1", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use issdandavis/scbe-coding-approval-metrics-qwen-kaggle-v1 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "issdandavis/scbe-coding-approval-metrics-qwen-kaggle-v1" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "issdandavis/scbe-coding-approval-metrics-qwen-kaggle-v1", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/issdandavis/scbe-coding-approval-metrics-qwen-kaggle-v1
- SGLang
How to use issdandavis/scbe-coding-approval-metrics-qwen-kaggle-v1 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 "issdandavis/scbe-coding-approval-metrics-qwen-kaggle-v1" \ --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": "issdandavis/scbe-coding-approval-metrics-qwen-kaggle-v1", "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 "issdandavis/scbe-coding-approval-metrics-qwen-kaggle-v1" \ --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": "issdandavis/scbe-coding-approval-metrics-qwen-kaggle-v1", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use issdandavis/scbe-coding-approval-metrics-qwen-kaggle-v1 with Docker Model Runner:
docker model run hf.co/issdandavis/scbe-coding-approval-metrics-qwen-kaggle-v1
docs: mark superseded and point at the canonical repo
Browse files
README.md
CHANGED
|
@@ -1,62 +1,65 @@
|
|
| 1 |
-
---
|
| 2 |
-
base_model: Qwen/Qwen2.5-Coder-0.5B-Instruct
|
| 3 |
-
library_name: peft
|
| 4 |
-
model_name: scbe-coding-approval-metrics-qwen-kaggle-v1
|
| 5 |
-
tags:
|
| 6 |
-
- base_model:adapter:Qwen/Qwen2.5-Coder-0.5B-Instruct
|
| 7 |
-
- lora
|
| 8 |
-
- sft
|
| 9 |
-
- transformers
|
| 10 |
-
- trl
|
| 11 |
-
|
| 12 |
-
|
| 13 |
-
-
|
| 14 |
-
|
| 15 |
-
|
| 16 |
-
|
| 17 |
-
|
| 18 |
-
|
| 19 |
-
|
| 20 |
-
|
| 21 |
-
|
| 22 |
-
|
| 23 |
-
|
| 24 |
-
|
| 25 |
-
|
| 26 |
-
|
| 27 |
-
|
| 28 |
-
|
| 29 |
-
|
| 30 |
-
|
| 31 |
-
|
| 32 |
-
|
| 33 |
-
|
| 34 |
-
|
| 35 |
-
|
| 36 |
-
|
| 37 |
-
|
| 38 |
-
|
| 39 |
-
|
| 40 |
-
|
| 41 |
-
|
| 42 |
-
|
| 43 |
-
|
| 44 |
-
-
|
| 45 |
-
-
|
| 46 |
-
-
|
| 47 |
-
|
| 48 |
-
|
| 49 |
-
|
| 50 |
-
|
| 51 |
-
|
| 52 |
-
|
| 53 |
-
|
| 54 |
-
|
| 55 |
-
|
| 56 |
-
|
| 57 |
-
|
| 58 |
-
|
| 59 |
-
|
| 60 |
-
|
| 61 |
-
}
|
|
|
|
|
|
|
|
|
|
| 62 |
```
|
|
|
|
| 1 |
+
---
|
| 2 |
+
base_model: Qwen/Qwen2.5-Coder-0.5B-Instruct
|
| 3 |
+
library_name: peft
|
| 4 |
+
model_name: scbe-coding-approval-metrics-qwen-kaggle-v1
|
| 5 |
+
tags:
|
| 6 |
+
- base_model:adapter:Qwen/Qwen2.5-Coder-0.5B-Instruct
|
| 7 |
+
- lora
|
| 8 |
+
- sft
|
| 9 |
+
- transformers
|
| 10 |
+
- trl
|
| 11 |
+
- superseded
|
| 12 |
+
licence: license
|
| 13 |
+
pipeline_tag: text-generation
|
| 14 |
+
---
|
| 15 |
+
<!-- scbe-status -->
|
| 16 |
+
> **Status: superseded.** Canonical coding model: [scbe-coding-agent-vtc-qwen15-v1-gguf](https://hf.co/issdandavis/scbe-coding-agent-vtc-qwen15-v1-gguf). Kept as research history.
|
| 17 |
+
|
| 18 |
+
# Model Card for scbe-coding-approval-metrics-qwen-kaggle-v1
|
| 19 |
+
|
| 20 |
+
This model is a fine-tuned version of [Qwen/Qwen2.5-Coder-0.5B-Instruct](https://huggingface.co/Qwen/Qwen2.5-Coder-0.5B-Instruct).
|
| 21 |
+
It has been trained using [TRL](https://github.com/huggingface/trl).
|
| 22 |
+
|
| 23 |
+
## Quick start
|
| 24 |
+
|
| 25 |
+
```python
|
| 26 |
+
from transformers import pipeline
|
| 27 |
+
|
| 28 |
+
question = "If you had a time machine, but could only go to the past or the future once and never return, which would you choose and why?"
|
| 29 |
+
generator = pipeline("text-generation", model="None", device="cuda")
|
| 30 |
+
output = generator([{"role": "user", "content": question}], max_new_tokens=128, return_full_text=False)[0]
|
| 31 |
+
print(output["generated_text"])
|
| 32 |
+
```
|
| 33 |
+
|
| 34 |
+
## Training procedure
|
| 35 |
+
|
| 36 |
+
|
| 37 |
+
|
| 38 |
+
|
| 39 |
+
|
| 40 |
+
This model was trained with SFT.
|
| 41 |
+
|
| 42 |
+
### Framework versions
|
| 43 |
+
|
| 44 |
+
- PEFT 0.18.1
|
| 45 |
+
- TRL: 1.2.0
|
| 46 |
+
- Transformers: 5.0.0
|
| 47 |
+
- Pytorch: 2.10.0+cu128
|
| 48 |
+
- Datasets: 4.8.3
|
| 49 |
+
- Tokenizers: 0.22.2
|
| 50 |
+
|
| 51 |
+
## Citations
|
| 52 |
+
|
| 53 |
+
|
| 54 |
+
|
| 55 |
+
Cite TRL as:
|
| 56 |
+
|
| 57 |
+
```bibtex
|
| 58 |
+
@software{vonwerra2020trl,
|
| 59 |
+
title = {{TRL: Transformers Reinforcement Learning}},
|
| 60 |
+
author = {von Werra, Leandro and Belkada, Younes and Tunstall, Lewis and Beeching, Edward and Thrush, Tristan and Lambert, Nathan and Huang, Shengyi and Rasul, Kashif and Gallouédec, Quentin},
|
| 61 |
+
license = {Apache-2.0},
|
| 62 |
+
url = {https://github.com/huggingface/trl},
|
| 63 |
+
year = {2020}
|
| 64 |
+
}
|
| 65 |
```
|