Instructions to use nytopop/1b_or_base with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use nytopop/1b_or_base with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-to-speech", model="nytopop/1b_or_base")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("nytopop/1b_or_base") model = AutoModelForCausalLM.from_pretrained("nytopop/1b_or_base", device_map="auto") - Notebooks
- Google Colab
- Kaggle
remove <|audio|>
Browse files- special_tokens_map.json +1 -3
- tokenizer.json +2 -2
- tokenizer_config.json +1 -11
special_tokens_map.json
CHANGED
|
@@ -1,7 +1,5 @@
|
|
| 1 |
{
|
| 2 |
-
"additional_special_tokens": [
|
| 3 |
-
"<|audio|>"
|
| 4 |
-
],
|
| 5 |
"bos_token": {
|
| 6 |
"content": "<|begin_of_text|>",
|
| 7 |
"lstrip": false,
|
|
|
|
| 1 |
{
|
| 2 |
+
"additional_special_tokens": [],
|
|
|
|
|
|
|
| 3 |
"bos_token": {
|
| 4 |
"content": "<|begin_of_text|>",
|
| 5 |
"lstrip": false,
|
tokenizer.json
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:820fd03451ff8366cf7ac622d4e280d34893f2daed0fe4525d68a878e5a57bf8
|
| 3 |
+
size 22849362
|
tokenizer_config.json
CHANGED
|
@@ -231512,19 +231512,9 @@
|
|
| 231512 |
"rstrip": false,
|
| 231513 |
"single_word": false,
|
| 231514 |
"special": false
|
| 231515 |
-
},
|
| 231516 |
-
"156939": {
|
| 231517 |
-
"content": "<|audio|>",
|
| 231518 |
-
"lstrip": false,
|
| 231519 |
-
"normalized": false,
|
| 231520 |
-
"rstrip": false,
|
| 231521 |
-
"single_word": false,
|
| 231522 |
-
"special": true
|
| 231523 |
}
|
| 231524 |
},
|
| 231525 |
-
"additional_special_tokens": [
|
| 231526 |
-
"<|audio|>"
|
| 231527 |
-
],
|
| 231528 |
"bos_token": "<|begin_of_text|>",
|
| 231529 |
"clean_up_tokenization_spaces": true,
|
| 231530 |
"eos_token": "<|eot_id|>",
|
|
|
|
| 231512 |
"rstrip": false,
|
| 231513 |
"single_word": false,
|
| 231514 |
"special": false
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 231515 |
}
|
| 231516 |
},
|
| 231517 |
+
"additional_special_tokens": [],
|
|
|
|
|
|
|
| 231518 |
"bos_token": "<|begin_of_text|>",
|
| 231519 |
"clean_up_tokenization_spaces": true,
|
| 231520 |
"eos_token": "<|eot_id|>",
|