Views
No views yet
DictaLM 3.0 here.1
2from transformers import pipeline
3
4generator = pipeline('text-generation', model="dicta-il/DictaLM-3.0-Nemotron-12B-Instruct", trust_remote_code=True)
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': 'בהחלט! הנה מתכון פשוט למיונז ביתי:\n\nמרכיבים:\n- 1 חלמון ביצה\n- 1 כף חומץ או מיץ לימון\n- 1 כפית מלח\n- 1 כף מים\n- 1 כוס שמן צמחי (לדוגמה, שמן חמניות או שמן צמחי)\n\nהוראות:\n1. בקערה קטנה, שברים את החלמון והחומץ או מיץ הלימון. הוסיפו את המלח והמים וטרפו עד לקבלת תערובת אחידה.\n2. בעזרת בלנדר מוט או מערבל ידני, טפטפו את השמן לאט לתערובת החלמון תוך כדי טריפה מתמדת. חשוב להוסיף את השמן בהדרגה כדי למנוע קריסה של המיונז.\n3. המשיכו להוסיף את השמן עד שכל הכמות נוספה והמיונז התגבש. אם המיונז עדיין דליל מדי, ניתן להוסיף'}vllm serve dicta-il/DictaLM-3.0-Nemotron-12B-Instruct --enable-auto-tool-choice --tool-call-parser hermes --trust-remote-code1from 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-Nemotron-12B-Instruct",
10 messages=[
11 {"role": "user", "content": "Hello, how are you?"}
12 ],
13)
14
15print(response.choices[0].message.content)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}