Downloads · 30 days
21
30% of all-time downloads
macadeliccc/DrKlaus-7B
DrKlaus-7B is a text generation model from macadeliccc. Use it when you need the model to write or continue text. It is set up for transformers. The card lists the license as apache-2.0.
Downloads · 30 days
21
30% of all-time downloads
All-time downloads
69
Public
Parameters
7.2B
14.5 GB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors14.5 GB · 100%
From the Hugging Face model README

DrKlaus-7B is a SFT model made with AutoSloth by macadeliccc
Original Model: mistralai/Mistral-7B-Instruct-v0.2
Datatset: medalpaca/medical_meadow_wikidoc_patient_information
Learning Rate: 3e-05
Steps: 80
Warmup Steps: 8
Per Device Train Batch Size: 24
Gradient Accumulation Steps 12
Optimizer: adamw_8bit
Max Sequence Length: 1024
Max Prompt Length: 512
Max Length: 1024
!pip install -qU transformers
from transformers import AutoTokenizer, AutoModelForCausalLM, pipeline
model = "macadeliccc/DrKlaus-7B"
tokenizer = AutoTokenizer.from_pretrained(model)
# Example prompt
prompt = "Your example prompt here"
# Generate a response
model = AutoModelForCausalLM.from_pretrained(model)
pipeline = pipeline("text-generation", model=model, tokenizer=tokenizer)
outputs = pipeline(prompt, max_length=50, num_return_sequences=1)
print(outputs[0]["generated_text"])
<div align="center">
<img src="https://raw.githubusercontent.com/unslothai/unsloth/main/images/made%20with%20unsloth.png" height="50" align="center" />
</div>