1
- import type { ModelData } from " ./model-data" ;
2
- import type { PipelineType } from " ./pipelines" ;
1
+ import type { ModelData } from ' ./model-data' ;
2
+ import type { PipelineType } from ' ./pipelines' ;
3
3
4
4
/**
5
5
* Elements configurable by a local app.
@@ -43,7 +43,7 @@ export type LocalApp = {
43
43
) ;
44
44
45
45
function isGgufModel ( model : ModelData ) {
46
- return model . tags . includes ( " gguf" ) ;
46
+ return model . tags . includes ( ' gguf' ) ;
47
47
}
48
48
49
49
const snippetLlamacpp = ( model : ModelData ) : string [ ] => {
@@ -57,7 +57,7 @@ LLAMA_CURL=1 make
57
57
`## Load and run the model
58
58
./main \\
59
59
--hf-repo "${ model . id } " \\
60
- -m file.gguf \\
60
+ -m {{GGUF_FILE}} \\
61
61
-p "I believe the meaning of life is" \\
62
62
-n 128` ,
63
63
] ;
@@ -75,56 +75,56 @@ LLAMA_CURL=1 make
75
75
* Ping the HF team if we can help with anything!
76
76
*/
77
77
export const LOCAL_APPS = {
78
- " llama.cpp" : {
79
- prettyLabel : " llama.cpp" ,
80
- docsUrl : " https://github.com/ggerganov/llama.cpp" ,
81
- mainTask : " text-generation" ,
78
+ ' llama.cpp' : {
79
+ prettyLabel : ' llama.cpp' ,
80
+ docsUrl : ' https://github.com/ggerganov/llama.cpp' ,
81
+ mainTask : ' text-generation' ,
82
82
displayOnModelPage : isGgufModel ,
83
83
snippet : snippetLlamacpp ,
84
84
} ,
85
85
lmstudio : {
86
- prettyLabel : " LM Studio" ,
87
- docsUrl : " https://lmstudio.ai" ,
88
- mainTask : " text-generation" ,
86
+ prettyLabel : ' LM Studio' ,
87
+ docsUrl : ' https://lmstudio.ai' ,
88
+ mainTask : ' text-generation' ,
89
89
displayOnModelPage : isGgufModel ,
90
90
deeplink : ( model ) => new URL ( `lmstudio://open_from_hf?model=${ model . id } ` ) ,
91
91
} ,
92
92
jan : {
93
- prettyLabel : " Jan" ,
94
- docsUrl : " https://jan.ai" ,
95
- mainTask : " text-generation" ,
93
+ prettyLabel : ' Jan' ,
94
+ docsUrl : ' https://jan.ai' ,
95
+ mainTask : ' text-generation' ,
96
96
displayOnModelPage : isGgufModel ,
97
97
deeplink : ( model ) => new URL ( `jan://models/huggingface/${ model . id } ` ) ,
98
98
} ,
99
99
backyard : {
100
- prettyLabel : " Backyard AI" ,
101
- docsUrl : " https://backyard.ai" ,
102
- mainTask : " text-generation" ,
100
+ prettyLabel : ' Backyard AI' ,
101
+ docsUrl : ' https://backyard.ai' ,
102
+ mainTask : ' text-generation' ,
103
103
displayOnModelPage : isGgufModel ,
104
104
deeplink : ( model ) => new URL ( `https://backyard.ai/hf/model/${ model . id } ` ) ,
105
105
} ,
106
106
drawthings : {
107
- prettyLabel : " Draw Things" ,
108
- docsUrl : " https://drawthings.ai" ,
109
- mainTask : " text-to-image" ,
107
+ prettyLabel : ' Draw Things' ,
108
+ docsUrl : ' https://drawthings.ai' ,
109
+ mainTask : ' text-to-image' ,
110
110
macOSOnly : true ,
111
111
displayOnModelPage : ( model ) =>
112
- model . library_name === " diffusers" && ( model . pipeline_tag === " text-to-image" || model . tags . includes ( " lora" ) ) ,
112
+ model . library_name === ' diffusers' && ( model . pipeline_tag === ' text-to-image' || model . tags . includes ( ' lora' ) ) ,
113
113
deeplink : ( model ) => {
114
- if ( model . tags . includes ( " lora" ) ) {
114
+ if ( model . tags . includes ( ' lora' ) ) {
115
115
return new URL ( `https://drawthings.ai/import/diffusers/pipeline.load_lora_weights?repo_id=${ model . id } ` ) ;
116
116
} else {
117
117
return new URL ( `https://drawthings.ai/import/diffusers/pipeline.from_pretrained?repo_id=${ model . id } ` ) ;
118
118
}
119
119
} ,
120
120
} ,
121
121
diffusionbee : {
122
- prettyLabel : " DiffusionBee" ,
123
- docsUrl : " https://diffusionbee.com" ,
124
- mainTask : " text-to-image" ,
122
+ prettyLabel : ' DiffusionBee' ,
123
+ docsUrl : ' https://diffusionbee.com' ,
124
+ mainTask : ' text-to-image' ,
125
125
macOSOnly : true ,
126
126
comingSoon : true ,
127
- displayOnModelPage : ( model ) => model . library_name === " diffusers" && model . pipeline_tag === " text-to-image" ,
127
+ displayOnModelPage : ( model ) => model . library_name === ' diffusers' && model . pipeline_tag === ' text-to-image' ,
128
128
deeplink : ( model ) => new URL ( `diffusionbee://open_from_hf?model=${ model . id } ` ) ,
129
129
} ,
130
130
} satisfies Record < string , LocalApp > ;
0 commit comments