File tree Expand file tree Collapse file tree 4 files changed +9
-5
lines changed Expand file tree Collapse file tree 4 files changed +9
-5
lines changed Original file line number Diff line number Diff line change @@ -48,11 +48,12 @@ if [ "$moduleInstallErrors" = "" ]; then
48
48
49
49
HF_HUB_DISABLE_SYMLINKS_WARNING=1
50
50
51
- write " Looking for model: ${phi3_fileId} in ${phi3_folder} "
51
+ write " Looking for model: ${phi3_fileId} in ${phi3_folder} ... "
52
52
if [ ! -d " ${moduleDirPath} /${phi3_folder} /" ]; then
53
53
write " downloading..."
54
54
installPythonPackagesByName " huggingface-hub[cli]"
55
- huggingface-cli download ${phi3_fileId} --include ${phi3_folder} /* --local-dir .
55
+ ${venvPythonCmdPath} ${packagesDirPath} /huggingface_hub/commands/huggingface_cli.py download ${phi3_fileId} --include ${phi3_folder} \* --local-dir .
56
+ # huggingface-cli download ${phi3_fileId} --include ${phi3_folder}/* --local-dir .
56
57
writeLine " Done." " $color_success "
57
58
else
58
59
writeLine " ${fileToGet} already downloaded." " $color_success "
Original file line number Diff line number Diff line change @@ -29,13 +29,15 @@ def initialise(self) -> None:
29
29
self .model_filename = None # "Phi-3-vision-128k-instruct.gguf"
30
30
self .models_dir = "cuda-int4-rtn-block-32"
31
31
else :
32
+ print ("*** Multi-modal LLM using CPU only: This module requires > 16Gb RAM" )
32
33
self .inference_device = "CPU"
33
34
self .device = "cpu"
34
35
self .inference_library = "ONNX"
35
36
self .model_repo = "microsoft/Phi-3-vision-128k-instruct-onnx-cpu"
36
37
self .model_filename = None # "Phi-3-vision-128k-instruct.gguf"
37
- self .models_dir = "pu -int4-rtn-block-32-acc-level-4"
38
+ self .models_dir = "cpu -int4-rtn-block-32-acc-level-4"
38
39
else :
40
+ print ("*** Multi-modal LLM using CPU only: This module requires > 16Gb RAM" )
39
41
# If only...
40
42
# if self.system_info.cpu_vendor == 'Apple' and self.system_info.cpu_arch == 'arm64':
41
43
# self.inference_device = "GPU"
Original file line number Diff line number Diff line change 1
- #! Python3.7
1
+ #! Python3.10
2
2
3
3
# For Phi-3 ONNX / CPU
4
4
numpy # Installing NumPy, a package for scientific computing
5
+ --pre
5
6
onnxruntime-genai # Installing onnxruntime-genai, the ONNX Runtime generate() API
6
7
7
8
# torch # Installing PyTorch, an open source machine learning framework
Original file line number Diff line number Diff line change 1
1
#
2
- ! Python3.7
2
+ ! Python3.10
3
3
4
4
# For Phi-3 ONNX / DirectML
5
5
numpy # Installing NumPy, a package for scientific computing
You can’t perform that action at this time.
0 commit comments