tsunemoto commited on
Commit
a29902d
1 Parent(s): 141d0f5

Upload folder using huggingface_hub

Browse files
.gitattributes CHANGED
@@ -33,3 +33,17 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
33
  *.zip filter=lfs diff=lfs merge=lfs -text
34
  *.zst filter=lfs diff=lfs merge=lfs -text
35
  *tfevents* filter=lfs diff=lfs merge=lfs -text
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
33
  *.zip filter=lfs diff=lfs merge=lfs -text
34
  *.zst filter=lfs diff=lfs merge=lfs -text
35
  *tfevents* filter=lfs diff=lfs merge=lfs -text
36
+ mistral-7b-instruct-v0.2.Q2_K.gguf filter=lfs diff=lfs merge=lfs -text
37
+ mistral-7b-instruct-v0.2.Q3_K_L.gguf filter=lfs diff=lfs merge=lfs -text
38
+ mistral-7b-instruct-v0.2.Q3_K_M.gguf filter=lfs diff=lfs merge=lfs -text
39
+ mistral-7b-instruct-v0.2.Q3_K_S.gguf filter=lfs diff=lfs merge=lfs -text
40
+ mistral-7b-instruct-v0.2.Q4_0.gguf filter=lfs diff=lfs merge=lfs -text
41
+ mistral-7b-instruct-v0.2.Q4_1.gguf filter=lfs diff=lfs merge=lfs -text
42
+ mistral-7b-instruct-v0.2.Q4_K_M.gguf filter=lfs diff=lfs merge=lfs -text
43
+ mistral-7b-instruct-v0.2.Q4_K_S.gguf filter=lfs diff=lfs merge=lfs -text
44
+ mistral-7b-instruct-v0.2.Q5_0.gguf filter=lfs diff=lfs merge=lfs -text
45
+ mistral-7b-instruct-v0.2.Q5_1.gguf filter=lfs diff=lfs merge=lfs -text
46
+ mistral-7b-instruct-v0.2.Q5_K_M.gguf filter=lfs diff=lfs merge=lfs -text
47
+ mistral-7b-instruct-v0.2.Q5_K_S.gguf filter=lfs diff=lfs merge=lfs -text
48
+ mistral-7b-instruct-v0.2.Q6_K.gguf filter=lfs diff=lfs merge=lfs -text
49
+ mistral-7b-instruct-v0.2.Q8_0.gguf filter=lfs diff=lfs merge=lfs -text
README.md ADDED
@@ -0,0 +1,96 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ title: "Mistral-7B-Instruct-v0.2 Quantized in GGUF"
3
+ tags:
4
+ - GGUF
5
+ language: en
6
+ ---
7
+ # GGUF's of Mistral-7B-Instruct-v0.2
8
+
9
+ This is a GGUF quantization of Mistral-7B-Instruct-v0.2.
10
+
11
+ ## Original Model Card:
12
+ ---
13
+ license: apache-2.0
14
+ pipeline_tag: text-generation
15
+ tags:
16
+ - finetuned
17
+ inference: false
18
+ ---
19
+
20
+ # Model Card for Mistral-7B-Instruct-v0.2
21
+
22
+ The Mistral-7B-Instruct-v0.2 Large Language Model (LLM) is an improved instruct fine-tuned version of [Mistral-7B-Instruct-v0.1](https://huggingface.co/mistralai/Mistral-7B-Instruct-v0.1).
23
+
24
+ For full details of this model please read our [paper](https://arxiv.org/abs/2310.06825) and [release blog post](https://mistral.ai/news/la-plateforme/).
25
+
26
+ ## Instruction format
27
+
28
+ In order to leverage instruction fine-tuning, your prompt should be surrounded by `[INST]` and `[/INST]` tokens. The very first instruction should begin with a begin of sentence id. The next instructions should not. The assistant generation will be ended by the end-of-sentence token id.
29
+
30
+ E.g.
31
+ ```
32
+ text = "<s>[INST] What is your favourite condiment? [/INST]"
33
+ "Well, I'm quite partial to a good squeeze of fresh lemon juice. It adds just the right amount of zesty flavour to whatever I'm cooking up in the kitchen!</s> "
34
+ "[INST] Do you have mayonnaise recipes? [/INST]"
35
+ ```
36
+
37
+ This format is available as a [chat template](https://huggingface.co/docs/transformers/main/chat_templating) via the `apply_chat_template()` method:
38
+
39
+ ```python
40
+ from transformers import AutoModelForCausalLM, AutoTokenizer
41
+
42
+ device = "cuda" # the device to load the model onto
43
+
44
+ model = AutoModelForCausalLM.from_pretrained("mistralai/Mistral-7B-Instruct-v0.2")
45
+ tokenizer = AutoTokenizer.from_pretrained("mistralai/Mistral-7B-Instruct-v0.2")
46
+
47
+ messages = [
48
+ {"role": "user", "content": "What is your favourite condiment?"},
49
+ {"role": "assistant", "content": "Well, I'm quite partial to a good squeeze of fresh lemon juice. It adds just the right amount of zesty flavour to whatever I'm cooking up in the kitchen!"},
50
+ {"role": "user", "content": "Do you have mayonnaise recipes?"}
51
+ ]
52
+
53
+ encodeds = tokenizer.apply_chat_template(messages, return_tensors="pt")
54
+
55
+ model_inputs = encodeds.to(device)
56
+ model.to(device)
57
+
58
+ generated_ids = model.generate(model_inputs, max_new_tokens=1000, do_sample=True)
59
+ decoded = tokenizer.batch_decode(generated_ids)
60
+ print(decoded[0])
61
+ ```
62
+
63
+ ## Model Architecture
64
+ This instruction model is based on Mistral-7B-v0.1, a transformer model with the following architecture choices:
65
+ - Grouped-Query Attention
66
+ - Sliding-Window Attention
67
+ - Byte-fallback BPE tokenizer
68
+
69
+ ## Troubleshooting
70
+ - If you see the following error:
71
+ ```
72
+ Traceback (most recent call last):
73
+ File "", line 1, in
74
+ File "/transformers/models/auto/auto_factory.py", line 482, in from_pretrained
75
+ config, kwargs = AutoConfig.from_pretrained(
76
+ File "/transformers/models/auto/configuration_auto.py", line 1022, in from_pretrained
77
+ config_class = CONFIG_MAPPING[config_dict["model_type"]]
78
+ File "/transformers/models/auto/configuration_auto.py", line 723, in getitem
79
+ raise KeyError(key)
80
+ KeyError: 'mistral'
81
+ ```
82
+
83
+ Installing transformers from source should solve the issue
84
+ pip install git+https://github.com/huggingface/transformers
85
+
86
+ This should not be required after transformers-v4.33.4.
87
+
88
+ ## Limitations
89
+
90
+ The Mistral 7B Instruct model is a quick demonstration that the base model can be easily fine-tuned to achieve compelling performance.
91
+ It does not have any moderation mechanisms. We're looking forward to engaging with the community on ways to
92
+ make the model finely respect guardrails, allowing for deployment in environments requiring moderated outputs.
93
+
94
+ ## The Mistral AI Team
95
+
96
+ Albert Jiang, Alexandre Sablayrolles, Arthur Mensch, Blanche Savary, Chris Bamford, Devendra Singh Chaplot, Diego de las Casas, Emma Bou Hanna, Florian Bressand, Gianna Lengyel, Guillaume Bour, Guillaume Lample, Lélio Renard Lavaud, Louis Ternon, Lucile Saulnier, Marie-Anne Lachaux, Pierre Stock, Teven Le Scao, Théophile Gervet, Thibaut Lavril, Thomas Wang, Timothée Lacroix, William El Sayed.
mistral-7b-instruct-v0.2.Q2_K.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:158e32de9076d51a4260c08009b99f62e9e59f03bb1f6c523de18f0248f64681
3
+ size 3083098304
mistral-7b-instruct-v0.2.Q3_K_L.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:1befd96c52f7390e46872be6e3c947b101d73388b8ff3c3a9288f622b4a67e03
3
+ size 3822024896
mistral-7b-instruct-v0.2.Q3_K_M.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d04bb771a6a84460bbf461e86a3e38f1636f8c1f1e46e5e444e4ba1d3556db2e
3
+ size 3518986432
mistral-7b-instruct-v0.2.Q3_K_S.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:df248ad855d7494469d749031c40f16fbf614cb9a5264bee2eee129c18d3fc6e
3
+ size 3164567744
mistral-7b-instruct-v0.2.Q4_0.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:549c38aefb7b5e7c350f6b2aa66f3ad72983c4279152a88d672ae2efb774d31d
3
+ size 4108916928
mistral-7b-instruct-v0.2.Q4_1.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e0fc593fad31c7b6535ec886ebdeed0c39112638e0b867ae9f031cc7fd161137
3
+ size 4553316544
mistral-7b-instruct-v0.2.Q4_K_M.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:5e12a6ca28905eb08cc31c75aa1de001339a92e986a94dd8caf098ed6e736b42
3
+ size 4368439488
mistral-7b-instruct-v0.2.Q4_K_S.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b1ac8afb8bc570de7b98385585e4d235a7b723bda792bb0ab77bffb6d1958455
3
+ size 4140374208
mistral-7b-instruct-v0.2.Q5_0.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:387bf6997020bbbcc7f0fe7b1f5690347e64099da5f5b84308ee67959af19fb3
3
+ size 4997716160
mistral-7b-instruct-v0.2.Q5_1.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:380f6208495bf24c0cd1c1ee62ff6b4aa3d19510294f2fcc066b9e73496eb59f
3
+ size 5442115776
mistral-7b-instruct-v0.2.Q5_K_M.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f40d2ad3071a4a3754b68324a45f94076ade5b4657543423a22c95b29b3e5a5e
3
+ size 5131409600
mistral-7b-instruct-v0.2.Q5_K_S.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:ee76d8220b8841450cacdee8f131c0ec6fb5c3017b7d893ec7d81b97f46c1ad8
3
+ size 4997716160
mistral-7b-instruct-v0.2.Q6_K.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b38c20dcadff9dae7dd82b3ad61afda2ffeed7812ad7951927f65f3aabc5655d
3
+ size 5942065344
mistral-7b-instruct-v0.2.Q8_0.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:846218c4850d5d727de2d86006d840689148704e9a474851f82d18c02d497970
3
+ size 7695857856