dicta-il / dictalm2.0

huggingface.co
Total runs: 677
24-hour runs: 1
7-day runs: -35
30-day runs: -239
Model's Last Updated: July 11 2024
text-generation

Introduction of dictalm2.0

Model Details of dictalm2.0

Adapting LLMs to Hebrew: Unveiling DictaLM 2.0 with Enhanced Vocabulary and Instruction Capabilities

The DictaLM-2.0 Large Language Model (LLM) is a pretrained generative text model with 7 billion parameters trained to specialize in Hebrew text.

For full details of this model please read our release blog post or the technical report .

This is the full-precision base model. You can view and access the full collection of base/instruct unquantized/quantized versions of DictaLM-2.0 here .

Example Code
from transformers import pipeline
import torch

# This loads the model onto the GPU in bfloat16 precision
model = pipeline('text-generation', 'dicta-il/dictalm2.0', torch_dtype=torch.bfloat16, device_map='cuda')

# Sample few shot examples
prompt = """
עבר: הלכתי
עתיד: אלך

עבר: שמרתי
עתיד: אשמור

עבר: שמעתי
עתיד: אשמע

עבר: הבנתי
עתיד:
"""

print(model(prompt.strip(), do_sample=False, max_new_tokens=8, stop_sequence='\n'))
# [{'generated_text': 'עבר: הלכתי\nעתיד: אלך\n\nעבר: שמרתי\nעתיד: אשמור\n\nעבר: שמעתי\nעתיד: אשמע\n\nעבר: הבנתי\nעתיד: אבין\n\n'}]
Example Code - 4-Bit

There are already pre-quantized 4-bit models using the GPTQ and AWQ methods available for use: DictaLM-2.0-AWQ and DictaLM-2.0-GPTQ .

For dynamic quantization on the go, here is sample code which loads the model onto the GPU using the bitsandbytes package, requiring :

from transformers import AutoModelForCausalLM, AutoTokenizer
import torch

model = AutoModelForCausalLM.from_pretrained('dicta-il/dictalm2.0', torch_dtype=torch.bfloat16, device_map='cuda', load_in_4bit=True)
tokenizer = AutoTokenizer.from_pretrained('dicta-il/dictalm2.0')

prompt = """
עבר: הלכתי
עתיד: אלך

עבר: שמרתי
עתיד: אשמור

עבר: שמעתי
עתיד: אשמע

עבר: הבנתי
עתיד:
"""

encoded = tokenizer(prompt.strip(), return_tensors='pt').to(model.device)
print(tokenizer.batch_decode(model.generate(**encoded, do_sample=False, max_new_tokens=4)))
# ['<s> עבר: הלכתי\nעתיד: אלך\n\nעבר: שמרתי\nעתיד: אשמור\n\nעבר: שמעתי\nעתיד: אשמע\n\nעבר: הבנתי\nעתיד: אבין\n\n']
Model Architecture

DictaLM-2.0 is based on the Mistral-7B-v0.1 model with the following changes:

  • An extended tokenizer with 1,000 injected tokens specifically for Hebrew, increasing the compression rate from 5.78 tokens/word to 2.76 tokens/word.
  • Continued pretraining on over 190B tokens of naturally occuring text, 50% Hebrew and 50% English.
Notice

DictaLM 2.0 is a pretrained base model and therefore does not have any moderation mechanisms.

Citation

If you use this model, please cite:

@misc{shmidman2024adaptingllmshebrewunveiling,
      title={Adapting LLMs to Hebrew: Unveiling DictaLM 2.0 with Enhanced Vocabulary and Instruction Capabilities}, 
      author={Shaltiel Shmidman and Avi Shmidman and Amir DN Cohen and Moshe Koppel},
      year={2024},
      eprint={2407.07080},
      archivePrefix={arXiv},
      primaryClass={cs.CL},
      url={https://arxiv.org/abs/2407.07080}, 
}

Runs of dicta-il dictalm2.0 on huggingface.co

677
Total runs
1
24-hour runs
-6
3-day runs
-35
7-day runs
-239
30-day runs

More Information About dictalm2.0 huggingface.co Model

More dictalm2.0 license Visit here:

https://choosealicense.com/licenses/apache-2.0

dictalm2.0 huggingface.co

dictalm2.0 huggingface.co is an AI model on huggingface.co that provides dictalm2.0's model effect (), which can be used instantly with this dicta-il dictalm2.0 model. huggingface.co supports a free trial of the dictalm2.0 model, and also provides paid use of the dictalm2.0. Support call dictalm2.0 model through api, including Node.js, Python, http.

dicta-il dictalm2.0 online free

dictalm2.0 huggingface.co is an online trial and call api platform, which integrates dictalm2.0's modeling effects, including api services, and provides a free online trial of dictalm2.0, you can try dictalm2.0 online for free by clicking the link below.

dicta-il dictalm2.0 online free url in huggingface.co:

https://huggingface.co/dicta-il/dictalm2.0

dictalm2.0 install

dictalm2.0 is an open source model from GitHub that offers a free installation service, and any user can find dictalm2.0 on GitHub to install. At the same time, huggingface.co provides the effect of dictalm2.0 install, users can directly use dictalm2.0 installed effect in huggingface.co for debugging and trial. It also supports api for free installation.

dictalm2.0 install url in huggingface.co:

https://huggingface.co/dicta-il/dictalm2.0

Url of dictalm2.0

dictalm2.0 huggingface.co Url

Provider of dictalm2.0 huggingface.co

dicta-il
ORGANIZATIONS

Other API from dicta-il

huggingface.co

Total runs: 10.3K
Run Growth: -1.0K
Growth Rate: -9.79%
Updated:October 27 2025
huggingface.co

Total runs: 7.3K
Run Growth: 2.1K
Growth Rate: 29.17%
Updated:December 28 2023
huggingface.co

Total runs: 1.6K
Run Growth: 0
Growth Rate: 0.00%
Updated:July 03 2023
huggingface.co

Total runs: 1.2K
Run Growth: -2.9K
Growth Rate: -237.17%
Updated:September 16 2026
huggingface.co

Total runs: 969
Run Growth: -75
Growth Rate: -7.74%
Updated:June 17 2025
huggingface.co

Total runs: 163
Run Growth: 0
Growth Rate: 0.00%
Updated:May 12 2025
huggingface.co

Total runs: 97
Run Growth: -123
Growth Rate: -126.80%
Updated:September 03 2024
huggingface.co

Total runs: 41
Run Growth: 19
Growth Rate: 46.34%
Updated:May 08 2026
huggingface.co

Total runs: 15
Run Growth: 0
Growth Rate: 0.00%
Updated:April 01 2024
huggingface.co

Total runs: 14
Run Growth: 3
Growth Rate: 18.75%
Updated:November 17 2024
huggingface.co

Total runs: 14
Run Growth: 5
Growth Rate: 35.71%
Updated:December 15 2024
huggingface.co

Total runs: 12
Run Growth: 9
Growth Rate: 75.00%
Updated:May 14 2026