@huggingface/tasks 0.10.4 → 0.10.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +10 -9
- package/dist/index.js +10 -9
- package/dist/src/local-apps.d.ts +0 -5
- package/dist/src/local-apps.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/local-apps.ts +11 -9
package/dist/index.cjs
CHANGED
|
@@ -5741,7 +5741,7 @@ var snippetLlamacpp = (model) => {
|
|
|
5741
5741
|
return `./main \\
|
|
5742
5742
|
--hf-repo "${model.id}" \\
|
|
5743
5743
|
-m file.gguf \\
|
|
5744
|
-
-p "I believe the meaning of life is
|
|
5744
|
+
-p "I believe the meaning of life is" \\
|
|
5745
5745
|
-n 128`;
|
|
5746
5746
|
};
|
|
5747
5747
|
var LOCAL_APPS = {
|
|
@@ -5767,10 +5767,9 @@ var LOCAL_APPS = {
|
|
|
5767
5767
|
deeplink: (model) => new URL(`jan://models/huggingface/${model.id}`)
|
|
5768
5768
|
},
|
|
5769
5769
|
backyard: {
|
|
5770
|
-
prettyLabel: "Backyard",
|
|
5770
|
+
prettyLabel: "Backyard AI",
|
|
5771
5771
|
docsUrl: "https://backyard.ai",
|
|
5772
5772
|
mainTask: "text-generation",
|
|
5773
|
-
macOSOnly: true,
|
|
5774
5773
|
displayOnModelPage: isGgufModel,
|
|
5775
5774
|
deeplink: (model) => new URL(`https://backyard.ai/hf/model/${model.id}`)
|
|
5776
5775
|
},
|
|
@@ -5779,12 +5778,14 @@ var LOCAL_APPS = {
|
|
|
5779
5778
|
docsUrl: "https://drawthings.ai",
|
|
5780
5779
|
mainTask: "text-to-image",
|
|
5781
5780
|
macOSOnly: true,
|
|
5782
|
-
|
|
5783
|
-
|
|
5784
|
-
|
|
5785
|
-
|
|
5786
|
-
|
|
5787
|
-
|
|
5781
|
+
displayOnModelPage: (model) => model.library_name === "diffusers" && (model.pipeline_tag === "text-to-image" || model.tags.includes("lora")),
|
|
5782
|
+
deeplink: (model) => {
|
|
5783
|
+
if (model.tags.includes("lora")) {
|
|
5784
|
+
return new URL(`https://drawthings.ai/import/diffusers/pipeline.load_lora_weights?repo_id=${model.id}`);
|
|
5785
|
+
} else {
|
|
5786
|
+
return new URL(`https://drawthings.ai/import/diffusers/pipeline.from_pretrained?repo_id=${model.id}`);
|
|
5787
|
+
}
|
|
5788
|
+
}
|
|
5788
5789
|
},
|
|
5789
5790
|
diffusionbee: {
|
|
5790
5791
|
prettyLabel: "DiffusionBee",
|
package/dist/index.js
CHANGED
|
@@ -5703,7 +5703,7 @@ var snippetLlamacpp = (model) => {
|
|
|
5703
5703
|
return `./main \\
|
|
5704
5704
|
--hf-repo "${model.id}" \\
|
|
5705
5705
|
-m file.gguf \\
|
|
5706
|
-
-p "I believe the meaning of life is
|
|
5706
|
+
-p "I believe the meaning of life is" \\
|
|
5707
5707
|
-n 128`;
|
|
5708
5708
|
};
|
|
5709
5709
|
var LOCAL_APPS = {
|
|
@@ -5729,10 +5729,9 @@ var LOCAL_APPS = {
|
|
|
5729
5729
|
deeplink: (model) => new URL(`jan://models/huggingface/${model.id}`)
|
|
5730
5730
|
},
|
|
5731
5731
|
backyard: {
|
|
5732
|
-
prettyLabel: "Backyard",
|
|
5732
|
+
prettyLabel: "Backyard AI",
|
|
5733
5733
|
docsUrl: "https://backyard.ai",
|
|
5734
5734
|
mainTask: "text-generation",
|
|
5735
|
-
macOSOnly: true,
|
|
5736
5735
|
displayOnModelPage: isGgufModel,
|
|
5737
5736
|
deeplink: (model) => new URL(`https://backyard.ai/hf/model/${model.id}`)
|
|
5738
5737
|
},
|
|
@@ -5741,12 +5740,14 @@ var LOCAL_APPS = {
|
|
|
5741
5740
|
docsUrl: "https://drawthings.ai",
|
|
5742
5741
|
mainTask: "text-to-image",
|
|
5743
5742
|
macOSOnly: true,
|
|
5744
|
-
|
|
5745
|
-
|
|
5746
|
-
|
|
5747
|
-
|
|
5748
|
-
|
|
5749
|
-
|
|
5743
|
+
displayOnModelPage: (model) => model.library_name === "diffusers" && (model.pipeline_tag === "text-to-image" || model.tags.includes("lora")),
|
|
5744
|
+
deeplink: (model) => {
|
|
5745
|
+
if (model.tags.includes("lora")) {
|
|
5746
|
+
return new URL(`https://drawthings.ai/import/diffusers/pipeline.load_lora_weights?repo_id=${model.id}`);
|
|
5747
|
+
} else {
|
|
5748
|
+
return new URL(`https://drawthings.ai/import/diffusers/pipeline.from_pretrained?repo_id=${model.id}`);
|
|
5749
|
+
}
|
|
5750
|
+
}
|
|
5750
5751
|
},
|
|
5751
5752
|
diffusionbee: {
|
|
5752
5753
|
prettyLabel: "DiffusionBee",
|
package/dist/src/local-apps.d.ts
CHANGED
|
@@ -74,7 +74,6 @@ export declare const LOCAL_APPS: {
|
|
|
74
74
|
prettyLabel: string;
|
|
75
75
|
docsUrl: string;
|
|
76
76
|
mainTask: "text-generation";
|
|
77
|
-
macOSOnly: true;
|
|
78
77
|
displayOnModelPage: typeof isGgufModel;
|
|
79
78
|
deeplink: (model: ModelData) => URL;
|
|
80
79
|
};
|
|
@@ -83,10 +82,6 @@ export declare const LOCAL_APPS: {
|
|
|
83
82
|
docsUrl: string;
|
|
84
83
|
mainTask: "text-to-image";
|
|
85
84
|
macOSOnly: true;
|
|
86
|
-
comingSoon: true;
|
|
87
|
-
/**
|
|
88
|
-
* random function, will need to refine the actual conditions:
|
|
89
|
-
*/
|
|
90
85
|
displayOnModelPage: (model: ModelData) => boolean;
|
|
91
86
|
deeplink: (model: ModelData) => URL;
|
|
92
87
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"local-apps.d.ts","sourceRoot":"","sources":["../../src/local-apps.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAC9C,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAEhD;;GAEG;AACH,MAAM,MAAM,QAAQ,GAAG;IACtB;;OAEG;IACH,WAAW,EAA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,KAAK,EAAE,SAAS,KAAK,MAAM,CAAC;CACrC,CACH,CAAC;AAEF,iBAAS,WAAW,CAAC,KAAK,EAAE,SAAS,WAEpC;AAUD;;;;;;;;;;GAUG;AACH,eAAO,MAAM,UAAU;;;;;;yBAnBS,SAAS,KAAG,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAwEd,CAAC;AAErC,MAAM,MAAM,WAAW,GAAG,MAAM,OAAO,UAAU,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@huggingface/tasks",
|
|
3
3
|
"packageManager": "pnpm@8.10.5",
|
|
4
|
-
"version": "0.10.
|
|
4
|
+
"version": "0.10.5",
|
|
5
5
|
"description": "List of ML tasks for huggingface.co/tasks",
|
|
6
6
|
"repository": "https://github.com/huggingface/huggingface.js.git",
|
|
7
7
|
"publishConfig": {
|
package/src/local-apps.ts
CHANGED
|
@@ -50,7 +50,7 @@ const snippetLlamacpp = (model: ModelData): string => {
|
|
|
50
50
|
return `./main \\
|
|
51
51
|
--hf-repo "${model.id}" \\
|
|
52
52
|
-m file.gguf \\
|
|
53
|
-
-p "I believe the meaning of life is
|
|
53
|
+
-p "I believe the meaning of life is" \\
|
|
54
54
|
-n 128`;
|
|
55
55
|
};
|
|
56
56
|
|
|
@@ -88,10 +88,9 @@ export const LOCAL_APPS = {
|
|
|
88
88
|
deeplink: (model) => new URL(`jan://models/huggingface/${model.id}`),
|
|
89
89
|
},
|
|
90
90
|
backyard: {
|
|
91
|
-
prettyLabel: "Backyard",
|
|
91
|
+
prettyLabel: "Backyard AI",
|
|
92
92
|
docsUrl: "https://backyard.ai",
|
|
93
93
|
mainTask: "text-generation",
|
|
94
|
-
macOSOnly: true,
|
|
95
94
|
displayOnModelPage: isGgufModel,
|
|
96
95
|
deeplink: (model) => new URL(`https://backyard.ai/hf/model/${model.id}`),
|
|
97
96
|
},
|
|
@@ -100,12 +99,15 @@ export const LOCAL_APPS = {
|
|
|
100
99
|
docsUrl: "https://drawthings.ai",
|
|
101
100
|
mainTask: "text-to-image",
|
|
102
101
|
macOSOnly: true,
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
102
|
+
displayOnModelPage: (model) =>
|
|
103
|
+
model.library_name === "diffusers" && (model.pipeline_tag === "text-to-image" || model.tags.includes("lora")),
|
|
104
|
+
deeplink: (model) => {
|
|
105
|
+
if (model.tags.includes("lora")) {
|
|
106
|
+
return new URL(`https://drawthings.ai/import/diffusers/pipeline.load_lora_weights?repo_id=${model.id}`);
|
|
107
|
+
} else {
|
|
108
|
+
return new URL(`https://drawthings.ai/import/diffusers/pipeline.from_pretrained?repo_id=${model.id}`);
|
|
109
|
+
}
|
|
110
|
+
},
|
|
109
111
|
},
|
|
110
112
|
diffusionbee: {
|
|
111
113
|
prettyLabel: "DiffusionBee",
|