Skip to content

Commit f237ca5

Browse files
jagane-infinstorjagane-opensourceawan-10
authored
Fix for cannot import name 'LlamaTokenizerFast' (#647) (#648)
Co-authored-by: jagane-infinstor <[email protected]> Co-authored-by: Ammar Ahmad Awan <[email protected]>
1 parent f1df0b1 commit f237ca5

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

inference/huggingface/text-generation/README.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,13 @@ Python dependencies:
1515
<pre>
1616
pip install -r requirements.txt
1717
</pre>
18+
If you are using conda, the following works:
19+
<pre>
20+
conda create -c conda-forge -n deepspeed python=3.10
21+
conda activate deepspeed
22+
pip install -r requirements.txt
23+
deepspeed --num_gpus 1 inference-test.py --name bigscience/bloom-3b --batch_size 2
24+
</pre>
1825

1926
# Inference Test
2027

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
deepspeed
22
torch
3-
transformers==4.21.2
3+
transformers==4.28.1

0 commit comments

Comments
 (0)