Skip to content

Commit

Permalink
set ollama v0.3.6
Browse files Browse the repository at this point in the history
  • Loading branch information
suluyana committed Aug 26, 2024
1 parent 62fbd1e commit f82c07a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/model_download/index.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,8 @@ def handler(event, context):

# using latest ollama
print('[INFO] Downloading and installing the latest ollama. ')
latest_ollama = api.list_model_revisions(model_id='modelscope/ollama-linux')[0]
# latest_ollama = api.list_model_revisions(model_id='modelscope/ollama-linux')[0]
latest_ollama = 'v0.3.6'
os.system(f'modelscope download --model=modelscope/ollama-linux --local_dir {cache_dir}/ollama-linux --revision {latest_ollama}')

print(f'[INFO] Downloading model file. ')
Expand Down

0 comments on commit f82c07a

Please sign in to comment.