This model contains the AWQ 4-bit quantized version of the base model
DictaLM-2.0
.
You can view and access the full collection of base/instruct unquantized/quantized versions of
DictaLM-2.0
here
.
Example Code
Running this code requires less than 5GB of GPU VRAM.
from transformers import pipeline
# This loads the model onto the GPU in bfloat16 precision
model = pipeline('text-generation', 'dicta-il/dictalm2.0-AWQ', device_map='cuda')
# Sample few shot examples
prompt = """עבר: הלכתיעתיד: אלךעבר: שמרתיעתיד: אשמורעבר: שמעתיעתיד: אשמעעבר: הבנתיעתיד:"""print(model(prompt.strip(), do_sample=False, max_new_tokens=4, stop_sequence='\n'))
# [{'generated_text': 'עבר: הלכתי\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-AWQ on huggingface.co
14
Total runs
1
24-hour runs
-1
3-day runs
-4
7-day runs
4
30-day runs
More Information About dictalm2.0-AWQ huggingface.co Model
dictalm2.0-AWQ huggingface.co is an AI model on huggingface.co that provides dictalm2.0-AWQ's model effect (), which can be used instantly with this dicta-il dictalm2.0-AWQ model. huggingface.co supports a free trial of the dictalm2.0-AWQ model, and also provides paid use of the dictalm2.0-AWQ. Support call dictalm2.0-AWQ model through api, including Node.js, Python, http.
dictalm2.0-AWQ huggingface.co is an online trial and call api platform, which integrates dictalm2.0-AWQ's modeling effects, including api services, and provides a free online trial of dictalm2.0-AWQ, you can try dictalm2.0-AWQ online for free by clicking the link below.
dicta-il dictalm2.0-AWQ online free url in huggingface.co:
dictalm2.0-AWQ is an open source model from GitHub that offers a free installation service, and any user can find dictalm2.0-AWQ on GitHub to install. At the same time, huggingface.co provides the effect of dictalm2.0-AWQ install, users can directly use dictalm2.0-AWQ installed effect in huggingface.co for debugging and trial. It also supports api for free installation.