Downloads · 30 days
5
29% of all-time downloads
afzalur/case-study-mistral-7b-v1
case-study-mistral-7b-v1 is a text generation model from afzalur. Use it when you need the model to write or continue text. It is set up for peft. The card lists the license as apache-2.0.
This is a LoRA (Low-Rank Adaptation) fine-tuned adapter for the Mistral 7B model, specialized for business case study generation.
Downloads · 30 days
5
29% of all-time downloads
All-time downloads
17
Public
Repo size
761 MB
Likes
0
Public
Click a slice to open those files.
.safetensors671 MB · 71%
From the Hugging Face model README
This is a LoRA (Low-Rank Adaptation) fine-tuned adapter for the Mistral 7B model, specialized for business case study generation.
from transformers import AutoModelForCausalLM, AutoTokenizer
from peft import PeftModel
# Load base model
base_model = AutoModelForCausalLM.from_pretrained("unsloth/mistral-7b-instruct-v0.3-bnb-4bit")
tokenizer = AutoTokenizer.from_pretrained("unsloth/mistral-7b-instruct-v0.3-bnb-4bit")
# Load LoRA adapter
model = PeftModel.from_pretrained(base_model, "afzalur/case-study-mistral-7b-v1")
# Generate
prompt = "Create a business case study about digital transformation"
inputs = tokenizer(prompt, return_tensors="pt")
outputs = model.generate(**inputs, max_new_tokens=512)
print(tokenizer.decode(outputs[0], skip_special_tokens=True))
This is a LoRA adapter that requires the base model. For a complete standalone model, see: afzalur/case-study-mistral-7b-full