Translation
Transformers
Safetensors
English
Obolo
m2m_100
text2text-generation
obolo
niger-congo
low-resource-language
ai-tool
Instructions to use GoogleCalc/obolo-ai-translation with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use GoogleCalc/obolo-ai-translation 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="GoogleCalc/obolo-ai-translation")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSeq2SeqLM tokenizer = AutoTokenizer.from_pretrained("GoogleCalc/obolo-ai-translation") model = AutoModelForSeq2SeqLM.from_pretrained("GoogleCalc/obolo-ai-translation", device_map="auto") - Notebooks
- Google Colab
- Kaggle
NTEIGBANAM OKE commited on
Upload added_tokens.json with huggingface_hub
Browse files- added_tokens.json +102 -0
added_tokens.json
ADDED
|
@@ -0,0 +1,102 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"__af__": 128004,
|
| 3 |
+
"__am__": 128005,
|
| 4 |
+
"__ar__": 128006,
|
| 5 |
+
"__ast__": 128007,
|
| 6 |
+
"__az__": 128008,
|
| 7 |
+
"__ba__": 128009,
|
| 8 |
+
"__be__": 128010,
|
| 9 |
+
"__bg__": 128011,
|
| 10 |
+
"__bn__": 128012,
|
| 11 |
+
"__br__": 128013,
|
| 12 |
+
"__bs__": 128014,
|
| 13 |
+
"__ca__": 128015,
|
| 14 |
+
"__ceb__": 128016,
|
| 15 |
+
"__cs__": 128017,
|
| 16 |
+
"__cy__": 128018,
|
| 17 |
+
"__da__": 128019,
|
| 18 |
+
"__de__": 128020,
|
| 19 |
+
"__el__": 128021,
|
| 20 |
+
"__en__": 128022,
|
| 21 |
+
"__es__": 128023,
|
| 22 |
+
"__et__": 128024,
|
| 23 |
+
"__fa__": 128025,
|
| 24 |
+
"__ff__": 128026,
|
| 25 |
+
"__fi__": 128027,
|
| 26 |
+
"__fr__": 128028,
|
| 27 |
+
"__fy__": 128029,
|
| 28 |
+
"__ga__": 128030,
|
| 29 |
+
"__gd__": 128031,
|
| 30 |
+
"__gl__": 128032,
|
| 31 |
+
"__gu__": 128033,
|
| 32 |
+
"__ha__": 128034,
|
| 33 |
+
"__he__": 128035,
|
| 34 |
+
"__hi__": 128036,
|
| 35 |
+
"__hr__": 128037,
|
| 36 |
+
"__ht__": 128038,
|
| 37 |
+
"__hu__": 128039,
|
| 38 |
+
"__hy__": 128040,
|
| 39 |
+
"__id__": 128041,
|
| 40 |
+
"__ig__": 128042,
|
| 41 |
+
"__ilo__": 128043,
|
| 42 |
+
"__is__": 128044,
|
| 43 |
+
"__it__": 128045,
|
| 44 |
+
"__ja__": 128046,
|
| 45 |
+
"__jv__": 128047,
|
| 46 |
+
"__ka__": 128048,
|
| 47 |
+
"__kk__": 128049,
|
| 48 |
+
"__km__": 128050,
|
| 49 |
+
"__kn__": 128051,
|
| 50 |
+
"__ko__": 128052,
|
| 51 |
+
"__lb__": 128053,
|
| 52 |
+
"__lg__": 128054,
|
| 53 |
+
"__ln__": 128055,
|
| 54 |
+
"__lo__": 128056,
|
| 55 |
+
"__lt__": 128057,
|
| 56 |
+
"__lv__": 128058,
|
| 57 |
+
"__mg__": 128059,
|
| 58 |
+
"__mk__": 128060,
|
| 59 |
+
"__ml__": 128061,
|
| 60 |
+
"__mn__": 128062,
|
| 61 |
+
"__mr__": 128063,
|
| 62 |
+
"__ms__": 128064,
|
| 63 |
+
"__my__": 128065,
|
| 64 |
+
"__ne__": 128066,
|
| 65 |
+
"__nl__": 128067,
|
| 66 |
+
"__no__": 128068,
|
| 67 |
+
"__ns__": 128069,
|
| 68 |
+
"__oc__": 128070,
|
| 69 |
+
"__or__": 128071,
|
| 70 |
+
"__pa__": 128072,
|
| 71 |
+
"__pl__": 128073,
|
| 72 |
+
"__ps__": 128074,
|
| 73 |
+
"__pt__": 128075,
|
| 74 |
+
"__ro__": 128076,
|
| 75 |
+
"__ru__": 128077,
|
| 76 |
+
"__sd__": 128078,
|
| 77 |
+
"__si__": 128079,
|
| 78 |
+
"__sk__": 128080,
|
| 79 |
+
"__sl__": 128081,
|
| 80 |
+
"__so__": 128082,
|
| 81 |
+
"__sq__": 128083,
|
| 82 |
+
"__sr__": 128084,
|
| 83 |
+
"__ss__": 128085,
|
| 84 |
+
"__su__": 128086,
|
| 85 |
+
"__sv__": 128087,
|
| 86 |
+
"__sw__": 128088,
|
| 87 |
+
"__ta__": 128089,
|
| 88 |
+
"__th__": 128090,
|
| 89 |
+
"__tl__": 128091,
|
| 90 |
+
"__tn__": 128092,
|
| 91 |
+
"__tr__": 128093,
|
| 92 |
+
"__uk__": 128094,
|
| 93 |
+
"__ur__": 128095,
|
| 94 |
+
"__uz__": 128096,
|
| 95 |
+
"__vi__": 128097,
|
| 96 |
+
"__wo__": 128098,
|
| 97 |
+
"__xh__": 128099,
|
| 98 |
+
"__yi__": 128100,
|
| 99 |
+
"__yo__": 128101,
|
| 100 |
+
"__zh__": 128102,
|
| 101 |
+
"__zu__": 128103
|
| 102 |
+
}
|