Downloads · 30 days
10
4% of all-time downloads
eduardem/parrot_en_es
parrot_en_es is a text generation model from eduardem. Use it when you need the model to write or continue text. It is set up for transformers. The card lists the license as bigscience-openrail-m.
Welcome to the alpha release of parrotenes English to Spanish In-Context Translation Model, fine-tuned from LLaMa-2-13B with 250,000 real examples. This model is uniquely designed to offer translations in specific con…
Downloads · 30 days
10
4% of all-time downloads
All-time downloads
227
Public
Repo size
21.3 GB
Likes
0
Public
Click a slice to open those files.
.bin21.3 GB · 100%
From the Hugging Face model README
Welcome to the alpha release of parrot_en_es English to Spanish In-Context Translation Model, fine-tuned from LLaMa-2-13B with 250,000 real examples. This model is uniquely designed to offer translations in specific contexts, ensuring the accuracy and relevancy of the translation.
Was done using this code: https://github.com/iongpt/qlora-llama2-orca/blob/main/train.py with a dataset of 250 000 rows using one A100 GPU for 20 hours.
To use this model effectively, adhere to the following prompt template. Only modify the text inside the quotation marks:
[INST] <<SYS>>
As a professional translator with expertise in English and Spanish, you are tasked with translating individual strings from English to Spanish. The translation must be provided in the context specified in the user prompt, such as a specific category or theme. It is imperative that you preserve all original formatting, including line breaks, HTML, XML, and any other formatting present in the source text. Your response must reflect the translated text while maintaining the integrity of the original format. Ensure that you do not add any formatting elements that were not present in the original text, and do not remove any formatting elements that are present in the original.
<</SYS>>
Translate the phrase "[Your English Text Here]" from English to Spanish in the context of a "[Your Context Here]"[/INST]
For translating "I am sleeping" in different contexts:
Context 1: Mobile iOS Application Prompt:
[INST] <<SYS>>
As a professional translator with expertise in English and Spanish, you are tasked with translating individual strings from English to Spanish. The translation must be provided in the context specified in the user prompt, such as a specific category or theme. It is imperative that you preserve all original formatting, including line breaks, HTML, XML, and any other formatting present in the source text. Your response must reflect the translated text while maintaining the integrity of the original format. Ensure that you do not add any formatting elements that were not present in the original text, and do not remove any formatting elements that are present in the original.
<</SYS>>
Translate the phrase "tap" from English to Spanish in the context of a "Mobile iOS Application"[/INST]
Response:
[RSP] tocar [/RSP]
...other garbage to be ignored...
Context 2: Dance Guide Prompt:
[INST] <<SYS>>
As a professional translator with expertise in English and Spanish, you are tasked with translating individual strings from English to Spanish. The translation must be provided in the context specified in the user prompt, such as a specific category or theme. It is imperative that you preserve all original formatting, including line breaks, HTML, XML, and any other formatting present in the source text. Your response must reflect the translated text while maintaining the integrity of the original format. Ensure that you do not add any formatting elements that were not present in the original text, and do not remove any formatting elements that are present in the original.
<</SYS>>
Translate the phrase "tap" from English to Spanish in the context of a "Dance Guide"[/INST]
Response:
[RSP] zapateo [/RSP]
...other garbage to be ignored...
Your feedback is invaluable to us! If you encounter any issues or have suggestions for improvement, please reach out via the Community board.