Skip to content

Commit 4e32a65

Browse files
committed
Add mflux to model-libraries for download tracking
Registers mflux (line-by-line MLX port of FLUX/Z-Image image generation models for Apple Silicon, github.com/filipstrand/mflux) in model-libraries.ts so that repos tagged with library_name: mflux get download counts. Most mflux repos do not ship a config.json (they only contain safetensors weights + tokenizer files), so the default config.json fallback returns 0 downloads even though the repos are actively used. mflux loads weights via huggingface_hub.snapshot_download with allow_patterns including *.safetensors, so countDownloads matches on safetensors path extension. Refs #2091
1 parent 3f590d2 commit 4e32a65

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

packages/tasks/src/model-libraries.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -925,6 +925,13 @@ export const MODEL_LIBRARIES_UI_ELEMENTS = {
925925
filter: false,
926926
countDownloads: `path:"model.safetensors"`,
927927
},
928+
mflux: {
929+
prettyLabel: "mflux",
930+
repoName: "mflux",
931+
repoUrl: "https://github.com/filipstrand/mflux",
932+
filter: false,
933+
countDownloads: `path_extension:"safetensors"`,
934+
},
928935
"mlc-llm": {
929936
prettyLabel: "MLC-LLM",
930937
repoName: "MLC-LLM",

0 commit comments

Comments
 (0)