Documentation
¶
There is no documentation for this package.
Directories
¶
| Path | Synopsis |
|---|---|
|
Package api implements the client-side API for code wishing to interact with the ollama service.
|
Package api implements the client-side API for code wishing to interact with the ollama service. |
|
examples/chat
command
|
|
|
examples/generate
command
|
|
|
examples/generate-streaming
command
|
|
|
examples/multimodal
command
|
|
|
examples/pull-progress
command
|
|
|
app
|
|
|
cmd/app
command
|
|
|
dialog
Package dialog provides a simple cross-platform common dialog API.
|
Package dialog provides a simple cross-platform common dialog API. |
|
logrotate
package logrotate provides utilities for rotating logs TODO (jmorgan): this most likely doesn't need it's own package and can be moved to app where log files are created
|
package logrotate provides utilities for rotating logs TODO (jmorgan): this most likely doesn't need it's own package and can be moved to app where log files are created |
|
store
Package store provides a simple JSON file store for the desktop application to save and load data such as ollama server configuration, messages, login information and more.
|
Package store provides a simple JSON file store for the desktop application to save and load data such as ollama server configuration, messages, login information and more. |
|
ui
package ui implements a chat interface for Ollama
|
package ui implements a chat interface for Ollama |
|
webview
* MIT License * * Copyright (c) 2017 Serge Zaitsev * Copyright (c) 2022 Steffen André Langnes * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell * copies of the Software, and to permit persons to whom the Software is * furnished to do so, subject to the following conditions: * * The above copyright notice and this permission notice shall be included in * all copies or substantial portions of the Software.
|
* MIT License * * Copyright (c) 2017 Serge Zaitsev * Copyright (c) 2022 Steffen André Langnes * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell * copies of the Software, and to permit persons to whom the Software is * furnished to do so, subject to the following conditions: * * The above copyright notice and this permission notice shall be included in * all copies or substantial portions of the Software. |
|
bench
command
|
|
|
config
Package config provides integration configuration for external coding tools (Claude Code, Codex, Droid, OpenCode) to use Ollama models.
|
Package config provides integration configuration for external coding tools (Claude Code, Codex, Droid, OpenCode) to use Ollama models. |
|
internal/fileutil
Package fileutil provides small shared helpers for reading JSON files and writing config files with backup-on-overwrite semantics.
|
Package fileutil provides small shared helpers for reading JSON files and writing config files with backup-on-overwrite semantics. |
|
runner
command
|
|
|
AMD discovery needs a small amount of backend-specific handling beyond the generic llama-server device list.
|
AMD discovery needs a small amount of backend-specific handling beyond the generic llama-server device list. |
|
docs
|
|
|
tools/extract-examples
command
|
|
|
internal
|
|
|
orderedmap
Package orderedmap provides a generic ordered map that maintains insertion order.
|
Package orderedmap provides a generic ordered map that maintains insertion order. |
|
llama_server.go wraps the llama-server binary as a subprocess
|
llama_server.go wraps the llama-server binary as a subprocess |
|
model
|
|
|
openai package provides core transformation logic for partial compatibility with the OpenAI REST API
|
openai package provides core transformation logic for partial compatibility with the OpenAI REST API |
|
types
|
|
|
errtypes
Package errtypes contains custom error types
|
Package errtypes contains custom error types |
|
model
Package model contains types and utilities for parsing, validating, and working with model names and digests.
|
Package model contains types and utilities for parsing, validating, and working with model names and digests. |
|
x
|
|
|
create/client
Package client provides client-side model creation for safetensors-based models.
|
Package client provides client-side model creation for safetensors-based models. |
|
imagegen
Package imagegen provides experimental image generation capabilities for Ollama.
|
Package imagegen provides experimental image generation capabilities for Ollama. |
|
imagegen/cache
Package cache provides caching mechanisms for diffusion model inference.
|
Package cache provides caching mechanisms for diffusion model inference. |
|
imagegen/cmd/engine
command
|
|
|
imagegen/mlx
Package mlx provides Go bindings for the MLX-C library with dynamic loading support.
|
Package mlx provides Go bindings for the MLX-C library with dynamic loading support. |
|
imagegen/models/flux2
Package flux2 implements the FLUX.2 Klein diffusion transformer model.
|
Package flux2 implements the FLUX.2 Klein diffusion transformer model. |
|
imagegen/models/qwen3
Package qwen3 provides a shared Qwen3 text encoder used by multiple image generation models.
|
Package qwen3 provides a shared Qwen3 text encoder used by multiple image generation models. |
|
imagegen/models/zimage
Package zimage implements the Z-Image diffusion transformer model.
|
Package zimage implements the Z-Image diffusion transformer model. |
|
imagegen/nn
Package nn provides neural network layer types.
|
Package nn provides neural network layer types. |
|
imagegen/vae
Package vae provides shared utilities for VAE (Variational Autoencoder) operations.
|
Package vae provides shared utilities for VAE (Variational Autoencoder) operations. |
|
mlxrunner/mlx/generator
command
|
|
|
models/cohere2_moe
Package cohere2_moe provides the Cohere2 MoE (Command A family, North) text model implementation for MLX.
|
Package cohere2_moe provides the Cohere2 MoE (Command A family, North) text model implementation for MLX. |
|
models/gemma3
Package gemma3 provides the Gemma 3 text model implementation for MLX.
|
Package gemma3 provides the Gemma 3 text model implementation for MLX. |
|
models/gemma4
Package gemma4 provides the Gemma 4 text model implementation for MLX.
|
Package gemma4 provides the Gemma 4 text model implementation for MLX. |
|
models/glm4_moe_lite
Package glm4_moe_lite provides the GLM4-MoE-Lite implementation for MLX.
|
Package glm4_moe_lite provides the GLM4-MoE-Lite implementation for MLX. |
|
models/laguna
Package laguna provides the Poolside Laguna text model implementation for MLX.
|
Package laguna provides the Poolside Laguna text model implementation for MLX. |
|
models/llama
Package llama provides a Llama-style decoder-only transformer for MLX.
|
Package llama provides a Llama-style decoder-only transformer for MLX. |
|
models/qwen3
Package qwen3 provides the Qwen3 text model implementation for MLX.
|
Package qwen3 provides the Qwen3 text model implementation for MLX. |
|
models/qwen3_5
Package qwen3_5 provides the Qwen 3.5 text and MoE implementation for MLX.
|
Package qwen3_5 provides the Qwen 3.5 text and MoE implementation for MLX. |
|
models/qwen3_5_moe
Package qwen3_5_moe registers Qwen 3.5 MoE architecture aliases.
|
Package qwen3_5_moe registers Qwen 3.5 MoE architecture aliases. |
|
quant
Package quant holds the quantization format facts shared by the model importer, the runtime loader, and `ollama show`.
|
Package quant holds the quantization format facts shared by the model importer, the runtime loader, and `ollama show`. |
|
transfer
Package transfer provides minimal, fast blob transfer for tensor-based models.
|
Package transfer provides minimal, fast blob transfer for tensor-based models. |
Click to show internal directories.
Click to hide internal directories.