robinsmits/ChatAlpaca-20K
Viewer • Updated • 40k • 148 • 6
How to use robinsmits/Mistral-Instruct-7B-v0.2-ChatAlpacaV2 with PEFT:
from peft import PeftModel
from transformers import AutoModelForCausalLM
base_model = AutoModelForCausalLM.from_pretrained("unsloth/mistral-7b-instruct-v0.2-bnb-4bit")
model = PeftModel.from_pretrained(base_model, "robinsmits/Mistral-Instruct-7B-v0.2-ChatAlpacaV2")How to use robinsmits/Mistral-Instruct-7B-v0.2-ChatAlpacaV2 with Unsloth Studio:
curl -fsSL https://unsloth.ai/install.sh | sh # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for robinsmits/Mistral-Instruct-7B-v0.2-ChatAlpacaV2 to start chatting
irm https://unsloth.ai/install.ps1 | iex # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for robinsmits/Mistral-Instruct-7B-v0.2-ChatAlpacaV2 to start chatting
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for robinsmits/Mistral-Instruct-7B-v0.2-ChatAlpacaV2 to start chatting
pip install unsloth
from unsloth import FastModel
model, tokenizer = FastModel.from_pretrained(
model_name="robinsmits/Mistral-Instruct-7B-v0.2-ChatAlpacaV2",
max_seq_length=2048,
)This model is a fine-tuned version of unsloth/mistral-7b-instruct-v0.2-bnb-4bit on an unknown dataset. It achieves the following results on the evaluation set:
More information needed
More information needed
More information needed
The following hyperparameters were used during training:
| Training Loss | Epoch | Step | Validation Loss |
|---|---|---|---|
| 0.8801 | 0.2 | 120 | 0.8756 |
| 0.8498 | 0.39 | 240 | 0.8553 |
| 0.8515 | 0.59 | 360 | 0.8475 |
| 0.8313 | 0.78 | 480 | 0.8445 |
| 0.857 | 0.98 | 600 | 0.8439 |
Base model
unsloth/mistral-7b-instruct-v0.2-bnb-4bit