Spaces:
Sleeping
Sleeping
File size: 886 Bytes
a30f2aa |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 |
@startuml download_model
actor User
participant "Environment" as env
participant "ModelDownloader" as downloader
User -> downloader: download_model()
activate downloader
downloader -> env: Get MODEL_CLASS
activate env
env --> downloader: 'hf' or 'gguf'
deactivate env
alt MODEL_CLASS is 'hf'
downloader -> downloader: download_hf_model()
activate downloader
downloader -> downloader: model_file_exists_and_valid()
downloader -> downloader: write_model_path_to_txt_file()
deactivate downloader
else MODEL_CLASS is 'gguf'
downloader -> downloader: download_gguf_model()
activate downloader
downloader -> downloader: model_file_exists_and_valid()
downloader -> downloader: write_model_path_to_txt_file()
deactivate downloader
else Unsupported model class
downloader -> User: Print "Unsupported model class"
end
deactivate downloader
@enduml
|