Views
No views yet
| Name | Quant method | Size |
|---|---|---|
| mistral-7B-v0.1-hf.Q2_K.gguf | Q2_K | 2.53GB |
| mistral-7B-v0.1-hf.IQ3_XS.gguf | IQ3_XS | 2.81GB |
| mistral-7B-v0.1-hf.IQ3_S.gguf | IQ3_S | 2.96GB |
| mistral-7B-v0.1-hf.Q3_K_S.gguf | Q3_K_S | 2.95GB |
| mistral-7B-v0.1-hf.IQ3_M.gguf | IQ3_M | 3.06GB |
| mistral-7B-v0.1-hf.Q3_K.gguf | Q3_K | 3.28GB |
| mistral-7B-v0.1-hf.Q3_K_M.gguf | Q3_K_M | 3.28GB |
| mistral-7B-v0.1-hf.Q3_K_L.gguf | Q3_K_L | 3.56GB |
| mistral-7B-v0.1-hf.IQ4_XS.gguf | IQ4_XS | 3.67GB |
| mistral-7B-v0.1-hf.Q4_0.gguf | Q4_0 | 3.83GB |
| mistral-7B-v0.1-hf.IQ4_NL.gguf | IQ4_NL | 3.87GB |
| mistral-7B-v0.1-hf.Q4_K_S.gguf | Q4_K_S | 3.86GB |
| mistral-7B-v0.1-hf.Q4_K.gguf | Q4_K | 4.07GB |
| mistral-7B-v0.1-hf.Q4_K_M.gguf | Q4_K_M | 4.07GB |
| mistral-7B-v0.1-hf.Q4_1.gguf | Q4_1 | 4.24GB |
| mistral-7B-v0.1-hf.Q5_0.gguf | Q5_0 | 4.65GB |
| mistral-7B-v0.1-hf.Q5_K_S.gguf | Q5_K_S | 4.65GB |
| mistral-7B-v0.1-hf.Q5_K.gguf | Q5_K | 4.78GB |
| mistral-7B-v0.1-hf.Q5_K_M.gguf | Q5_K_M | 4.78GB |
| mistral-7B-v0.1-hf.Q5_1.gguf | Q5_1 | 5.07GB |
| mistral-7B-v0.1-hf.Q6_K.gguf | Q6_K | 5.53GB |
| mistral-7B-v0.1-hf.Q8_0.gguf | Q8_0 | 7.17GB |
1import torch
2from transformers import LlamaForCausalLM, LlamaTokenizer, pipeline, TextStreamer
3
4tokenizer = LlamaTokenizer.from_pretrained("kittn/mistral-7B-v0.1-hf")
5model = LlamaForCausalLM.from_pretrained(
6 "kittn/mistral-7B-v0.1-hf",
7 torch_dtype=torch.bfloat16,
8 device_map={"": 0}
9)
10
11pipe = pipeline("text-generation", model=model, tokenizer=tokenizer)
12
13pipe("Hi, my name", streamer=TextStreamer(tokenizer), max_new_tokens=128)1import torch
2from transformers import LlamaForCausalLM, LlamaTokenizer, pipeline, TextStreamer, BitsAndBytesConfig
3
4tokenizer = LlamaTokenizer.from_pretrained("kittn/mistral-7B-v0.1-hf")
5model = LlamaForCausalLM.from_pretrained(
6 "kittn/mistral-7B-v0.1-hf",
7 device_map={"": 0},
8 quantization_config=BitsAndBytesConfig(
9 load_in_4bit=True,
10 bnb_4bit_compute_dtype=torch.float16,
11 bnb_4bit_quant_type="nf4",
12 bnb_4bit_use_double_quant=False, # set to True to save more VRAM at the cost of some speed/accuracy
13 ),
14)
15
16pipe = pipeline("text-generation", model=model, tokenizer=tokenizer)
17
18pipe("Hi, my name", streamer=TextStreamer(tokenizer), max_new_tokens=128)1import torch
2from transformers import LlamaForCausalLM, LlamaTokenizer, pipeline, TextStreamer, BitsAndBytesConfig
3
4tokenizer = LlamaTokenizer.from_pretrained("kittn/mistral-7B-v0.1-hf")
5model = LlamaForCausalLM.from_pretrained(
6 "kittn/mistral-7B-v0.1-hf",
7 device_map={"": 0},
8 quantization_config=BitsAndBytesConfig(
9 load_in_8bit=True,
10 ),
11)
12
13pipe = pipeline("text-generation", model=model, tokenizer=tokenizer)
14
15pipe("Hi, my name", streamer=TextStreamer(tokenizer), max_new_tokens=128)legacy=False, more about this here