mirror of
https://github.com/ollama/ollama.git
synced 2026-04-17 15:53:27 +02:00
* prefer rocm v6 on windows Avoid building with v7 - more changes are needed * MLX: add header vendoring and remove go build tag This switches to using a vendoring approach for the mlx-c headers so that Go can build without requiring a cmake first. This enables building the new MLX based code by default. Every time cmake runs, the headers are refreshed, so we can easily keep them in sync when we bump mlx versions. Basic Windows and Linux support are verified. * ci: harden for flaky choco repo servers CI sometimes fails due to choco not actually installing cache. Since it just speeds up the build, we can proceed without. * review comments
18 lines
435 B
Go
18 lines
435 B
Go
package zimage
|
|
|
|
import (
|
|
"github.com/ollama/ollama/x/imagegen/models/qwen3"
|
|
)
|
|
|
|
// Re-export types from shared qwen3 package for backwards compatibility
|
|
type (
|
|
Qwen3Config = qwen3.Config
|
|
Qwen3Attention = qwen3.Attention
|
|
Qwen3MLP = qwen3.MLP
|
|
Qwen3Block = qwen3.Block
|
|
Qwen3TextEncoder = qwen3.TextEncoder
|
|
)
|
|
|
|
// ApplyChatTemplate wraps prompt in Qwen3 chat format
|
|
var ApplyChatTemplate = qwen3.ApplyChatTemplate
|