Populars: Dades actualitzades el 1 de desembre del 2026

Categories

Internet1.434
Comunicació331
Àudio i vídeo944
Gràfics i disseny572
Ofimàtica i productivitat1.195
Eines per a desenvolupadors3.312
Eines d’IA620
Seguretat i privadesa415
Eines del sistema3.232
Jocs547
Educació i ciència243
Xarxa i TI297

Baixar Ollama 0.5.0 per a Windows

Get up and running with large language models locally.

Ollama Assistents d’IA i LLM #24 Assistents d’IA i LLM
Aquesta és una versió anterior. La versió actual és la 0.40.19. Ollama 0.40.19 · Data de publicació:

Fitxers d’instal·lació 0.5.0

ArquitecturaTipusÀmbitMida del fitxerBaixaSHA256
64 bits EXE (Inno Setup) Usuari actual — github.com VirusTotal

L’enllaç i l’SHA256 provenen del manifest comunitari del Gestor de paquets del Windows. Convé comparar el hash del fitxer baixat abans d’executar-lo.

Notes de la versió

Structured outputs
Ollama now supports structured outputs, making it possible to constrain a model's output to a specific format defined by a JSON schema. The Ollama Python and JavaScript libraries have been updated to support structured outputs, together with Ollama's OpenAI-compatible API endpoints.
REST API
To use structured outputs in Ollama's generate or chat APIs, provide a JSON schema object in the format parameter:
curl -X POST http://localhost:11434/api/chat -H "Content-Type: application/json" -d '{
"model": "llama3.1",
"messages": [{"role": "user", "content": "Tell me about Canada."}],
"stream": false,
"format": {
"type": "object",
"properties": {
"name": {
"type": "string"
},
"capital": {
"type": "string"
},
"languages": {
"type": "array",
"items": {
"type": "string"
}
}
},
"required": [
"name",
"capital",
"languages"
]
}
}'
Python library
Using the Ollama Python library, pass in the schema as a JSON object to the format parameter as either dict or use Pydantic (recommended) to serialize the schema using model_json_schema().
from ollama import chat
from pydantic import BaseModel

class Country(BaseModel):
name: str
capital: str
languages: list[str]

response = chat(
messages=[
{
'role': 'user',
'content': 'Tell me about Canada.',
}
],
model='llama3.1',
format=Country.model_json_schema(),
)

country = Country.model_validate_json(response.message.content)
print(country)
JavaScript library
Using the Ollama JavaScript library, pass in the schema as a JSON object to the format parameter as either object or use Zod (recommended) to serialize the schema using zodToJsonSchema():
import ollama from 'ollama';
import { z } from 'zod';
import { zodToJsonSchema } from 'zod-to-json-schema';

const Country = z.object({
name: z.string(),
capital: z.string(),
languages: z.array(z.string()),
});

const response = await ollama.chat({
model: 'llama3.1',
messages: [{ role: 'user', content: 'Tell me about Canada.' }],
format: zodToJsonSchema(Country),
});

const country = Country.parse(JSON.parse(response.message.content));
console.log(country);
What's Changed
- Fixed error importing model vocabulary files
- Experimental: new flag to set KV cache quantization to 4-bit (q4_0), 8-bit (q8_0) or 16-bit (f16). This reduces VRAM requirements for longer context windows.
- To enable for all models, use OLLAMA_FLASH_ATTENTION=1 OLLAMA_KV_CACHE_TYPE=q4_0 ollama serve
- Note: in the future flash attention will be enabled by default where available, with kv cache quantization available on a per-model basis
- Thank you @sammcj for the contribution in in https://github.com/ollama/ollama/pull/7926
New Contributors
- @dmayboroda made their first contribution in https://github.com/ollama/ollama/pull/7906
- @Geometrein made their first contribution in https://github.com/ollama/ollama/pull/7908
- @owboson made their first contribution in https://github.com/ollama/ollama/pull/7693
Full Changelog: https://github.com/ollama/ollama/compare/v0.4.7...v0.5.0

https://github.com/ollama/ollama/releases/tag/v0.5.0

El més popular a Assistents d’IA i LLM

Mostra-ho tot
  1. Claude CodeAssistents d’IA i LLM · Anthropic PBC
  2. Codex CLIAssistents d’IA i LLM · OpenAI, Inc.
  3. ChatGPT by lencxAssistents d’IA i LLM · lencx
  4. GPT4AllAssistents d’IA i LLM · Nomic
  5. oh-my-piAssistents d’IA i LLM · Can Bölük
  6. JanAssistents d’IA i LLM · Jan
  7. CC SwitchAssistents d’IA i LLM · farion1231
  8. T3 CodeAssistents d’IA i LLM · T3 Tools
  9. OpenWorkAssistents d’IA i LLM · differentai
  10. WSL ManagerAssistents d’IA i LLM · Bostrot

Més programes d’Ollama

Mostra-ho tot

Etiquetes

Comparteix