初始化项目,由ModelHub XC社区提供模型
Model: dicta-il/dictalm2.0-instruct-GGUF Source: Original Platform
This commit is contained in:
37
.gitattributes
vendored
Normal file
37
.gitattributes
vendored
Normal file
@@ -0,0 +1,37 @@
|
|||||||
|
*.7z filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.arrow filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.bin filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.bz2 filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.ckpt filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.ftz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.gz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.h5 filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.joblib filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.lfs.* filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.mlmodel filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.model filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.msgpack filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.npy filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.npz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.onnx filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.ot filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.parquet filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.pb filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.pickle filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.pkl filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.pt filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.pth filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.rar filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.safetensors filter=lfs diff=lfs merge=lfs -text
|
||||||
|
saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.tar.* filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.tar filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.tflite filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.tgz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.wasm filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.xz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.zip filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.zst filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
||||||
|
dictalm2.0-instruct.F16.gguf filter=lfs diff=lfs merge=lfs -text
|
||||||
|
dictalm2.0-instruct.Q4_K_M.gguf filter=lfs diff=lfs merge=lfs -text
|
||||||
74
README.md
Normal file
74
README.md
Normal file
@@ -0,0 +1,74 @@
|
|||||||
|
---
|
||||||
|
license: apache-2.0
|
||||||
|
pipeline_tag: text-generation
|
||||||
|
language:
|
||||||
|
- en
|
||||||
|
- he
|
||||||
|
tags:
|
||||||
|
- instruction-tuned
|
||||||
|
base_model: dicta-il/dictalm2.0
|
||||||
|
inference: false
|
||||||
|
---
|
||||||
|
|
||||||
|
[<img src="https://i.ibb.co/5Lbwyr1/dicta-logo.jpg" width="300px"/>](https://dicta.org.il)
|
||||||
|
|
||||||
|
|
||||||
|
# Adapting LLMs to Hebrew: Unveiling DictaLM 2.0 with Enhanced Vocabulary and Instruction Capabilities
|
||||||
|
|
||||||
|
The DictaLM-2.0-Instruct Large Language Model (LLM) is an instruct fine-tuned version of the [DictaLM-2.0](https://huggingface.co/dicta-il/dictalm2.0) generative model using a variety of conversation datasets.
|
||||||
|
|
||||||
|
For full details of this model please read our [release blog post](https://dicta.org.il/dicta-lm) or the [technical report](https://arxiv.org/abs/2407.07080).
|
||||||
|
|
||||||
|
This is the instruct-tuned model designed for chat in the GGUF format for use with [LM Studio](https://lmstudio.ai/) or [llama.cpp](https://github.com/ggerganov/llama.cpp). You can try the model out on a live demo [here](https://huggingface.co/spaces/dicta-il/dictalm2.0-instruct-demo).
|
||||||
|
|
||||||
|
There are two versions available - float16 precision (`*.F16.gguf`) and 4-bit quantized precision (`*.Q4_K_M.gguf`).
|
||||||
|
|
||||||
|
You can view and access the full collection of base/instruct unquantized/quantized versions of `DictaLM-2.0` [here](https://huggingface.co/collections/dicta-il/dicta-lm-20-collection-661bbda397df671e4a430c27).
|
||||||
|
|
||||||
|
## Instruction format
|
||||||
|
|
||||||
|
In order to leverage instruction fine-tuning, your prompt should be surrounded by `[INST]` and `[/INST]` tokens followed by a line break. The very first instruction should begin with a begin of sentence id. The next instructions should not. The assistant generation will be ended by the end-of-sentence token id.
|
||||||
|
|
||||||
|
E.g.
|
||||||
|
```
|
||||||
|
text = """<s>[INST] איזה רוטב אהוב עליך? [/INST]
|
||||||
|
טוב, אני די מחבב כמה טיפות מיץ לימון סחוט טרי. זה מוסיף בדיוק את הכמות הנכונה של טעם חמצמץ לכל מה שאני מבשל במטבח!</s>[INST] האם יש לך מתכונים למיונז? [/INST]"
|
||||||
|
```
|
||||||
|
|
||||||
|
This format is available as a [chat template](https://huggingface.co/docs/transformers/main/chat_templating) via the `apply_chat_template()` method:
|
||||||
|
|
||||||
|
## Using with LM Studio
|
||||||
|
|
||||||
|
When using with LM Studio, just search the hub for "dictalm2.0-instruct-GGUF", and the model in both precisions should appear.
|
||||||
|
|
||||||
|
Make sure to set the chat template correctly - initialize from the `mistral-instruct` template, and add a `\n` in the suffix box, like here:
|
||||||
|
|
||||||
|
<img src="https://i.ibb.co/D9MVgK2/lmstudio-dlm-template.png" width="400px" />
|
||||||
|
|
||||||
|
In addition, the model doesn't support any system prompt, so make sure to remove the system prompt as well.
|
||||||
|
|
||||||
|
## Model Architecture
|
||||||
|
|
||||||
|
DictaLM-2.0-Instruct follows the [Zephyr-7B-beta](https://huggingface.co/HuggingFaceH4/zephyr-7b-beta) recipe for fine-tuning an instruct model, with an extended instruct dataset for Hebrew.
|
||||||
|
|
||||||
|
## Limitations
|
||||||
|
|
||||||
|
The DictaLM 2.0 Instruct model is a demonstration that the base model can be fine-tuned to achieve compelling performance.
|
||||||
|
It does not have any moderation mechanisms. We're looking forward to engaging with the community on ways to
|
||||||
|
make the model finely respect guardrails, allowing for deployment in environments requiring moderated outputs.
|
||||||
|
|
||||||
|
## Citation
|
||||||
|
|
||||||
|
If you use this model, please cite:
|
||||||
|
|
||||||
|
```bibtex
|
||||||
|
@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},
|
||||||
|
}
|
||||||
|
```
|
||||||
3
config.json
Normal file
3
config.json
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
{
|
||||||
|
"model_type": "mistral"
|
||||||
|
}
|
||||||
3
dictalm2.0-instruct.F16.gguf
Normal file
3
dictalm2.0-instruct.F16.gguf
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:99717af95ada3c2666c15a00523f9f035e629882c23a67654a4bdbda1f0581ca
|
||||||
|
size 14503633824
|
||||||
3
dictalm2.0-instruct.Q4_K_M.gguf
Normal file
3
dictalm2.0-instruct.Q4_K_M.gguf
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:dc53cc29a30444677a7760af31f807a61999477c526cdbe6552803259a94c735
|
||||||
|
size 4374991808
|
||||||
Reference in New Issue
Block a user