|
--- |
|
base_model: openlm-research/open_llama_3b |
|
datasets: |
|
- mwitiderrick/Open-Platypus |
|
inference: true |
|
model_type: llama |
|
prompt_template: | |
|
### Instruction:\n |
|
{prompt} |
|
### Response: |
|
created_by: mwitiderrick |
|
tags: |
|
- transformers |
|
license: apache-2.0 |
|
language: |
|
- en |
|
library_name: transformers |
|
pipeline_tag: text-generation |
|
--- |
|
# OpenLLaMA Instruct: An Open Reproduction of LLaMA |
|
|
|
This is an [OpenLlama model](https://huggingface.co/openlm-research/open_llama_3b) that has been fine-tuned on 1 epoch of the |
|
[Open-Platypus](https://huggingface.co/datasets/garage-bAInd/Open-Platypus) dataset. |
|
|
|
The modified version of the dataset can be found [here](mwitiderrick/Open-Platypus) |
|
|
|
## Usage |
|
```python |
|
from transformers import AutoTokenizer, AutoModelForCausalLM,pipeline |
|
|
|
tokenizer = AutoTokenizer.from_pretrained("mwitiderrick/open_llama_3b_instruct_v_0.2") |
|
model = AutoModelForCausalLM.from_pretrained("mwitiderrick/open_llama_3b_instruct_v_0.2") |
|
query = "Provide step-by-step instructions for making banana bread" |
|
text_gen = pipeline(task="text-generation", model=model, tokenizer=tokenizer, max_length=200) |
|
output = text_gen(f"### Instruction:\n{query}### Response:\n") |
|
print(output[0]['generated_text']) |
|
""" |
|
### Instruction: |
|
Provide step-by-step instructions for making banana bread |
|
### Response: |
|
1. Preheat the oven to 350 degrees Fahrenheit. |
|
2. Sift together the flour, baking soda, and salt into a large bowl. |
|
3. In a separate bowl, whisk together the sugar, oil, and eggs. |
|
4. Add the wet ingredients to the dry ingredients and mix until combined. |
|
5. Stir in the bananas and nuts. |
|
6. Pour the batter into a greased loaf pan and bake for 50-60 minutes, or until a toothpick inserted into the center comes out clean. |
|
7. Allow the bread to cool completely before slicing and serving. |
|
8. Store in an airtight container for up to 3 days. |
|
9. Repeat steps 1-8 until all the bananas are used up. |
|
10. Repeat steps 1 |
|
""" |
|
``` |