Views
No views yet
| Name | Quant | Bits | File Size | Remark |
|---|---|---|---|---|
| neuralhermes-2.5-mistral-7b.IQ3_S.gguf | IQ3_S | 3 | 3.18 GB | 3.44 bpw quantization |
| neuralhermes-2.5-mistral-7b.IQ3_M.gguf | IQ3_M | 3 | 3.28 GB | 3.66 bpw quantization mix |
| neuralhermes-2.5-mistral-7b.Q4_0.gguf | Q4_0 | 4 | 4.11 GB | 3.56G, +0.2166 ppl |
| neuralhermes-2.5-mistral-7b.IQ4_NL.gguf | IQ4_NL | 4 | 4.16 GB | 4.25 bpw non-linear quantization |
| neuralhermes-2.5-mistral-7b.Q4_K_M.gguf | Q4_K_M | 4 | 4.37 GB | 3.80G, +0.0532 ppl |
| neuralhermes-2.5-mistral-7b.Q5_K_M.gguf | Q5_K_M | 5 | 5.13 GB | 4.45G, +0.0122 ppl |
| neuralhermes-2.5-mistral-7b.Q6_K.gguf | Q6_K | 6 | 5.94 GB | 5.15G, +0.0008 ppl |
| neuralhermes-2.5-mistral-7b.Q8_0.gguf | Q8_0 | 8 | 7.70 GB | 6.70G, +0.0004 ppl |
| path | type | architecture | rope_theta | sliding_win | max_pos_embed |
|---|---|---|---|---|---|
| teknium/OpenHermes-2.5-Mistral-7B | mistral | MistralForCausalLM | 10000 | 4096 | 32768 |






1import transformers
2from transformers import AutoTokenizer
3
4# Format prompt
5message = [
6 {"role": "system", "content": "You are a helpful assistant chatbot."},
7 {"role": "user", "content": "What is a Large Language Model?"}
8]
9tokenizer = AutoTokenizer.from_pretrained(new_model)
10prompt = tokenizer.apply_chat_template(message, add_generation_prompt=True, tokenize=False)
11
12# Create pipeline
13pipeline = transformers.pipeline(
14 "text-generation",
15 model=new_model,
16 tokenizer=tokenizer
17)
18
19# Generate text
20sequences = pipeline(
21 prompt,
22 do_sample=True,
23 temperature=0.7,
24 top_p=0.9,
25 num_return_sequences=1,
26 max_length=200,
27)
28print(sequences[0]['generated_text'])