ikeno-ada commited on
Commit
c920108
1 Parent(s): 955ed60

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +3 -3
README.md CHANGED
@@ -118,7 +118,7 @@ To force the target language id as the first generated token, pass the `forced_b
118
 
119
  *Note: `M2M100Tokenizer` depends on `sentencepiece`, so make sure to install it before running the example.*
120
 
121
- To install `sentencepiece` run `pip install sentencepiece`
122
 
123
 
124
  ```python
@@ -127,8 +127,8 @@ from transformers import M2M100ForConditionalGeneration, M2M100Tokenizer
127
  hi_text = "जीवन एक चॉकलेट बॉक्स की तरह है।"
128
  chinese_text = "生活就像一盒巧克力。"
129
 
130
- model = M2M100ForConditionalGeneration.from_pretrained("facebook/m2m100_418M")
131
- tokenizer = M2M100Tokenizer.from_pretrained("facebook/m2m100_418M")
132
 
133
  # translate Hindi to French
134
  tokenizer.src_lang = "hi"
 
118
 
119
  *Note: `M2M100Tokenizer` depends on `sentencepiece`, so make sure to install it before running the example.*
120
 
121
+ To install `sentencepiece` run `pip install sentencepiece bitsandbytes`
122
 
123
 
124
  ```python
 
127
  hi_text = "जीवन एक चॉकलेट बॉक्स की तरह है।"
128
  chinese_text = "生活就像一盒巧克力。"
129
 
130
+ model = M2M100ForConditionalGeneration.from_pretrained("ikeno-ada/m2m100_418-mt-bitsandbytes-4bit")
131
+ tokenizer = M2M100Tokenizer.from_pretrained("ikeno-ada/m2m100_418-mt-bitsandbytes-4bit")
132
 
133
  # translate Hindi to French
134
  tokenizer.src_lang = "hi"