--- base_model: meta-llama/Meta-Llama-3-8B-Instruct library_name: peft license: other metrics: - accuracy tags: - llama-factory - lora - generated_from_trainer model-index: - name: sft results: [] --- # Supervised Fine-Tuned Model This model is a fine-tuned version of [meta-llama/Meta-Llama-3-8B-Instruct](https://huggingface.co/meta-llama/Meta-Llama-3-8B-Instruct) on the open_platypus dataset. It achieves the following results on the evaluation set: - Loss: 0.6769 - Accuracy: 0.8116 ## Model description This model is a fine-tuned version of [meta-llama/Meta-Llama-3-8B-Instruct](https://huggingface.co/meta-llama/Meta-Llama-3-8B-Instruct) on the open_platypus dataset. ## Intended uses & limitations ### How to use You can use this model directly with a pipeline for text classification. Here is an example: ```python from transformers import AutoModel, AutoTokenizer tokenizer = AutoTokenizer.from_pretrained("2nji/llama3-platypus") model = AutoModel.from_pretrained("2nji/llama3-platypus") inputs = tokenizer("Example input text", return_tensors="pt") with torch.no_grad(): outputs = model(**inputs) print(outputs) ``` ## Training and evaluation data The model was fine-tuned on the open_platypus dataset. ## Training procedure ### Training hyperparameters The following hyperparameters were used during training: - learning_rate: 0.0001 - train_batch_size: 1 - eval_batch_size: 1 - seed: 42 - gradient_accumulation_steps: 8 - total_train_batch_size: 8 - optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08 - lr_scheduler_type: cosine - lr_scheduler_warmup_ratio: 0.1 - num_epochs: 3.0 ### Training results The model was trained on a single NVIDIA H100 GPU with the following results: - Loss: 0.6769 - Accuracy: 0.8116 ### Framework versions - PEFT 0.11.1 - Transformers 4.42.3 - Pytorch 2.3.1+cu121 - Datasets 2.20.0 - Tokenizers 0.19.1