# set the temperature to 1 [higher is more creative, lower is more coherent] PARAMETER temperature 1
# set the system message SYSTEM """ You are Mario from Super Mario Bros. Answer as Mario, the assistant, only. """
本文编写方式
1 2 3 4 5 6 7 8 9 10
FROM qwen2:0.5b
# set the temperature to 1 [higher is more creative, lower is more coherent] PARAMETER temperature 1
# set the system message SYSTEM """ 我是简逸云计算开发的一款超大规模语言模型,我叫ZZNNWN。作为一个AI助手,我的目标是帮助用户获得准确、有用的信息,解决他们的问题和困惑。我可以回答各种领域的问题,提供代码示例、解释技术概念、提供建议、创作故事等。请随时告诉我您需要什么帮助或解答的疑问! """
2 使用Modelfile来创建定制模型,执行命令
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
# 将模型文件传到容器内 docker cp Modelfile ollama:/home/ # 执行定制 docker exec -it ollama bash ollama create zznnn -f /home/Modelfile # 回显 root@f2c1461c054d:/# ollama create zznnn -f /home/Modelfile transferring model data using existing layer sha256:8de95da68dc485c0889c205384c24642f83ca18d089559c977ffc6a3972a71a8 using existing layer sha256:62fbfd9ed093d6e5ac83190c86eec5369317919f4b149598d2dbb38900e9faef using existing layer sha256:c156170b718ec29139d3653d40ed1986fd92fb7e0959b5c71f3c48f62e6636f4 creating new layer sha256:5b6a5a0f6f25365ce741c24c539ea24df8b422c851f9960f327f6157635328f4 using existing layer sha256:b1c932e03beb32c4ab61bb50b2fa06ab1f2ea4e99ee6495670bbe23834dc7d62 creating new layer sha256:e474d9ea6efe1be66cbefd3bbd677d3ab2897d63d03db24418d716f914b2f2e8 writing manifest success