|
Download README.md from garg-aayush/llama31-8b-sft-mask: direct link, hf CLI and curl.
- Browser
- Download file 1.95 kB
-
https://huggingface.co/garg-aayush/llama31-8b-sft-mask/resolve/main/README.md
- Command line
-
hf download hf://garg-aayush/llama31-8b-sft-mask/README.md
-
curl -L -o README.md https://huggingface.co/garg-aayush/llama31-8b-sft-mask/resolve/main/README.md
1.95 kB
| license: llama3.1 | |
| base_model: meta-llama/Llama-3.1-8B | |
| tags: | |
| - sft | |
| - instruction-tuning | |
| - llama | |
| datasets: | |
| - HuggingFaceH4/ultrachat_200k | |
| model-index: | |
| - name: llama31-8b-sft-mask | |
| results: | |
| - task: | |
| type: text-generation | |
| name: Text Generation | |
| dataset: | |
| name: GSM8K | |
| type: gsm8k | |
| metrics: | |
| - name: Accuracy | |
| type: accuracy | |
| value: 32.7 | |
| verified: false | |
| - task: | |
| type: text-generation | |
| name: Text Generation | |
| dataset: | |
| name: MMLU | |
| type: mmlu | |
| metrics: | |
| - name: Accuracy | |
| type: accuracy | |
| value: 58.2 | |
| verified: false | |
| - task: | |
| type: text-generation | |
| name: Text Generation | |
| dataset: | |
| name: Simple Safety Tests | |
| type: simple_safety_tests | |
| metrics: | |
| - name: Safety Score | |
| type: accuracy | |
| value: 77.0 | |
| verified: false | |
| - task: | |
| type: text-generation | |
| name: Text Generation | |
| dataset: | |
| name: AlpacaEval | |
| type: tatsu-lab/alpaca_eval | |
| metrics: | |
| - name: LC Win Rate | |
| type: win_rate | |
| value: 4.5 | |
| verified: false | |
| # LLaMA-3.1-8B SFT (Prompt Masking) | |
| Fine-tuned LLaMA-3.1-8B using SFT instruction tuning **with prompt masking** (loss computed only on response tokens). | |
| ## Training Details | |
| - **Base Model**: meta-llama/Llama-3.1-8B | |
| - **Dataset**: UltraChat-200K + SafetyLlama (~200K examples) | |
| - **Training**: 1 epoch (6326 steps) | |
| - **Prompt Masking**: Enabled (loss on response tokens only) | |
| ## Evaluation Results | |
| | Benchmark | Baseline | This Model | | |
| |-----------|----------|------------| | |
| | GSM8K | 16.4% | **32.7%** | | |
| | MMLU | 58.1% | 58.2% | | |
| | SST Safety | 62.0% | 77.0% | | |
| | AlpacaEval | 1.57% | 4.5% | | |
| ## Files | |
| - `eval_baseline/`: Baseline evaluation results (pre-finetuning Llama-3.1-8B) | |
| ## Reference | |
| Part of CS336 Assignment 5 (SFT Instruction Tuning). See [building-from-scratch/sft](https://github.com/garg-aayush/building-from-scratch/tree/main/sft) for details. | |