<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Modelfile on AI 观察</title><link>https://ai.wujiong.cc/tags/modelfile/</link><description>Recent content in Modelfile on AI 观察</description><generator>Hugo</generator><language>zh-CN</language><lastBuildDate>Sun, 18 Oct 2026 08:59:00 +0800</lastBuildDate><atom:link href="https://ai.wujiong.cc/tags/modelfile/index.xml" rel="self" type="application/rss+xml"/><item><title>Ollama Modelfile 入门：给本地模型固定系统提示词和参数</title><link>https://ai.wujiong.cc/posts/2026-10-18-tools-ollama-modelfile-system-prompt/</link><pubDate>Sun, 18 Oct 2026 08:59:00 +0800</pubDate><guid>https://ai.wujiong.cc/posts/2026-10-18-tools-ollama-modelfile-system-prompt/</guid><description>&lt;p&gt;如果你在本地用 Ollama 跑模型，经常要重复输入“你是一个翻译助手，只输出译文”之类的设定，&lt;strong&gt;可以用 Modelfile 把系统提示词和参数固定下来，创建一个自己的模型变体，之后直接 &lt;code&gt;ollama run&lt;/code&gt; 这个名字即可。&lt;/strong&gt;&lt;/p&gt;
&lt;h2 id="modelfile-是什么"&gt;Modelfile 是什么&lt;/h2&gt;
&lt;p&gt;Modelfile 是 Ollama 用来定义模型的配置文件，类似 Dockerfile。常用指令：&lt;/p&gt;</description></item></channel></rss>