hf-gguf-to-ollama
No long description provided.
Installation
dagger install github.com/adrienbrault/hf-gguf-to-ollama@0dbea063fd77b46d8c75092100f62adad2ab0ccf
Entrypoint
Return Type
HfGgufToOllama !
Arguments
Name | Type | Default Value | Description |
---|---|---|---|
url | String | - | The huggingface repository to download from, eg `adrienbrault/top-model` |
quant | String | - | The quant to download, eg `Q4_0` |
to | String | - | The ollama repository to push to, eg `adrienbrault/top-model` |
ollamaKey | Secret | - | eg `file:$HOME/.ollama/id_ed25519` |
ollamaKeyPub | File | - | eg `~/.ollama/id_ed25519.pub` |
ollamaHost | Service | - | To connect to the local ollama service, use `tcp://localhost:11434` |
Example
func (m *myModule) example() *HfGgufToOllama {
return dag.
HfGgufToOllama()
}
Entrypoint
Return Type
GgufFile !
Arguments
Name | Type | Default Value | Description |
---|---|---|---|
quant | String ! | - | No description provided |
filename | String ! | - | No description provided |
Example
Function HfGgufToOllamaGgufFile.Constructor is not accessible from the hf-gguf-to-ollama module
Entrypoint
Return Type
RepositoryInfo !
Arguments
Name | Type | Default Value | Description |
---|---|---|---|
ggufFiles | [GgufFile ! ] ! | - | No description provided |
url | String ! | - | No description provided |
repository | String ! | - | No description provided |
readme | String ! | "" | No description provided |
Example
func (m *myModule) example(ggufFiles []*GgufFile, url string, repository string, readme string) *RepositoryInfo {
return dag.
HfGgufToOllama(ggufFiles, url, repository, readme)
}
Types
HfGgufToOllama 🔗
ollamaKey() 🔗
Return Type
Secret !
Example
func (m *myModule) example() *Secret {
return dag.
HfGgufToOllama().
OllamaKey()
}
ollamaKeyPub() 🔗
Return Type
File !
Example
func (m *myModule) example() *File {
return dag.
HfGgufToOllama().
OllamaKeyPub()
}
ollamaHost() 🔗
Return Type
Service !
Example
func (m *myModule) example() *Service {
return dag.
HfGgufToOllama().
OllamaHost()
}
hfCli() 🔗
Return Type
Container !
Example
func (m *myModule) example() *Container {
return dag.
HfGgufToOllama().
HfCli()
}
list() 🔗
Return Type
String !
Example
func (m *myModule) example(ctx context.Context) string {
return dag.
HfGgufToOllama().
List(ctx)
}
repositoryInfo() 🔗
Return Type
HfGgufToOllamaRepositoryInfo !
Example
func (m *myModule) example() *HfGgufToOllamaRepositoryInfo {
return dag.
HfGgufToOllama().
RepositoryInfo()
}
download() 🔗
Return Type
File !
Arguments
Name | Type | Default Value | Description |
---|---|---|---|
quant | String | - | No description provided |
Example
func (m *myModule) example() *File {
return dag.
HfGgufToOllama().
Download()
}
create() 🔗
Return Type
Container !
Arguments
Name | Type | Default Value | Description |
---|---|---|---|
quant | String | - | No description provided |
Example
func (m *myModule) example() *Container {
return dag.
HfGgufToOllama().
Create()
}
createAll() 🔗
Return Type
[Container ! ] !
Arguments
Name | Type | Default Value | Description |
---|---|---|---|
concurrency | Integer ! | 2 | No description provided |
Example
func (m *myModule) example(concurrency int) []*Container {
return dag.
HfGgufToOllama().
CreateAll(concurrency)
}
push() 🔗
Return Type
String !
Arguments
Name | Type | Default Value | Description |
---|---|---|---|
quant | String | - | No description provided |
Example
func (m *myModule) example(ctx context.Context) string {
return dag.
HfGgufToOllama().
Push(ctx)
}
pushAll() 🔗
Return Type
[String ! ] !
Arguments
Name | Type | Default Value | Description |
---|---|---|---|
concurrency | Integer ! | 2 | No description provided |
Example
func (m *myModule) example(ctx context.Context, concurrency int) []string {
return dag.
HfGgufToOllama().
PushAll(ctx, concurrency)
}
modelfile() 🔗
Return Type
String !
Arguments
Name | Type | Default Value | Description |
---|---|---|---|
quant | String | - | No description provided |
Example
func (m *myModule) example(ctx context.Context) string {
return dag.
HfGgufToOllama().
Modelfile(ctx)
}
test() 🔗
Return Type
String !
Example
func (m *myModule) example(ctx context.Context) string {
return dag.
HfGgufToOllama().
Test(ctx)
}
HfGgufToOllamaGgufFile 🔗
quant() 🔗
Return Type
String !
Example
Function HfGgufToOllamaGgufFile.quant is not accessible from the hf-gguf-to-ollama module
filename() 🔗
Return Type
String !
Example
Function HfGgufToOllamaGgufFile.filename is not accessible from the hf-gguf-to-ollama module
HfGgufToOllamaRepositoryInfo 🔗
ggufFiles() 🔗
Return Type
[HfGgufToOllamaGgufFile ! ] !
Example
func (m *myModule) example() []*HfGgufToOllamaGgufFile {
return dag.
HfGgufToOllama().
RepositoryInfo().
GgufFiles()
}
url() 🔗
Return Type
String !
Example
func (m *myModule) example(ctx context.Context) string {
return dag.
HfGgufToOllama().
RepositoryInfo().
Url(ctx)
}
repository() 🔗
Return Type
String !
Example
func (m *myModule) example(ctx context.Context) string {
return dag.
HfGgufToOllama().
RepositoryInfo().
Repository(ctx)
}
readme() 🔗
Return Type
String !
Example
func (m *myModule) example(ctx context.Context) string {
return dag.
HfGgufToOllama().
RepositoryInfo().
Readme(ctx)
}