RichardErkhov commited on
Commit
ea149a7
โ€ข
1 Parent(s): f5f6332

uploaded readme

Browse files
Files changed (1) hide show
  1. README.md +119 -0
README.md ADDED
@@ -0,0 +1,119 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ Quantization made by Richard Erkhov.
2
+
3
+ [Github](https://github.com/RichardErkhov)
4
+
5
+ [Discord](https://discord.gg/pvy7H8DZMG)
6
+
7
+ [Request more models](https://github.com/RichardErkhov/quant_request)
8
+
9
+
10
+ Hebrew-Mistral-7B - GGUF
11
+ - Model creator: https://huggingface.co/yam-peleg/
12
+ - Original model: https://huggingface.co/yam-peleg/Hebrew-Mistral-7B/
13
+
14
+
15
+ | Name | Quant method | Size |
16
+ | ---- | ---- | ---- |
17
+ | [Hebrew-Mistral-7B.Q2_K.gguf](https://huggingface.co/RichardErkhov/yam-peleg_-_Hebrew-Mistral-7B-gguf/blob/main/Hebrew-Mistral-7B.Q2_K.gguf) | Q2_K | 2.67GB |
18
+ | [Hebrew-Mistral-7B.IQ3_XS.gguf](https://huggingface.co/RichardErkhov/yam-peleg_-_Hebrew-Mistral-7B-gguf/blob/main/Hebrew-Mistral-7B.IQ3_XS.gguf) | IQ3_XS | 2.96GB |
19
+ | [Hebrew-Mistral-7B.IQ3_S.gguf](https://huggingface.co/RichardErkhov/yam-peleg_-_Hebrew-Mistral-7B-gguf/blob/main/Hebrew-Mistral-7B.IQ3_S.gguf) | IQ3_S | 3.12GB |
20
+ | [Hebrew-Mistral-7B.Q3_K_S.gguf](https://huggingface.co/RichardErkhov/yam-peleg_-_Hebrew-Mistral-7B-gguf/blob/main/Hebrew-Mistral-7B.Q3_K_S.gguf) | Q3_K_S | 3.1GB |
21
+ | [Hebrew-Mistral-7B.IQ3_M.gguf](https://huggingface.co/RichardErkhov/yam-peleg_-_Hebrew-Mistral-7B-gguf/blob/main/Hebrew-Mistral-7B.IQ3_M.gguf) | IQ3_M | 3.21GB |
22
+ | [Hebrew-Mistral-7B.Q3_K.gguf](https://huggingface.co/RichardErkhov/yam-peleg_-_Hebrew-Mistral-7B-gguf/blob/main/Hebrew-Mistral-7B.Q3_K.gguf) | Q3_K | 3.43GB |
23
+ | [Hebrew-Mistral-7B.Q3_K_M.gguf](https://huggingface.co/RichardErkhov/yam-peleg_-_Hebrew-Mistral-7B-gguf/blob/main/Hebrew-Mistral-7B.Q3_K_M.gguf) | Q3_K_M | 3.43GB |
24
+ | [Hebrew-Mistral-7B.Q3_K_L.gguf](https://huggingface.co/RichardErkhov/yam-peleg_-_Hebrew-Mistral-7B-gguf/blob/main/Hebrew-Mistral-7B.Q3_K_L.gguf) | Q3_K_L | 3.71GB |
25
+ | [Hebrew-Mistral-7B.IQ4_XS.gguf](https://huggingface.co/RichardErkhov/yam-peleg_-_Hebrew-Mistral-7B-gguf/blob/main/Hebrew-Mistral-7B.IQ4_XS.gguf) | IQ4_XS | 3.84GB |
26
+ | [Hebrew-Mistral-7B.Q4_0.gguf](https://huggingface.co/RichardErkhov/yam-peleg_-_Hebrew-Mistral-7B-gguf/blob/main/Hebrew-Mistral-7B.Q4_0.gguf) | Q4_0 | 4.0GB |
27
+ | [Hebrew-Mistral-7B.IQ4_NL.gguf](https://huggingface.co/RichardErkhov/yam-peleg_-_Hebrew-Mistral-7B-gguf/blob/main/Hebrew-Mistral-7B.IQ4_NL.gguf) | IQ4_NL | 4.04GB |
28
+ | [Hebrew-Mistral-7B.Q4_K_S.gguf](https://huggingface.co/RichardErkhov/yam-peleg_-_Hebrew-Mistral-7B-gguf/blob/main/Hebrew-Mistral-7B.Q4_K_S.gguf) | Q4_K_S | 4.03GB |
29
+ | [Hebrew-Mistral-7B.Q4_K.gguf](https://huggingface.co/RichardErkhov/yam-peleg_-_Hebrew-Mistral-7B-gguf/blob/main/Hebrew-Mistral-7B.Q4_K.gguf) | Q4_K | 4.24GB |
30
+ | [Hebrew-Mistral-7B.Q4_K_M.gguf](https://huggingface.co/RichardErkhov/yam-peleg_-_Hebrew-Mistral-7B-gguf/blob/main/Hebrew-Mistral-7B.Q4_K_M.gguf) | Q4_K_M | 4.24GB |
31
+ | [Hebrew-Mistral-7B.Q4_1.gguf](https://huggingface.co/RichardErkhov/yam-peleg_-_Hebrew-Mistral-7B-gguf/blob/main/Hebrew-Mistral-7B.Q4_1.gguf) | Q4_1 | 4.42GB |
32
+ | [Hebrew-Mistral-7B.Q5_0.gguf](https://huggingface.co/RichardErkhov/yam-peleg_-_Hebrew-Mistral-7B-gguf/blob/main/Hebrew-Mistral-7B.Q5_0.gguf) | Q5_0 | 4.84GB |
33
+ | [Hebrew-Mistral-7B.Q5_K_S.gguf](https://huggingface.co/RichardErkhov/yam-peleg_-_Hebrew-Mistral-7B-gguf/blob/main/Hebrew-Mistral-7B.Q5_K_S.gguf) | Q5_K_S | 4.84GB |
34
+ | [Hebrew-Mistral-7B.Q5_K.gguf](https://huggingface.co/RichardErkhov/yam-peleg_-_Hebrew-Mistral-7B-gguf/blob/main/Hebrew-Mistral-7B.Q5_K.gguf) | Q5_K | 4.96GB |
35
+ | [Hebrew-Mistral-7B.Q5_K_M.gguf](https://huggingface.co/RichardErkhov/yam-peleg_-_Hebrew-Mistral-7B-gguf/blob/main/Hebrew-Mistral-7B.Q5_K_M.gguf) | Q5_K_M | 4.96GB |
36
+ | [Hebrew-Mistral-7B.Q5_1.gguf](https://huggingface.co/RichardErkhov/yam-peleg_-_Hebrew-Mistral-7B-gguf/blob/main/Hebrew-Mistral-7B.Q5_1.gguf) | Q5_1 | 5.26GB |
37
+ | [Hebrew-Mistral-7B.Q6_K.gguf](https://huggingface.co/RichardErkhov/yam-peleg_-_Hebrew-Mistral-7B-gguf/blob/main/Hebrew-Mistral-7B.Q6_K.gguf) | Q6_K | 5.74GB |
38
+ | [Hebrew-Mistral-7B.Q8_0.gguf](https://huggingface.co/RichardErkhov/yam-peleg_-_Hebrew-Mistral-7B-gguf/blob/main/Hebrew-Mistral-7B.Q8_0.gguf) | Q8_0 | 7.43GB |
39
+
40
+
41
+
42
+
43
+ Original model description:
44
+ ---
45
+ license: apache-2.0
46
+ language:
47
+ - en
48
+ - he
49
+ library_name: transformers
50
+ ---
51
+ # Hebrew-Mistral-7B
52
+
53
+ Hebrew-Mistral-7B is an open-source Large Language Model (LLM) pretrained in hebrew and english pretrained with 7B billion parameters, based on Mistral-7B-v1.0 from Mistral.
54
+
55
+ It has an extended hebrew tokenizer with 64,000 tokens and is continuesly pretrained from Mistral-7B on tokens in both English and Hebrew.
56
+
57
+ The resulting model is a powerful general-purpose language model suitable for a wide range of natural language processing tasks, with a focus on Hebrew language understanding and generation.
58
+
59
+ ### Usage
60
+
61
+ Below are some code snippets on how to get quickly started with running the model.
62
+
63
+ First make sure to `pip install -U transformers`, then copy the snippet from the section that is relevant for your usecase.
64
+
65
+ ### Running on CPU
66
+
67
+ ```python
68
+ from transformers import AutoTokenizer, AutoModelForCausalLM
69
+
70
+ tokenizer = AutoTokenizer.from_pretrained("yam-peleg/Hebrew-Mistral-7B")
71
+ model = AutoModelForCausalLM.from_pretrained("yam-peleg/Hebrew-Mistral-7B")
72
+
73
+ input_text = "ืฉืœื•ื! ืžื” ืฉืœื•ืžืš ื”ื™ื•ื?"
74
+ input_ids = tokenizer(input_text, return_tensors="pt")
75
+
76
+ outputs = model.generate(**input_ids)
77
+ print(tokenizer.decode(outputs[0]))
78
+ ```
79
+
80
+ ### Running on GPU
81
+
82
+ ```python
83
+ from transformers import AutoTokenizer, AutoModelForCausalLM
84
+
85
+ tokenizer = AutoTokenizer.from_pretrained("yam-peleg/Hebrew-Mistral-7B")
86
+ model = AutoModelForCausalLM.from_pretrained("yam-peleg/Hebrew-Mistral-7B", device_map="auto")
87
+
88
+ input_text = "ืฉืœื•ื! ืžื” ืฉืœื•ืžืš ื”ื™ื•ื?"
89
+ input_ids = tokenizer(input_text, return_tensors="pt").to("cuda")
90
+
91
+ outputs = model.generate(**input_ids)
92
+ print(tokenizer.decode(outputs[0]))
93
+ ```
94
+
95
+ ### Running with 4-Bit precision
96
+
97
+ ```python
98
+ from transformers import AutoTokenizer, AutoModelForCausalLM, BitsAndBytesConfig
99
+
100
+ tokenizer = AutoTokenizer.from_pretrained("yam-peleg/Hebrew-Mistral-7B")
101
+ model = AutoModelForCausalLM.from_pretrained("yam-peleg/Hebrew-Mistral-7B", quantization_config = BitsAndBytesConfig(load_in_4bit=True))
102
+
103
+ input_text = "ืฉืœื•ื! ืžื” ืฉืœื•ืžืš ื”ื™ื•ื?"
104
+ input_ids = tokenizer(input_text, return_tensors="pt").to("cuda")
105
+
106
+ outputs = model.generate(**input_ids)
107
+ print(tokenizer.decode(outputs[0])
108
+ ```
109
+
110
+ ### Notice
111
+
112
+ Hebrew-Mistral-7B is a pretrained base model and therefore does not have any moderation mechanisms.
113
+
114
+ ### Authors
115
+ - Trained by Yam Peleg.
116
+ - In collaboration with Jonathan Rouach and Arjeo, inc.
117
+
118
+
119
+