Instructions to use aserrasastre/Mistral-7B-Instruct-code-v0.1 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use aserrasastre/Mistral-7B-Instruct-code-v0.1 with PEFT:
from peft import PeftModel from transformers import AutoModelForCausalLM base_model = AutoModelForCausalLM.from_pretrained("mistralai/Mistral-7B-Instruct-v0.2") model = PeftModel.from_pretrained(base_model, "aserrasastre/Mistral-7B-Instruct-code-v0.1") - Notebooks
- Google Colab
- Kaggle
Commit ·
c95eb47
1
Parent(s): 7abd28a
Subiendo modelo a Hugging Face
Browse files- adapter_config.json +2 -2
- adapter_model.safetensors +1 -1
- tokenizer.json +2 -2
- tokenizer_config.json +1 -1
adapter_config.json
CHANGED
|
@@ -19,10 +19,10 @@
|
|
| 19 |
"rank_pattern": {},
|
| 20 |
"revision": null,
|
| 21 |
"target_modules": [
|
| 22 |
-
"k_proj",
|
| 23 |
-
"o_proj",
|
| 24 |
"v_proj",
|
|
|
|
| 25 |
"gate_proj",
|
|
|
|
| 26 |
"q_proj"
|
| 27 |
],
|
| 28 |
"task_type": "CAUSAL_LM",
|
|
|
|
| 19 |
"rank_pattern": {},
|
| 20 |
"revision": null,
|
| 21 |
"target_modules": [
|
|
|
|
|
|
|
| 22 |
"v_proj",
|
| 23 |
+
"o_proj",
|
| 24 |
"gate_proj",
|
| 25 |
+
"k_proj",
|
| 26 |
"q_proj"
|
| 27 |
],
|
| 28 |
"task_type": "CAUSAL_LM",
|
adapter_model.safetensors
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 92317600
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:d54e82dcae2eb8a8cfddc93eb93753f1aaa11994b71d94197d8b8f44e5ce1926
|
| 3 |
size 92317600
|
tokenizer.json
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:d1cd1760770aa86efda39271132b1d16f794400ec76de0ce638dd71953ca420e
|
| 3 |
+
size 1795836
|
tokenizer_config.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
| 1 |
{
|
| 2 |
"add_bos_token": true,
|
| 3 |
-
"add_eos_token":
|
| 4 |
"added_tokens_decoder": {
|
| 5 |
"0": {
|
| 6 |
"content": "<unk>",
|
|
|
|
| 1 |
{
|
| 2 |
"add_bos_token": true,
|
| 3 |
+
"add_eos_token": true,
|
| 4 |
"added_tokens_decoder": {
|
| 5 |
"0": {
|
| 6 |
"content": "<unk>",
|