Get up and running with Kimi, GLM, MiniMax, DeepSeek, gpt-oss, Qwen, Gemma and other models.
CI: enable lint on the whole tree (#17457)
Daniel Hiltgenb205993ed483
diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yamlindex c9963d10f..9972b03c8 100644--- a/.github/workflows/test.yaml+++ b/.github/workflows/test.yaml@@ -416,5 +416,3 @@ jobs:run: go test -count=1 -tags updater_live ./app/...- uses: golangci/golangci-lint-action@v9- with:- only-new-issues: truediff --git a/server/routes_test.go b/server/routes_test.goindex 894035e65..49cf89080 100644--- a/server/routes_test.go+++ b/server/routes_test.go@@ -83,14 +83,6 @@ func createTestFile(t *testing.T, name string) (string, string) {return f.Name(), digest}-type panicTransport struct{}--func (t *panicTransport) RoundTrip(r *http.Request) (*http.Response, error) {- panic("unexpected RoundTrip call")-}--var panicOnRoundTrip = &http.Client{Transport: &panicTransport{}}-func TestRoutes(t *testing.T) {modelsDir := t.TempDir()t.Setenv("OLLAMA_MODELS", modelsDir)diff --git a/x/create/create.go b/x/create/create.goindex 06e07b6fd..626f314af 100644--- a/x/create/create.go+++ b/x/create/create.go@@ -314,9 +314,7 @@ func GetTensorQuantization(name string, shape []int32, quantize string) string {return quantNorm}-var (- expertLayerPrefixRegexp = regexp.MustCompile(`^(?:model\.language_model\.|language_model(?:\.model)?\.|model\.)?layers\.\d+$`)-)+var expertLayerPrefixRegexp = regexp.MustCompile(`^(?:model\.language_model\.|language_model(?:\.model)?\.|model\.)?layers\.\d+$`)// ExpertGroupPrefix returns the group prefix for expert tensors that should be packed together.// For example: