# 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 2 epochs of the first 5000 samples from 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_chat_v_0.1")
model = AutoModelForCausalLM.from_pretrained("mwitiderrick/open_llama_3b_chat_v_0.1")
query = "How can I evaluate the performance and quality of the generated text from language models?"
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:
How can I evaluate the performance and quality of the generated text from language models?### Response:
I want to evaluate the performance of the language model by comparing the generated text with the original text. I can use a similarity measure to compare the two texts. For example, I can use the Levenshtein distance, which measures the number of edits needed to transform one text into another. The Levenshtein distance between two texts is the minimum number of edits needed to transform one text into another. The Levenshtein distance between two texts is the minimum number of edits needed to transform one text into another. The Levenshtein distance between two texts is the minimum number of edits needed to transform one text into another. The Levenshtein distance between two texts is the minimum number of edits needed to transform one text into another. The Levenshtein distance between two texts is the minimum number
"""
```
{"language": ["en"], "license": "apache-2.0", "library_name": "transformers", "tags": ["transformers"], "datasets": ["mwitiderrick/OpenPlatypus"], "base_model": "openlm-research/open_llama_3b", "inference": true, "model_type": "llama", "prompt_template": "### Instruction:\\n\n{prompt}\n### Response:\n", "created_by": "mwitiderrick", "pipeline_tag": "text-generation"}
transformers safetensors llama text-generation en dataset:mwitiderrick/OpenPlatypus base_model:openlm-research/open_llama_3b license:apache-2.0 autotrain_compatible endpoints_compatible text-generation-inference region:us