Divooka Reference

Hugging Face Hub

5 nodes

On this page 5

Cache Folder

Function

The folder downloaded models are kept in.

Signature
CacheFolder() -> Text
string CacheFolder()

Returns

FolderText
Ships with
Divooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Hugging Face Hub
Package
Machine Learning

Downloaded Models

Function

The model repositories in the cache, with how much disk each takes.

Signature
DownloadedModels() -> (Repositories: Text Array, sizes: Number Array)
string[] DownloadedModels(out double[] sizes)

Returns

RepositoriesText Array
sizesNumber Array
Ships with
Divooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Hugging Face Hub
Package
Machine Learning

Download File

Function

Downloads one file of a repository into the cache and answers with its path.

Signature
DownloadFile -> Text
    repository: Text
    fileName: Text
    revision: Text
string DownloadFile(
    string repository,
    string fileName,
    string revision)

Parameters

nametypedefaultdescription
repositoryText—The repository id.
fileNameText—The file's path inside the repository, such as config.json.
revisionText—A branch, tag or commit; empty for main.

Returns

PathText
Ships with
Divooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Hugging Face Hub
Package
Machine Learning

Download Model

Function

Downloads a whole repository, or the files of it that match some patterns, into the cache, and answers with its folder. Files already there are not downloaded again.

Signature
DownloadModel -> Text
    repository: Text
    patterns: Text Array
    revision: Text
string DownloadModel(
    string repository,
    string[] patterns,
    string revision)

Parameters

nametypedefaultdescription
repositoryText—The repository id, such as HuggingFaceTB/SmolLM2-135M-Instruct.
patternsText Array—File patterns to download, such as *.json or unet/*.safetensors; empty for every file.
revisionText—A branch, tag or commit; empty for main.

Returns

FolderText
Ships with
Divooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Hugging Face Hub
Package
Machine Learning

Is Downloaded

Function

Whether a repository has anything in the cache.

Signature
IsDownloaded(repository: Text) -> Truth
bool IsDownloaded(string repository)

Parameters

nametypedefaultdescription
repositoryText—The repository id.

Returns

DownloadedTruth
Ships with
Divooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Hugging Face Hub
Package
Machine Learning