File size: 1,383 Bytes
8fe6a6c 42a46b4 8fe6a6c 42a46b4 8fe6a6c 42a46b4 829c46b 42a46b4 829c46b 42a46b4 829c46b 42a46b4 829c46b 42a46b4 829c46b 42a46b4 829c46b 42a46b4 829c46b 42a46b4 829c46b 42a46b4 829c46b 42a46b4 829c46b 42a46b4 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 |
---
license: apache-2.0
---
# Opus-Samantha-Llama-3-8B
Opus-Samantha-Llama-3-8B is a SFT model made with [AutoSloth](https://colab.research.google.com/drive/1Zo0sVEb2lqdsUm9dy2PTzGySxdF9CNkc#scrollTo=MmLkhAjzYyJ4) by [macadeliccc](https://huggingface.co/macadeliccc)
## Process
- Original Model: [unsloth/llama-3-8b](https://huggingface.co/unsloth/llama-3-8b)
- Datatset: [macadeliccc/opus_samantha](https://huggingface.co/datasets/macadeliccc/opus_samantha)
- Learning Rate: 2e-05
- Steps: 2772
- Warmup Steps: 277
- Per Device Train Batch Size: 2
- Gradient Accumulation Steps 1
- Optimizer: paged_adamw_8bit
- Max Sequence Length: 4096
- Max Prompt Length: 2048
- Max Length: 2048
## 💻 Usage
```python
!pip install -qU transformers
from transformers import AutoTokenizer, AutoModelForCausalLM, pipeline
model = "macadeliccc/Opus-Samantha-Llama-3-8B"
tokenizer = AutoTokenizer.from_pretrained(model)
# Example prompt
prompt = "Your example prompt here"
# Generate a response
model = AutoModelForCausalLM.from_pretrained(model)
pipeline = pipeline("text-generation", model=model, tokenizer=tokenizer)
outputs = pipeline(prompt, max_length=50, num_return_sequences=1)
print(outputs[0]["generated_text"])
```
<div align="center">
<img src="https://raw.githubusercontent.com/unslothai/unsloth/main/images/made%20with%20unsloth.png" height="50" align="center" />
</div> |