[Mova](https://md.mova.elamur.ai/free/en/) · [this page in HTML](https://mova.elamur.ai/free/en/docs/papers/arxivrecent-2024-shmidman-adapting-llms-hebrew-unveiling-dictalm/)

[home](https://md.mova.elamur.ai/free/en/) / [docs](https://md.mova.elamur.ai/free/en/docs/) / [papers](https://md.mova.elamur.ai/free/en/docs/papers/) / [Modern Hebrew](https://md.mova.elamur.ai/free/en/docs/papers/he/) / Adapting LLMs to Hebrew: Unveiling DictaLM 2.0 with Enhanced Vocabulary and Instruction Capabilities

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

**Authors:** [Shaltiel Shmidman](https://md.mova.elamur.ai/free/en/docs/papers/authors/shaltiel-shmidman/); [Avi Shmidman](https://md.mova.elamur.ai/free/en/docs/papers/authors/avi-shmidman/); [Amir DN Cohen](https://md.mova.elamur.ai/free/en/docs/papers/authors/amir-dn-cohen/); [Moshe Koppel](https://md.mova.elamur.ai/free/en/docs/papers/authors/moshe-koppel/) · **Year:** 2024 · **Venue:** arXiv:2407.07080 **Link:** [arxiv.org/abs/2407.07080](https://arxiv.org/abs/2407.07080) · library `arxivrecent-2024-shmidman-adapting-llms-hebrew-unveiling-dictalm` · **Licence:** [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/)

[**0** citations](https://openalex.org/works?filter=cites:W4400519217) openalex-snapshot · 2026-10-14[**15** citations in our library](https://md.mova.elamur.ai/free/en/docs/papers/cited-by/arxivrecent-2024-shmidman-adapting-llms-hebrew-unveiling-dictalm/) of the 140673 papers whose bibliographies we read[arXiv:2407.07080](https://openalex.org/S4306400194)[licence](http://creativecommons.org/licenses/by/4.0/)

- [Publisher's page](https://arxiv.org/abs/2407.07080)
- [PDF](https://arxiv.org/pdf/2407.07080)
- [arXiv 2407.07080](https://arxiv.org/abs/2407.07080)
- [OpenAlex](https://openalex.org/W4400519217)

**Authors (4)**

1. [Shaltiel Shmidman](https://openalex.org/A5041361841) h 3 · 27 citations · 21 works
2. [Avi Shmidman](https://openalex.org/A5013212409) h 5 · 114 citations · 53 works
3. [Amir DN Cohen](https://openalex.org/A5086960141) h 7 · 139 citations · 25 works
4. [Moshe Koppel](https://openalex.org/A5019908505) h 37 · 6949 citations · 150 works

Citations and author metrics from openalex-snapshot (2026-10-14); authors with the same name are not always told apart.

## What it is about

The paper adapts Mistral-7B to Hebrew by continued pre-training on about 200B tokens of half Hebrew and half English. Hebrew text comes from web crawls, social media, news, and books, filtered by Hebrew-character share and by a frequency test against a 1B-word gold corpus, then de-duplicated with MinHash at 0.8 Jaccard. The tokenizer gets 1,000 added Hebrew tokens, which halves the tokens per Hebrew word (from 5.81), and the new embeddings are first distilled from the old ones, then the LM head is calibrated. An instruct version is made by SFT on translated and native Hebrew dialogues, then DPO with a same-answer-different-language pair set to stop language switching. The evaluation uses few-shot Hebrew tasks (HeQ, sentiment, Winograd, BLEU translation) and a GPT-4 judge on 75 summaries, where DictaLM 2.0-Instruct after DPO scores below Claude 3 Haiku and GPT-4 but above Gemma-7B-it and close to Llama-3-8B-Instruct on consistency. The paper is a model report.

## Ideas

- I1. A deterministic Hebrew-content filter: a document is kept only if most of its words occur in a frequency list from a gold corpus, and non-Hebrew spans are replaced by one marker. The same two checks can screen `tools/langseg` output and the web text that feeds any Hebrew resource.
- I2. A Winograd-style pronoun test in Hebrew (the translated schema set) as a held-out check of pronoun resolution in [Nouns, adjectives, pronouns and numerals](https://md.mova.elamur.ai/free/en/docs/languages/he/04-nouns-adjectives-pronouns/); it needs commonsense, so it measures the limit of the rule-based world rather than the parser.
- I3. A language-match check on Mova's own answers: the reply must be in the language of the question, as the paper's pair set enforces for its model. The check is a rule on the output, measured on a set of mixed questions.

## For Mova

I1 goes into `tools/langseg` (a quality filter for Hebrew text) and into [2. Script and spelling](https://md.mova.elamur.ai/free/en/docs/languages/he/02-script-and-spelling/) as a note on frequency checks. I2 is a test set for [Nouns, adjectives, pronouns and numerals](https://md.mova.elamur.ai/free/en/docs/languages/he/04-nouns-adjectives-pronouns/). I3 is a check for the answer stage in `prag` and `world`, once Modern Hebrew input is supported ([12. Mova and Modern Hebrew: where it stands, what it would need](https://md.mova.elamur.ai/free/en/docs/languages/he/12-mova/)).

## Cite

The paper itself, not this card. BibTeX from the library's record of the work. [arXiv 2407.07080](https://arxiv.org/abs/2407.07080)

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

- [← previous The Knesset Corpus: An Annotated Corpus of Hebrew Parliamentary Proceedings](https://md.mova.elamur.ai/free/en/docs/papers/arxivrecent-2024-goldin-knesset-corpus-annotated-corpus-hebrew/)
- [next → TafBERTa: Learning Grammatical Rules from Small-Scale Language Acquisition Data in Hebrew](https://md.mova.elamur.ai/free/en/docs/papers/babylm-2025-gelboim-tafberta-learning-grammatical-rules-small/)
- [↑ back to Modern Hebrew](https://md.mova.elamur.ai/free/en/docs/papers/he/)

## References

40 references, 2 of them with a card of ours. ↗ leads to the work, «find» searches for one we have no id for yet.

1. AI@Meta. 2024. Llama 3 model card. [find](https://scholar.google.com/scholar?q=AI%40Meta%2E+2024%2E+Llama+3+model+card%2E)
2. Anthropic. 2024. The claude 3 model family: Opus, sonnet, haiku. Papers with Code. [find](https://scholar.google.com/scholar?q=Anthropic%2E+2024%2E+The+claude+3+model+family%3A+Opus%2C+sonnet%2C+haiku%2E+Papers+with+Code%2E)
3. Pierpaolo Basile, Elio Musacchio, Marco Polignano, Lucia Siciliani, Giuseppe Fiameni, and Giovanni Semeraro. 2023. Llamantino: Llama 2 models for effective text generation in italian language. [↗](https://doi.org/10.48550/arxiv.2312.09993)
4. Ben-Yehuda. 2024. Ben yehuda project. [find](https://scholar.google.com/scholar?q=Ben%2DYehuda%2E+2024%2E+Ben+yehuda+project%2E)
5. Andrei Z. Broder. 1997. On the resemblance and containment of documents. In Compression and Complexity of Sequences 1997. Proceedings, pages 21–29. IEEE. [find](https://scholar.google.com/scholar?q=Andrei+Z%2E+Broder%2E+1997%2E+On+the+resemblance+and+containment+of+documents%2E+In+Compression+and+Complexity+of+Sequences+1997%2E+Proceedings%2C+pages+21%E2%80%9329%2E+IEEE%2E)
6. Tom B. Brown, Benjamin Mann, Nick Ryder, Melanie Subbiah, Jared Kaplan, Prafulla Dhariwal, Arvind Neelakantan, Pranav Shyam, Girish Sastry, Amanda Askell, Sandhini Agarwal, Ariel Herbert-Voss, Gretchen Krueger, Tom Henighan, Rewon Child, Aditya Ramesh, Daniel M. Ziegler, Jeffrey Wu, Clemens Winter, Christopher Hesse, Mark Chen, Eric Sigler, Mateusz Litwin, Scott Gray, Benjamin Chess, Jack Clark, Christopher Berner, Sam McCandlish, Alec Radford, Ilya Sutskever, and Dario Amodei. 2020. Language models are few-shot learners. [↗](https://doi.org/10.48550/arxiv.2005.14165)
7. Amir Cohen, Hilla Merhav-Fine, Yoav Goldberg, and Reut Tsarfaty. 2023. HeQ: a large and diverse Hebrew reading comprehension benchmark. In Findings of the Association for Computational Linguistics: EMNLP 2023, pages 13693–13705, Singapore. Association for Computational Linguistics. [find](https://scholar.google.com/scholar?q=Amir+Cohen%2C+Hilla+Merhav%2DFine%2C+Yoav+Goldberg%2C+and+Reut+Tsarfaty%2E+2023%2E+HeQ%3A+a+large+and+diverse+Hebrew+reading+comprehension+benchmark%2E+In+Findings+of+the+Association+for+Computational+Linguistics%3A+EM) [our card](https://md.mova.elamur.ai/free/en/docs/papers/findings-2023-cohen-heq-large-diverse-hebrew-reading/)
8. Zoltan Csaki, Pian Pawakapan, Urmish Thakker, and Qiantong Xu. 2023. Efficiently adapting pretrained language models to new languages. [↗](https://doi.org/10.48550/arxiv.2311.05741)
9. Ganqu Cui, Lifan Yuan, Ning Ding, Guanming Yao, Wei Zhu, Yuan Ni, Guotong Xie, Zhiyuan Liu, and Maosong Sun. 2023. Ultrafeedback: Boosting language models with high-quality feedback. [find](https://scholar.google.com/scholar?q=Ganqu+Cui%2C+Lifan+Yuan%2C+Ning+Ding%2C+Guanming+Yao%2C+Wei+Zhu%2C+Yuan+Ni%2C+Guotong+Xie%2C+Zhiyuan+Liu%2C+and+Maosong+Sun%2E+2023%2E+Ultrafeedback%3A+Boosting+language+models+with+high%2Dquality+feedback%2E)
10. Yiming Cui, Ziqing Yang, and Xin Yao. 2024. Efficient and effective text encoding for chinese llama and alpaca. [↗](https://doi.org/10.48550/arxiv.2304.08177)
11. Ning Ding, Yulin Chen, Bokai Xu, Yujia Qin, Zhi Zheng, Shengding Hu, Zhiyuan Liu, Maosong Sun, and Bowen Zhou. 2023. Enhancing chat language models by scaling high-quality instructional conversations. [↗](https://doi.org/10.48550/arxiv.2305.14233)
12. Thomas Mesnard Gemma Team, Cassidy Hardin, Robert Dadashi, Surya Bhupatiraju, Laurent Sifre, Morgane Rivière, Mihir Sanjay Kale, Juliette Love, Pouya Tafti, Léonard Hussenot, and et al. 2024. Gemma. [find](https://scholar.google.com/scholar?q=Thomas+Mesnard+Gemma+Team%2C+Cassidy+Hardin%2C+Robert+Dadashi%2C+Surya+Bhupatiraju%2C+Laurent+Sifre%2C+Morgane+Rivi%C3%A8re%2C+Mihir+Sanjay+Kale%2C+Juliette+Love%2C+Pouya+Tafti%2C+L%C3%A9onard+Hussenot%2C+and+et+al%2E+2024%2E+Gemma%2E)
13. Rakuten Group, Aaron Levine, Connie Huang, Chenguang Wang, Eduardo Batista, Ewa Szymanska, Hongyi Ding, Hou Wei Chou, Jean-François Pessiot, Johanes Effendi, Justin Chiu, Kai Torben Ohlhus, Karan Chopra, Keiji Shinzato, Koji Murakami, Lee Xiong, Lei Chen, Maki Kubota, Maksim Tkachenko, Miroku Lee, Naoki Takahashi, Prathyusha Jwalapuram, Ryutaro Tatsushima, Saurabh Jain, Sunil Kumar Yadav, Ting Cai, Wei-Te Chen, Yandi Xia, Yuki Nakayama, and Yutaka Higashiyama. 2024. Rakutenai-7b: Extending large language models for japanese. [↗](https://doi.org/10.48550/arxiv.2403.15484)
14. Edward J. Hu, Yelong Shen, Phillip Wallis, Zeyuan Allen-Zhu, Yuanzhi Li, Shean Wang, Lu Wang, and Weizhu Chen. 2021. Lora: Low-rank adaptation of large language models. [find](https://scholar.google.com/scholar?q=Edward+J%2E+Hu%2C+Yelong+Shen%2C+Phillip+Wallis%2C+Zeyuan+Allen%2DZhu%2C+Yuanzhi+Li%2C+Shean+Wang%2C+Lu+Wang%2C+and+Weizhu+Chen%2E+2021%2E+Lora%3A+Low%2Drank+adaptation+of+large+language+models%2E)
15. Piotr Indyk and Rajeev Motwani. 1998. Approximate nearest neighbors: Towards removing the curse of dimensionality. In Proceedings of the thirtieth annual ACM symposium on Theory of computing, pages 604–613. ACM. [find](https://scholar.google.com/scholar?q=Piotr+Indyk+and+Rajeev+Motwani%2E+1998%2E+Approximate+nearest+neighbors%3A+Towards+removing+the+curse+of+dimensionality%2E+In+Proceedings+of+the+thirtieth+annual+ACM+symposium+on+Theory+of+computing%2C+pages+60)
16. Albert Q. Jiang, Alexandre Sablayrolles, Arthur Mensch, Chris Bamford, Devendra Singh Chaplot, Diego de las Casas, Florian Bressand, Gianna Lengyel, Guillaume Lample, Lucile Saulnier, Lélio Renard Lavaud, Marie-Anne Lachaux, Pierre Stock, Teven Le Scao, Thibaut Lavril, Thomas Wang, Timothée Lacroix, and William El Sayed. 2023. Mistral 7b. [find](https://scholar.google.com/scholar?q=Albert+Q%2E+Jiang%2C+Alexandre+Sablayrolles%2C+Arthur+Mensch%2C+Chris+Bamford%2C+Devendra+Singh+Chaplot%2C+Diego+de+las+Casas%2C+Florian+Bressand%2C+Gianna+Lengyel%2C+Guillaume+Lample%2C+Lucile+Saulnier%2C+L%C3%A9lio+Renard+Lav)
17. Seungduk Kim, Seungtaek Choi, and Myeongho Jeong. 2024. Efficient and effective vocabulary expansion towards multilingual large language models. [↗](https://doi.org/10.48550/arxiv.2402.14714)
18. Ming Li, Wei Zhang, Jian Ma, et al. 2021. Efficient sequence packing without cross-contamination: Accelerating large language models without impacting performance. arXiv preprint arXiv:2107.02027. [↗](https://arxiv.org/abs/2107.02027)
19. OpenAI, Josh Achiam, Steven Adler, Sandhini Agarwal, Lama Ahmad, Ilge Akkaya, Florencia Leoni Aleman, Diogo Almeida, Janko Altenschmidt, Sam Altman, Shyamal Anadkat, Red Avila, Igor Babuschkin, Suchir Balaji, et al.Valerie Balcom, Paul Baltescu, Haiming Bao, Mohammad Bavarian, Jeff Belgum, and et al. 2024. Gpt-4 technical report. [↗](https://doi.org/10.4230/lipics.cosit.2024.11)
20. Pedro Javier Ortiz Suárez, Benoît Sagot, and Laurent Romary. 2019. Asynchronous pipelines for processing huge corpora on medium to low resource infrastructures. Proceedings of the Workshop on Challenges in the Management of Large Corpora (CMLC-7) 2019. Cardiff, 22nd July 2019, pages 9 – 16, Mannheim. Leibniz-Institut für Deutsche Sprache. [↗](https://doi.org/10.14618/ids-pub-9021)
21. Kishore Papineni, Salim Roukos, Todd Ward, and Wei-Jing Zhu. 2002. Bleu: a method for automatic evaluation of machine translation. In Proceedings of the 40th Annual Meeting of the Association for Computational Linguistics, pages 311–318, Philadelphia, Pennsylvania, USA. Association for Computational Linguistics. [↗](https://doi.org/10.3115/1073083.1073135) [our card](https://md.mova.elamur.ai/free/en/docs/papers/papineni-2002-bleu-method-automatic-evaluation-machine/)
22. Aleksandar Petrov, Emanuele La Malfa, Philip H. S. Torr, and Adel Bibi. 2023. Language model tokenizers introduce unfairness between languages. [find](https://scholar.google.com/scholar?q=Aleksandar+Petrov%2C+Emanuele+La+Malfa%2C+Philip+H%2E+S%2E+Torr%2C+and+Adel+Bibi%2E+2023%2E+Language+model+tokenizers+introduce+unfairness+between+languages%2E)
23. Hebrew-Arabic NLP Project. 2024. Hebrew sentiment - a sentiment-analysis dataset in hebrew. [find](https://scholar.google.com/scholar?q=Hebrew%2DArabic+NLP+Project%2E+2024%2E+Hebrew+sentiment+%2D+a+sentiment%2Danalysis+dataset+in+hebrew%2E)
24. Rafael Rafailov, Archit Sharma, Eric Mitchell, Stefano Ermon, Christopher D. Manning, and Chelsea Finn. 2023. Direct preference optimization: Your language model is secretly a reward model. [↗](https://doi.org/10.52202/075280-2338)
25. Colin Raffel, Noam Shazeer, Adam Roberts, Katherine Lee, Sharan Narang, Michael Matena, Yanqi Zhou, Wei Li, and Peter J. Liu. 2019. Exploring the limits of transfer learning with a unified text-to-text transformer. arXiv e-prints. [↗](https://doi.org/10.48550/arxiv.1910.10683)
26. Samyam Rajbhandari, Jeff Rasley, Olatunji Ruwase, and Yuxiong He. 2020. Zero: Memory optimizations toward training trillion parameter models. [find](https://scholar.google.com/scholar?q=Samyam+Rajbhandari%2C+Jeff+Rasley%2C+Olatunji+Ruwase%2C+and+Yuxiong+He%2E+2020%2E+Zero%3A+Memory+optimizations+toward+training+trillion+parameter+models%2E)
27. Holger Schwenk, Guillaume Wenzek, Sergey Edunov, Edouard Grave, and Armand Joulin. 2020. Ccmatrix: Mining billions of high-quality parallel sentences on the web. [find](https://scholar.google.com/scholar?q=Holger+Schwenk%2C+Guillaume+Wenzek%2C+Sergey+Edunov%2C+Edouard+Grave%2C+and+Armand+Joulin%2E+2020%2E+Ccmatrix%3A+Mining+billions+of+high%2Dquality+parallel+sentences+on+the+web%2E)
28. Sefaria. 2024. Sefaria: A living library of jewish texts. [find](https://scholar.google.com/scholar?q=Sefaria%2E+2024%2E+Sefaria%3A+A+living+library+of+jewish+texts%2E)
29. Rico Sennrich, Barry Haddow, and Alexandra Birch. 2016. Neural machine translation of rare words with subword units. In Proceedings of the 54th Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pages 1715–1725, Berlin, Germany. Association for Computational Linguistics. [find](https://scholar.google.com/scholar?q=Rico+Sennrich%2C+Barry+Haddow%2C+and+Alexandra+Birch%2E+2016%2E+Neural+machine+translation+of+rare+words+with+subword+units%2E+In+Proceedings+of+the+54th+Annual+Meeting+of+the+Association+for+Computational+Ling)
30. Vered Shwartz. 2021. A translation of the winograd schema challenge to hebrew. [find](https://scholar.google.com/scholar?q=Vered+Shwartz%2E+2021%2E+A+translation+of+the+winograd+schema+challenge+to+hebrew%2E)
31. Daria Soboleva, Faisal Al-Khateeb, Robert Myers, Jacob R Steeves, Joel Hestness, and Nolan Dey. 2023. SlimPajama: A 627B token cleaned and deduplicated version of RedPajama. [https://www.cerebras.net/blog/](https://www.cerebras.net/blog/) slimpajama-a-627b-token-cleaned-and-deduplicated-version-of-redpajama. [↗](https://www.cerebras.net/blog/)
32. Gemini Team, Rohan Anil, Sebastian Borgeaud, Jean-Baptiste Alayrac, Jiahui Yu, Radu Soricut, Johan Schalkwyk, Andrew M. Dai, Anja Hauth, and et al. 2024. Gemini: A family of highly capable multimodal models. [↗](https://doi.org/10.48550/arxiv.2312.11805)
33. Teknium. 2023. Openhermes 2.5: An open dataset of synthetic data for generalist llm assistants. [find](https://scholar.google.com/scholar?q=Teknium%2E+2023%2E+Openhermes+2%2E5%3A+An+open+dataset+of+synthetic+data+for+generalist+llm+assistants%2E)
34. Jörg Tiedemann. 2012. Parallel data, tools and interfaces in OPUS. In Proceedings of the Eighth International Conference on Language Resources and Evaluation (LREC’12), pages 2214–2218, Istanbul, Turkey. European Language Resources Association (ELRA). [find](https://scholar.google.com/scholar?q=J%C3%B6rg+Tiedemann%2E+2012%2E+Parallel+data%2C+tools+and+interfaces+in+OPUS%2E+In+Proceedings+of+the+Eighth+International+Conference+on+Language+Resources+and+Evaluation+%28LREC%E2%80%9912%29%2C+pages+2214%E2%80%932218%2C+Istanbul%2C+Turk)
35. Hugo Touvron, Thibaut Lavril, Gautier Izacard, Xavier Martinet, Marie-Anne Lachaux, Timothée Lacroix, Baptiste Rozière, Naman Goyal, Eric Hambro, Faisal Azhar, Aurelien Rodriguez, Armand Joulin, Edouard Grave, and Guillaume Lample. 2023a. Llama: Open and efficient foundation language models. [↗](https://doi.org/10.48550/arxiv.2302.13971)
36. Hugo Touvron, Louis Martin, Kevin Stone, Peter Albert, Amjad Almahairi, Yasmine Babaei, Nikolay Bashlykov, Soumya Batra, Prajjwal Bhargava, Shruti Bhosale, Dan Bikel, Lukas Blecher, Cristian Canton Ferrer, Moya Chen, Guillem Cucurull, David Esiobu, Jude Fernandes, Jeremy Fu, Wenyin Fu, Brian Fuller, Cynthia Gao, Vedanuj Goswami, Naman Goyal, Anthony Hartshorn, Saghar Hosseini, Rui Hou, Hakan Inan, Marcin Kardas, Viktor Kerkez, Madian Khabsa, Isabel Kloumann, Artem Korenev, Punit Singh Koura, Marie-Anne Lachaux, Thibaut Lavril, Jenya Lee, Diana Liskovich, Yinghai Lu, Yuning Mao, Xavier Martinet, Todor Mihaylov, Pushkar Mishra, Igor Molybog, Yixin Nie, Andrew Poulton, Jeremy Reizenstein, Rashi Rungta, Kalyan Saladi, Alan Schelten, Ruan Silva, Eric Michael Smith, Ranjan Subramanian, Xiaoqing Ellen Tan, Binh Tang, Ross Taylor, Adina Williams, Jian Xiang Kuan, Puxin Xu, Zheng Yan, Iliyan Zarov, Yuchen Zhang, Angela Fan, Melanie Kambadur, Sharan Narang, Aurelien Rodriguez, Robert Stojnic, Sergey Edunov, and Thomas Scialom. 2023b. Llama 2: Open foundation and fine-tuned chat models. [find](https://scholar.google.com/scholar?q=Hugo+Touvron%2C+Louis+Martin%2C+Kevin+Stone%2C+Peter+Albert%2C+Amjad+Almahairi%2C+Yasmine+Babaei%2C+Nikolay+Bashlykov%2C+Soumya+Batra%2C+Prajjwal+Bhargava%2C+Shruti+Bhosale%2C+Dan+Bikel%2C+Lukas+Blecher%2C+Cristian+Canton+Fe)
37. Lewis Tunstall, Edward Beeching, Nathan Lambert, Nazneen Rajani, Kashif Rasul, Younes Belkada, Shengyi Huang, Leandro von Werra, Clémentine Fourrier, Nathan Habib, Nathan Sarrazin, Omar Sanseviero, Alexander M. Rush, and Thomas Wolf. 2023. Zephyr: Direct distillation of lm alignment. [↗](https://doi.org/10.48550/arxiv.2310.16944)
38. Leandro von Werra, Younes Belkada, Lewis Tunstall, Edward Beeching, Tristan Thrush, Nathan Lambert, and Shengyi Huang. 2020. Trl: Transformer reinforcement learning. [https://github.com/huggingface/trl](https://github.com/huggingface/trl). [↗](https://github.com/huggingface/trl)
39. Chris Wendler, Veniamin Veselovsky, Giovanni Monea, and Robert West. 2024. Do llamas work in english? on the latent language of multilingual transformers. [find](https://scholar.google.com/scholar?q=Chris+Wendler%2C+Veniamin+Veselovsky%2C+Giovanni+Monea%2C+and+Robert+West%2E+2024%2E+Do+llamas+work+in+english%3F+on+the+latent+language+of+multilingual+transformers%2E)
40. Wenhao Zhu, Yunzhe Lv, Qingxiu Dong, Fei Yuan, Jingjing Xu, Shujian Huang, Lingpeng Kong, Jiajun Chen, and Lei Li. 2023. Extrapolating large language models to non-english by aligning languages. [↗](https://doi.org/10.48550/arxiv.2308.04948)
