Views
No views yet
| Name | Quant method | Size |
|---|---|---|
| limstral-7B-v0.1.Q2_K.gguf | Q2_K | 2.53GB |
| limstral-7B-v0.1.IQ3_XS.gguf | IQ3_XS | 2.81GB |
| limstral-7B-v0.1.IQ3_S.gguf | IQ3_S | 2.96GB |
| limstral-7B-v0.1.Q3_K_S.gguf | Q3_K_S | 2.95GB |
| limstral-7B-v0.1.IQ3_M.gguf | IQ3_M | 3.06GB |
| limstral-7B-v0.1.Q3_K.gguf | Q3_K | 3.28GB |
| limstral-7B-v0.1.Q3_K_M.gguf | Q3_K_M | 3.28GB |
| limstral-7B-v0.1.Q3_K_L.gguf | Q3_K_L | 3.56GB |
| limstral-7B-v0.1.IQ4_XS.gguf | IQ4_XS | 3.67GB |
| limstral-7B-v0.1.Q4_0.gguf | Q4_0 | 3.83GB |
| limstral-7B-v0.1.IQ4_NL.gguf | IQ4_NL | 3.87GB |
| limstral-7B-v0.1.Q4_K_S.gguf | Q4_K_S | 3.86GB |
| limstral-7B-v0.1.Q4_K.gguf | Q4_K | 4.07GB |
| limstral-7B-v0.1.Q4_K_M.gguf | Q4_K_M | 4.07GB |
| limstral-7B-v0.1.Q4_1.gguf | Q4_1 | 4.24GB |
| limstral-7B-v0.1.Q5_0.gguf | Q5_0 | 4.65GB |
| limstral-7B-v0.1.Q5_K_S.gguf | Q5_K_S | 4.65GB |
| limstral-7B-v0.1.Q5_K.gguf | Q5_K | 4.78GB |
| limstral-7B-v0.1.Q5_K_M.gguf | Q5_K_M | 4.78GB |
| limstral-7B-v0.1.Q5_1.gguf | Q5_1 | 5.07GB |
| limstral-7B-v0.1.Q6_K.gguf | Q6_K | 5.53GB |
| limstral-7B-v0.1.Q8_0.gguf | Q8_0 | 7.17GB |

huggingface/peft library and trl/sft for 2 epochs on 1 x A100 (40GB) GPU.trainer = SFTTrainer(
model=model,
train_dataset=train_ds,
eval_dataset=test_ds,
peft_config=peft_config,
dataset_text_field="text",
max_seq_length=2048,
tokenizer=tokenizer,
args=training_arguments,
packing=False
)config = LoraConfig(
lora_alpha=16,
lora_dropout=0.1,
r=64,
bias="none",
task_type="CAUSAL_LM",
target_modules = ['q_proj', 'k_proj', 'down_proj', 'v_proj', 'o_proj', 'gate_proj', 'up_proj']
)| Step | Training Loss | Validation Loss |
|---|---|---|
| 5 | 1.802800 | 1.848371 |
| 10 | 1.605800 | 1.803416 |
| 15 | 1.844800 | 1.762276 |
| 20 | 1.752600 | 1.754042 |
| 25 | 1.512400 | 1.750550 |
1import torch
2from transformers import AutoModelForCausalLM, AutoTokenizer, pipeline
3
4repo_id = "mrm8488/limstral-7B-v0.1"
5
6model = AutoModelForCausalLM.from_pretrained(repo_id, torch_dtype=torch.bfloat16)
7tokenizer = AutoTokenizer.from_pretrained(repo_id)
8
9gen = pipeline("text-generation", model=model, tokenizer=tokenizer, device=0)
10
11instruction = "[INST] Write an email to say goodbye to me boss [\INST]"
12res = gen(instruction, max_new_tokens=512, temperature=0.3, top_p=0.75, top_k=40, repetition_penalty=1.2)
13print(res[0]['generated_text'])