Outils pour utilisateurs

Outils du site


informatique:ai_lm:ai_translation

Différences

Ci-dessous, les différences entre deux révisions de la page.

Lien vers cette vue comparative

Prochaine révision
Révision précédente
informatique:ai_lm:ai_translation [16/10/2026 22:16] – créée cyrilleinformatique:ai_lm:ai_translation [16/10/2026 22:30] (Version actuelle) – cyrille
Ligne 7: Ligne 7:
   * GGUF https://huggingface.co/mradermacher/translategemma-27b-it-GGUF   * GGUF https://huggingface.co/mradermacher/translategemma-27b-it-GGUF
  
 +Lancer llama.cpp avec ''--temp 0.1 --top-p 0.95 --top-k 64 --jinja'' ou ''--temp 0 --jinja''.
 +
 +Le modèle est entraîné spécialement il faut donc respecter précisément le template.
 +
 +Un seul message user sans message system.
 +
 +Soit en texte:
 +<code>
 +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?
 +</code>
 +
 +Soit avec ''kwargs'' :
 <code bash> <code bash>
-curl -s http://192.168.1.20:8012/v1/chat/completions   -H "Content-Type: application/json"   -d '{+curl -s http://192.168.1.20:8012/v1/chat/completions -H "Content-Type: application/json" \ 
 + -d '{
     "temperature": 0,     "temperature": 0,
     "chat_template_kwargs": {     "chat_template_kwargs": {
Ligne 16: Ligne 35:
     "messages": [     "messages": [
       {"role": "user",       {"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." +      "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." 
-      }+     }
     ]     ]
   }'   }'
informatique/ai_lm/ai_translation.1792181780.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