[whatmodel.sh](../../README.md) / Code Tulu 2 7B # Code Tulu 2 7B Allen Institute for AI · released 2023-11 · 7B params · AI2 ImpACT Low-risk; Llama 2 base terms **score 39.2** ±1.7 · #576 of 732 · from 5 benchmark results across 1 source · † no independently run results verified Score within the [LMArena (text)](https://whatmodel.sh/?set=lmarena-text&score=set) comparison set only. ## What it's good at ● marks Code Tulu 2 7B among every model on that task or test, worst to best.
task vs the others rank counts tests coding ▁▁▁▃●▇█▇▅▄▃▁ #388 of 469* 19% 1 math ▁▁▃▅●▆▄█▄▂▁▁ #321 of 431* 21% 1
test result vs the others in its run difficulty counts why Tulu 2: CodexEval pass@10 (maker) 68.9% ▃▃▃·▆▃▃●▃▂▂▅ beats 15/25 easy · avg 83% 19% sharp · at its level
test result vs the others in its run difficulty counts why GSM8K (maker) 33.0% ▆▂▅●▅▅▃▆···▂ beats 9/25 easy · avg 72% 21% sharp · at its level
test result vs the others in its run difficulty counts why BIG-Bench Hard (maker) 49.1% ▁·····▂●▂▅·▁ beats 11/25 easy · avg 74% 38% sharp · at its level MMLU (maker) 43.7% ▁▁▃●▄█▄▁█··▁ beats 5/25 medium · avg 73% 17% at its level Tulu 2: TyDiQA gold passage, 1-sh… 52.6% ▂··▁▃▂▂▂●▅▁▂ beats 16/25 medium · avg 59% 4.3% blunt · at its level
source results share of the score Tulu 2 (submitted / maker-reported) 5 99% ▇▇▇▇▇▇▇▇▇▇▇▇ prior: pull toward the middle 1% ▇ weighted average = 39.2Licences: Tulu 2 ([CC BY 4.0](../../licenses/CC-BY-4.0.txt)) ## How to run it ### Other ways to run it 1. Run it as published (BF16, needs ~13.48 GB, from [huggingface.co/allenai](https://huggingface.co/allenai/codetulu-2-7b/tree/99a3a11ee3320d52eae6cf5920c80e1d51d19a6e)) ```sh uv run --with torch --with 'transformers<5' --with accelerate python -c "from transformers import pipeline; print(pipeline('text-generation', model='allenai/codetulu-2-7b', torch_dtype='auto', device_map='auto')('Once upon a time', max_new_tokens=40)[0]['generated_text'])" ``` Model repository and documentation: [huggingface.co/allenai](https://huggingface.co/allenai/codetulu-2-7b) [interactive version](https://whatmodel.sh/model/code-tulu-2-7b) · [JSON](https://whatmodel.sh/api?format=json&all=1)