日期:2026-08-14 | 分类:AI工具教程
2026年8月13日,阿里巴巴正式开放Qwen3.8-Max模型权重。2.4万亿总参数,激活950亿,稀疏MoE架构,100万Token上下文。Arena排行榜仅次于Claude系列。Ollama支持4bit量化本地部署。
# macOS
brew install ollama
# Linux
curl -fsSL https://ollama.com/install.sh | sh
# Windows
# 下载 https://ollama.com/download/OllamaSetup.exe
# 4bit量化版(推荐)
ollama pull qwen3.8-max:4b
# 查看已下载模型
ollama list
# 启动推理服务
ollama serve # 默认端口11434
ollama run qwen3.8-max:4b
>>> 帮我写一个Python装饰器,计算函数执行时间
import time
from functools import wraps
def timing(func):
@wraps(func)
def wrapper(*args, **kwargs):
start = time.time()
result = func(*args, **kwargs)
print(f"{func.__name__} 执行耗时: {time.time()-start:.4f}秒")
return result
return wrapper
import requests
response = requests.post('http://localhost:11434/api/chat', json={
"model": "qwen3.8-max:4b",
"messages": [{"role": "user", "content": "解释MoE架构"}],
"stream": False
})
print(response.json()['message']['content'])
# OpenClaw配置文件中设置
# ~/.openclaw/config.yaml
model:
provider: ollama
model: qwen3.8-max:4b
base_url: http://localhost:11434
from openai import OpenAI
client = OpenAI(base_url="http://localhost:11434/v1", api_key="ollama")
response = client.chat.completions.create(
model="qwen3.8-max:4b",
messages=[{"role": "user", "content": "你好"}]
)
| 硬件 | 速度 | 显存 |
|---|---|---|
| A100 80GB | ~35 tok/s | ~65GB |
| Mac M4 Ultra | ~20 tok/s | ~90GB |
| 2×RTX 4090 | ~25 tok/s | ~45GB |
2026年8月13日,阿里巴巴正式开放Qwen3.8-Max模型权重。2.4万亿总参数,激活950亿,稀疏MoE架构,100万Token上下文。Arena排行榜仅次于Claude系列。Ollama支持4bit量化本地部署。
Qwen3.8-Max深度解析