Hugging Face 模型庫
5 個節點
本頁內容 5
快取資料夾
函數The folder downloaded models are kept in.
簽名
快取資料夾() -> 文字
string CacheFolder()
返回
| 資料夾 | 文字 |
- 所屬發行版
- 元編程(專業版)
- 可用的圖種類
- 資料流 函數 事件 例程 藍圖 狀態機狀態
- 宣告於
- Hugging Face 模型庫
- 所屬包
- 機器學習
已下載的模型
函數The model repositories in the cache, with how much disk each takes.
簽名
已下載的模型() -> (倉庫: 文字陣列, 大小: 數字陣列)
string[] DownloadedModels(out double[] sizes)
返回
| 倉庫 | 文字陣列 |
| 大小 | 數字陣列 |
- 所屬發行版
- 元編程(專業版)
- 可用的圖種類
- 資料流 函數 事件 例程 藍圖 狀態機狀態
- 宣告於
- Hugging Face 模型庫
- 所屬包
- 機器學習
下載檔案
函數Downloads one file of a repository into the cache and answers with its path.
簽名
下載檔案(倉庫: 文字, 檔名: 文字, 修訂版本: 文字) -> 文字
string DownloadFile(
string repository,
string fileName,
string revision)參數
| 名稱 | 型別 | 預設值 | 說明 |
|---|---|---|---|
| 倉庫 | 文字 | — | The repository id. |
| 檔名 | 文字 | — | The file's path inside the repository, such as config.json. |
| 修訂版本 | 文字 | — | A branch, tag or commit; empty for main. |
返回
| 路徑 | 文字 |
- 所屬發行版
- 元編程(專業版)
- 可用的圖種類
- 資料流 函數 事件 例程 藍圖 狀態機狀態
- 宣告於
- Hugging Face 模型庫
- 所屬包
- 機器學習
下載模型
函數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.
簽名
下載模型(倉庫: 文字, 檔案模式: 文字陣列, 修訂版本: 文字) -> 文字
string DownloadModel(
string repository,
string[] patterns,
string revision)參數
| 名稱 | 型別 | 預設值 | 說明 |
|---|---|---|---|
| 倉庫 | 文字 | — | The repository id, such as HuggingFaceTB/SmolLM2-135M-Instruct. |
| 檔案模式 | 文字陣列 | — | File patterns to download, such as *.json or unet/*.safetensors; empty for every file. |
| 修訂版本 | 文字 | — | A branch, tag or commit; empty for main. |
返回
| 資料夾 | 文字 |
- 所屬發行版
- 元編程(專業版)
- 可用的圖種類
- 資料流 函數 事件 例程 藍圖 狀態機狀態
- 宣告於
- Hugging Face 模型庫
- 所屬包
- 機器學習
是否已下載
函數Whether a repository has anything in the cache.
簽名
是否已下載(倉庫: 文字) -> 真否
bool IsDownloaded(string repository)
參數
| 名稱 | 型別 | 預設值 | 說明 |
|---|---|---|---|
| 倉庫 | 文字 | — | The repository id. |
返回
| 已下載 | 真否 |
- 所屬發行版
- 元編程(專業版)
- 可用的圖種類
- 資料流 函數 事件 例程 藍圖 狀態機狀態
- 宣告於
- Hugging Face 模型庫
- 所屬包
- 機器學習