Skip to content

Commit 527d87e

Browse files
committed
Update docs.
1 parent 92db36e commit 527d87e

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

samples/genie/python/README.md

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,5 +74,16 @@ python genie\python\GenieAPIClientImage.py --prompt "spectacular view of norther
7474
| [Phi 3.5 mini](https://aihub.qualcomm.com/compute/models/phi_3_5_mini_instruct) ** | [Phi-3.5-mini-instruct](https://qaihub-public-assets.s3.us-west-2.amazonaws.com/qai-hub-models/models/phi_3_5_mini_instruct/v1/snapdragon_x_elite/models.zip) | [tokenizer.json](https://huggingface.co/microsoft/Phi-3.5-mini-instruct/resolve/main/tokenizer.json?download=true) |
7575

7676
*. Tokenizer files will be downloaded automatically while you running 'GenieAPIService.py'.<br>
77-
**. 'For Phi-3.5-Mini-Instruct' model, to see appropriate spaces in the output, remove lines 193-196 (Strip rule) in the 'tokenizer.json' file if you download 'tokenizer.json' file manually. If you download it through 'GenieAPIService.py', the script will modify it automatically.<br>
77+
**. For 'Phi-3.5-Mini-Instruct' model, to see appropriate spaces in the output, remove lines 192-197 (Strip rule) in the 'tokenizer.json' file if you download 'tokenizer.json' file manually. Remember to delete the extra commas on line 191. (If you download it through 'GenieAPIService.py', the Python script will modify it automatically.) <br>
78+
The following is the correct change for the 'tokenizer.json' file of 'Phi-3.5-Mini-Instruct' model:<br>
79+
```
80+
- },
81+
- {
82+
- "type": "Strip",
83+
- "content": " ",
84+
- "start": 1,
85+
- "stop": 0
86+
- }
87+
+ }
88+
```
7889
***. Refer to [setup Stable Diffusion v2.1 models](../../python/README.md) before run 'GenieAPIService.py' (Our Python version 'GenieAPIService.py' support generating image, it depends on Stable Diffusion v2.1 sample code.)

0 commit comments

Comments
 (0)