Views
No views yet
DictaLM 3.0 here.1
2from transformers import pipeline
3
4generator = pipeline('text-generation', model="dicta-il/DictaLM-3.0-24B-Thinking")
5
6messages = [
7 {"role": "user", "content": "איזה רוטב אהוב עליך?"},
8 {"role": "assistant", "content": "טוב, אני די מחבב כמה טיפות מיץ לימון סחוט טרי. זה מוסיף בדיוק את הכמות הנכונה של טעם חמצמץ לכל מה שאני מבשל במטבח!"},
9 {"role": "user", "content": "האם יש לך מתכונים למיונז?"}
10]
11
12print(generator(messages)[0]['generated_text'][-1]) # just print the last message
13# {'role': 'assistant', 'content': 'המשתמש שואל: "האם יש לך מתכונים למיונז?" עלינו להגיב עם מתכון למיונז. ספקו מתכון קלאסי, אולי גם וריאציות (מיונז פליאו, מיונז טבעוני, מיונז חריף, וכו\'). ספקו הוראות שלב אחר שלב. צריך להיות בטון ידידותי.</think>בטח! מיונז ביתי הוא באמת פשוט להכנה ומעניק לכם שליטה מלאה על המרכיבים, הטעם והמרקם. להלן המתכון הקלאסי, בתוספת כמה וריאציות מהנות שתוכלו להתנסות בהן.\n\n---\n\n## 1️⃣ מיונז קלאסי (מיונז בסיסי)\n\n| מרכיב | כמות |\n|------------|----------|\n| חלמון ביצה גדול (או 2 חלמונים בינוניים) | 1 |\n| חרדל דיז\'ון | 1 כפית |\n| מיץ לימון טרי (או ח'}vllm serve dicta-il/DictaLM-3.0-24B-Thinking --enable-auto-tool-choice --tool-call-parser hermes --reasoning_parser deepseek_r11from openai import OpenAI
2
3client = OpenAI(
4 base_url="http://localhost:8000/v1",
5 api_key="sk-no-key-required"
6)
7
8response = client.chat.completions.create(
9 model="dicta-il/DictaLM-3.0-24B-Thinking",
10 messages=[
11 {"role": "user", "content": "Hello, how are you?"}
12 ],
13)
14
15print(response.choices[0].message.content)The reasoning traces should be available in the response structure in the designated fild.
1@article{Shmidman2025DictaLM3,
2 title={{Dicta-LM 3.0: Advancing The Frontier of Hebrew Sovereign LLMs}},
3 author={Shaltiel Shmidman and Avi Shmidman and Amir DN Cohen and Moshe Koppel},
4 year={2025},
5 publisher={{DICTA / Jerusalem, Israel}},
6 note={https://www.dicta.org.il/publications/DictaLM_3_0___Techincal_Report.pdf}
7}