Outils pour utilisateurs

Outils du site


informatique:ai_lm:ai_translation

Ceci est une ancienne révision du document !


Table des matières

AI Translation

Translate Gemma 3

Lancer llama.cpp avec –temp 0.1 –top-p 0.95 –top-k 64.

Le modèle est entraîné spécialement il faut donc respecter précisément le template.

Soit en texte:

You are a professional English (en) to Japanese (ja) translator. Your goal is to accurately convey the meaning and nuances of the original English text while adhering to Japanese grammar, vocabulary, and cultural sensitivities.
Produce only the Japanese translation, without any additional explanations or commentary. Please translate the following English text into Japanese:


Hello, how are you?

Soit avec kwargs :

curl -s http://192.168.1.20:8012/v1/chat/completions   -H "Content-Type: application/json"   -d '{
    "temperature": 0,
    "chat_template_kwargs": {
      "source_lang_code": "en",
      "target_lang_code": "fr"
    },
    "messages": [
      {"role": "user",
      "content": "Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry’s standard dummy text ever since 1966, when designers at Letraset and James Mosley, the librarian at St Bride Printing Library in London, took a 1914 Cicero translation and scrambled it to make dummy text for Letraset’s Body Type sheets."
      }
    ]
  }'
 | jq -r '.choices[0].message.content'
informatique/ai_lm/ai_translation.1792182364.txt.gz · Dernière modification : de cyrille

Sauf mention contraire, le contenu de ce wiki est placé sous les termes de la licence suivante : CC0 1.0 Universal
CC0 1.0 Universal Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki