localGPT icon indicating copy to clipboard operation
localGPT copied to clipboard

Is there a way to change language for LLama 2?

Open NiklasClausius opened this issue 1 year ago • 3 comments

Hi,

i'm currently playing around with german language and documents and used the multilingual embedding models quite successfully. However when running LLama 2-Chat-7B i will always get answers in english language. So far i tried:

  • Modifying the system_prompt to answer in german only.
  • Wrote the whole prompt in german.

It seems the LLM understands the task and german context just fine but it will only answer in english language. I tried an available online LLama2 Chat and when asking for german, it immediately answered in german.

Anyone knows, what has to be done?

NiklasClausius avatar Sep 26 '23 13:09 NiklasClausius

Best to use LeoLM . This is llama-2 trained on high-quality German corpuses.

rlleshi avatar Oct 06 '23 11:10 rlleshi

Russian Russian hello, the same question on the topic, but with the Russian language, when I ask in Russian if he can answer in Russian, he confirms, but at the same time writes in English, how can I change this?

Dgr2243 avatar May 05 '24 08:05 Dgr2243

>>> ты можешь отвечать на русском языке? Yes, I can respond in Russian. Please let me know if you have any questions or need help with anything.

Dgr2243 avatar May 05 '24 08:05 Dgr2243