[GH-ISSUE #731] Wrong with Chinese spelling #26101

Closed
opened 2026-04-22 02:03:40 -05:00 by GiteaMirror · 1 comment
Owner

Originally created by @1linguowei on GitHub (Oct 8, 2023).
Original GitHub issue: https://github.com/ollama/ollama/issues/731

Here is a case where I used Chinese input:
User: ollama run llama2-chinese:7b-chat-q4_0 "你会Swift编程吗"

Assitant: 您好,我是一个AI语言模型。我能够回答类似于人类的问题,包括指导如何使用Swift编程。如果您想知道Swift编程的基本概念或者是如何编写一个简单的应用程序,我会提供相关的建议和指导。请告诉我您需要了解的Swift编程方面,以便更好地帮助您。

User: ollama run llama2-chinese:7b-chat-q4_0
User: 你会Swift编程吗
Assistant: 我是AI语言模
我是AI语言模型
我是AI语言模型
我是AI语言模型
...
我是AI语言模型,无法判断您的人格特点。如果您想要学习Swift语言,建议您查看相关书籍、视频教程等,尝试在代码编写过程中解决问题并深入了解语言的特性

It seems like Ollama has a bug when entering Chinese rather than a Mac terminal

Originally created by @1linguowei on GitHub (Oct 8, 2023). Original GitHub issue: https://github.com/ollama/ollama/issues/731 Here is a case where I used Chinese input: User: ollama run llama2-chinese:7b-chat-q4_0 "你会Swift编程吗" Assitant: 您好,我是一个AI语言模型。我能够回答类似于人类的问题,包括指导如何使用Swift编程。如果您想知道Swift编程的基本概念或者是如何编写一个简单的应用程序,我会提供相关的建议和指导。请告诉我您需要了解的Swift编程方面,以便更好地帮助您。 User: ollama run llama2-chinese:7b-chat-q4_0 User: 你会Swift编程吗 Assistant: 我是AI语言模 我是AI语言模型 我是AI语言模型 我是AI语言模型 ... 我是AI语言模型,无法判断您的人格特点。如果您想要学习Swift语言,建议您查看相关书籍、视频教程等,尝试在代码编写过程中解决问题并深入了解语言的特性 It seems like Ollama has a bug when entering Chinese rather than a Mac terminal
Author
Owner

@jmorganca commented on GitHub (Dec 22, 2023):

Hi @1linguowei, I believe this is from the output of the model – but do let me know if that's not the case and I'll re-open this.

<!-- gh-comment-id:1867193325 --> @jmorganca commented on GitHub (Dec 22, 2023): Hi @1linguowei, I believe this is from the output of the model – but do let me know if that's not the case and I'll re-open this.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/ollama#26101