PEFT
Safetensors
mistral
alignment-handbook
trl
sft
unsloth
Generated from Trainer
4-bit precision
bitsandbytes
Instructions to use Peter/uploadtestsmallstep2 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use Peter/uploadtestsmallstep2 with PEFT:
from peft import PeftModel from transformers import AutoModelForCausalLM base_model = AutoModelForCausalLM.from_pretrained("unsloth/mistral-7b") model = PeftModel.from_pretrained(base_model, "Peter/uploadtestsmallstep2") - Notebooks
- Google Colab
- Kaggle
- Local Apps
- Unsloth Studio new
How to use Peter/uploadtestsmallstep2 with Unsloth Studio:
Install Unsloth Studio (macOS, Linux, WSL)
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 Peter/uploadtestsmallstep2 to start chatting
Install Unsloth Studio (Windows)
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 Peter/uploadtestsmallstep2 to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for Peter/uploadtestsmallstep2 to start chatting
Load model with FastModel
pip install unsloth from unsloth import FastModel model, tokenizer = FastModel.from_pretrained( model_name="Peter/uploadtestsmallstep2", max_seq_length=2048, )
| { | |
| "best_metric": null, | |
| "best_model_checkpoint": null, | |
| "epoch": 0.028011204481792718, | |
| "eval_steps": 50, | |
| "global_step": 5, | |
| "is_hyper_param_search": false, | |
| "is_local_process_zero": true, | |
| "is_world_process_zero": true, | |
| "log_history": [ | |
| { | |
| "epoch": 0.01, | |
| "learning_rate": 0.0002, | |
| "loss": 0.5943, | |
| "step": 1 | |
| }, | |
| { | |
| "epoch": 0.01, | |
| "learning_rate": 0.00017071067811865476, | |
| "loss": 0.4897, | |
| "step": 2 | |
| }, | |
| { | |
| "epoch": 0.02, | |
| "learning_rate": 2.9289321881345254e-05, | |
| "loss": 0.3498, | |
| "step": 4 | |
| }, | |
| { | |
| "epoch": 0.03, | |
| "step": 5, | |
| "total_flos": 2.119653912064819e+16, | |
| "train_loss": 0.43747174739837646, | |
| "train_runtime": 462.0146, | |
| "train_samples_per_second": 0.173, | |
| "train_steps_per_second": 0.011 | |
| } | |
| ], | |
| "logging_steps": 2, | |
| "max_steps": 5, | |
| "num_input_tokens_seen": 0, | |
| "num_train_epochs": 1, | |
| "save_steps": 200, | |
| "total_flos": 2.119653912064819e+16, | |
| "train_batch_size": 8, | |
| "trial_name": null, | |
| "trial_params": null | |
| } | |