Instructions to use Unbabel/TowerInstruct-7B-v0.1 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Unbabel/TowerInstruct-7B-v0.1 with Transformers:
# Use a pipeline as a high-level helper # Warning: Pipeline type "translation" is no longer supported in transformers v5. # You must load the model directly (see below) or downgrade to v4.x with: # 'pip install "transformers<5.0.0' from transformers import pipeline pipe = pipeline("translation", model="Unbabel/TowerInstruct-7B-v0.1")# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("Unbabel/TowerInstruct-7B-v0.1") model = AutoModelForCausalLM.from_pretrained("Unbabel/TowerInstruct-7B-v0.1", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Update special_tokens_map.json
Browse files- special_tokens_map.json +1 -1
special_tokens_map.json
CHANGED
|
@@ -28,7 +28,7 @@
|
|
| 28 |
"single_word": false
|
| 29 |
},
|
| 30 |
"pad_token": {
|
| 31 |
-
"content": "<
|
| 32 |
"lstrip": false,
|
| 33 |
"normalized": false,
|
| 34 |
"rstrip": false,
|
|
|
|
| 28 |
"single_word": false
|
| 29 |
},
|
| 30 |
"pad_token": {
|
| 31 |
+
"content": "<|im_end|>",
|
| 32 |
"lstrip": false,
|
| 33 |
"normalized": false,
|
| 34 |
"rstrip": false,
|