Text Generation
PEFT
Safetensors
English
lora
qlora
code
html
css
javascript
web-development
conversational
Instructions to use lhordking/webcoder-7b with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use lhordking/webcoder-7b with PEFT:
from peft import PeftModel from transformers import AutoModelForCausalLM base_model = AutoModelForCausalLM.from_pretrained("Qwen/Qwen2.5-Coder-7B-Instruct") model = PeftModel.from_pretrained(base_model, "lhordking/webcoder-7b") - Notebooks
- Google Colab
- Kaggle
step=375 epoch=3
Browse files- README.md +9 -9
- adapter_config.json +7 -7
- adapter_model.safetensors +2 -2
README.md
CHANGED
|
@@ -2,16 +2,16 @@
|
|
| 2 |
license: apache-2.0
|
| 3 |
base_model: Qwen/Qwen2.5-Coder-7B-Instruct
|
| 4 |
tags:
|
| 5 |
-
|
| 6 |
-
|
| 7 |
-
|
| 8 |
-
|
| 9 |
-
|
| 10 |
-
|
| 11 |
-
|
| 12 |
-
|
| 13 |
language:
|
| 14 |
-
|
| 15 |
pipeline_tag: text-generation
|
| 16 |
---
|
| 17 |
|
|
|
|
| 2 |
license: apache-2.0
|
| 3 |
base_model: Qwen/Qwen2.5-Coder-7B-Instruct
|
| 4 |
tags:
|
| 5 |
+
- lora
|
| 6 |
+
- qlora
|
| 7 |
+
- code
|
| 8 |
+
- html
|
| 9 |
+
- css
|
| 10 |
+
- javascript
|
| 11 |
+
- web-development
|
| 12 |
+
- peft
|
| 13 |
language:
|
| 14 |
+
- en
|
| 15 |
pipeline_tag: text-generation
|
| 16 |
---
|
| 17 |
|
adapter_config.json
CHANGED
|
@@ -10,23 +10,23 @@
|
|
| 10 |
"layers_pattern": null,
|
| 11 |
"layers_to_transform": null,
|
| 12 |
"loftq_config": {},
|
| 13 |
-
"lora_alpha":
|
| 14 |
"lora_dropout": 0.05,
|
| 15 |
"megatron_config": null,
|
| 16 |
"megatron_core": "megatron.core",
|
| 17 |
"modules_to_save": null,
|
| 18 |
"peft_type": "LORA",
|
| 19 |
-
"r":
|
| 20 |
"rank_pattern": {},
|
| 21 |
"revision": null,
|
| 22 |
"target_modules": [
|
| 23 |
-
"
|
| 24 |
-
"o_proj",
|
| 25 |
"gate_proj",
|
| 26 |
-
"
|
| 27 |
"k_proj",
|
| 28 |
-
"
|
| 29 |
-
"
|
|
|
|
| 30 |
],
|
| 31 |
"task_type": "CAUSAL_LM",
|
| 32 |
"use_dora": false,
|
|
|
|
| 10 |
"layers_pattern": null,
|
| 11 |
"layers_to_transform": null,
|
| 12 |
"loftq_config": {},
|
| 13 |
+
"lora_alpha": 128,
|
| 14 |
"lora_dropout": 0.05,
|
| 15 |
"megatron_config": null,
|
| 16 |
"megatron_core": "megatron.core",
|
| 17 |
"modules_to_save": null,
|
| 18 |
"peft_type": "LORA",
|
| 19 |
+
"r": 64,
|
| 20 |
"rank_pattern": {},
|
| 21 |
"revision": null,
|
| 22 |
"target_modules": [
|
| 23 |
+
"down_proj",
|
|
|
|
| 24 |
"gate_proj",
|
| 25 |
+
"o_proj",
|
| 26 |
"k_proj",
|
| 27 |
+
"up_proj",
|
| 28 |
+
"q_proj",
|
| 29 |
+
"v_proj"
|
| 30 |
],
|
| 31 |
"task_type": "CAUSAL_LM",
|
| 32 |
"use_dora": false,
|
adapter_model.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:2304afb235acc32c0421be2538e3e347e4403e6608831e8b5e32a1334148d08a
|
| 3 |
+
size 645975704
|