Instructions to use knatware/knat with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use knatware/knat with PEFT:
from peft import PeftModel from transformers import AutoModelForCausalLM base_model = AutoModelForCausalLM.from_pretrained("sshleifer/tiny-gpt2") model = PeftModel.from_pretrained(base_model, "knatware/knat") - Notebooks
- Google Colab
- Kaggle
Upload model
Browse files- adapter_config.json +7 -12
- adapter_model.safetensors +2 -2
adapter_config.json
CHANGED
|
@@ -3,38 +3,34 @@
|
|
| 3 |
"alpha_pattern": {},
|
| 4 |
"arrow_config": null,
|
| 5 |
"auto_mapping": null,
|
| 6 |
-
"base_model_name_or_path": "
|
| 7 |
"bias": "none",
|
| 8 |
"corda_config": null,
|
| 9 |
"ensure_weight_tying": false,
|
| 10 |
"eva_config": null,
|
| 11 |
"exclude_modules": null,
|
| 12 |
-
"fan_in_fan_out":
|
| 13 |
"inference_mode": true,
|
| 14 |
"init_lora_weights": true,
|
| 15 |
"layer_replication": null,
|
| 16 |
"layers_pattern": null,
|
| 17 |
"layers_to_transform": null,
|
| 18 |
"loftq_config": {},
|
| 19 |
-
"lora_alpha":
|
| 20 |
"lora_bias": false,
|
| 21 |
"lora_dropout": 0.05,
|
| 22 |
"lora_ga_config": null,
|
| 23 |
"megatron_config": null,
|
| 24 |
"megatron_core": "megatron.core",
|
| 25 |
"modules_to_save": null,
|
| 26 |
-
"monteclora_config": null,
|
| 27 |
"peft_type": "LORA",
|
| 28 |
-
"peft_version": "0.
|
| 29 |
"qalora_group_size": 16,
|
| 30 |
-
"r":
|
| 31 |
"rank_pattern": {},
|
| 32 |
"revision": null,
|
| 33 |
"target_modules": [
|
| 34 |
-
"
|
| 35 |
-
"q_proj",
|
| 36 |
-
"v_proj",
|
| 37 |
-
"o_proj"
|
| 38 |
],
|
| 39 |
"target_parameters": null,
|
| 40 |
"task_type": "CAUSAL_LM",
|
|
@@ -42,6 +38,5 @@
|
|
| 42 |
"use_bdlora": null,
|
| 43 |
"use_dora": false,
|
| 44 |
"use_qalora": false,
|
| 45 |
-
"use_rslora": false
|
| 46 |
-
"velora_config": null
|
| 47 |
}
|
|
|
|
| 3 |
"alpha_pattern": {},
|
| 4 |
"arrow_config": null,
|
| 5 |
"auto_mapping": null,
|
| 6 |
+
"base_model_name_or_path": "sshleifer/tiny-gpt2",
|
| 7 |
"bias": "none",
|
| 8 |
"corda_config": null,
|
| 9 |
"ensure_weight_tying": false,
|
| 10 |
"eva_config": null,
|
| 11 |
"exclude_modules": null,
|
| 12 |
+
"fan_in_fan_out": true,
|
| 13 |
"inference_mode": true,
|
| 14 |
"init_lora_weights": true,
|
| 15 |
"layer_replication": null,
|
| 16 |
"layers_pattern": null,
|
| 17 |
"layers_to_transform": null,
|
| 18 |
"loftq_config": {},
|
| 19 |
+
"lora_alpha": 8,
|
| 20 |
"lora_bias": false,
|
| 21 |
"lora_dropout": 0.05,
|
| 22 |
"lora_ga_config": null,
|
| 23 |
"megatron_config": null,
|
| 24 |
"megatron_core": "megatron.core",
|
| 25 |
"modules_to_save": null,
|
|
|
|
| 26 |
"peft_type": "LORA",
|
| 27 |
+
"peft_version": "0.19.1",
|
| 28 |
"qalora_group_size": 16,
|
| 29 |
+
"r": 4,
|
| 30 |
"rank_pattern": {},
|
| 31 |
"revision": null,
|
| 32 |
"target_modules": [
|
| 33 |
+
"c_attn"
|
|
|
|
|
|
|
|
|
|
| 34 |
],
|
| 35 |
"target_parameters": null,
|
| 36 |
"task_type": "CAUSAL_LM",
|
|
|
|
| 38 |
"use_bdlora": null,
|
| 39 |
"use_dora": false,
|
| 40 |
"use_qalora": false,
|
| 41 |
+
"use_rslora": false
|
|
|
|
| 42 |
}
|
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:2300c3c99331eddde65e6cae96a0cb875d4e93cf7a9ed93bdbe5af3a243a34db
|
| 3 |
+
size 760
|