traintogpb
commited on
Commit
•
70c1f9e
1
Parent(s):
2789e1d
chore: fix model card
Browse files
README.md
CHANGED
@@ -22,6 +22,7 @@ pipeline_tag: translation
|
|
22 |
|
23 |
### Prompt
|
24 |
- Template:
|
|
|
25 |
```python
|
26 |
prompt = f"Translate this from {src_lang} to {tgt_lang}\n### {src_lang}: {src_text}\n### {tgt_lang}:"
|
27 |
|
@@ -32,6 +33,7 @@ pipeline_tag: translation
|
|
32 |
- Issue:
|
33 |
The tokenizer of the model tokenizes the prompt below in different way with the prompt above.
|
34 |
Make sure to use the prompt proposed above.
|
|
|
35 |
```python
|
36 |
prompt = f"""Translate this from {src_lang} to {tgt_lang}
|
37 |
### {src_lang}: {src_text}
|
|
|
22 |
|
23 |
### Prompt
|
24 |
- Template:
|
25 |
+
|
26 |
```python
|
27 |
prompt = f"Translate this from {src_lang} to {tgt_lang}\n### {src_lang}: {src_text}\n### {tgt_lang}:"
|
28 |
|
|
|
33 |
- Issue:
|
34 |
The tokenizer of the model tokenizes the prompt below in different way with the prompt above.
|
35 |
Make sure to use the prompt proposed above.
|
36 |
+
|
37 |
```python
|
38 |
prompt = f"""Translate this from {src_lang} to {tgt_lang}
|
39 |
### {src_lang}: {src_text}
|