whatmodel.sh / Python-Code-13B

Python-Code-13B is an open-weights language model from ajibawa-2023, released November 2023. Its published size is 13.02B parameters. Licence: cc-by-nc-nd-4.0.

Catalogue identity notes

Maker repo ajibawa-2023/Python-Code-13B @f8a8fc8: licence tag cc-by-nc-nd-4.0. 13,015,866,880 parameters from the Hugging Face safetensors metadata (dense, so active = total). Released 2023-11: month the maker's Hugging Face repo was created (createdAt 2023-11-11).

34.0±0.9#815 of 949 LLMsfrom 2 benchmark results across 1 source* thinly tested, treat the rank as provisional

$ how it compares

The LLMs ranked either side of Python-Code-13B, out of 1132 with a score, then more from ajibawa-2023.

#modelscorewhereRAMreleased
981Llama 2 13B (base) Meta34±1local~9.3GB2023-07
982GPT-3.5 text-davinci-003 OpenAI34±3comparison only2022-11
983Python-Code-13B ajibawa-202334±1local~9.8GB2023-11
984Code Llama 7B (base) Meta34±1local~5.5GB2023-08
985Nous-Hermes-13b Nous Research34±2local~9.8GB2023-06
more from ajibawa-2023
753Code-290k-6.7B-Instruct ajibawa-202344±1local~5.8GB2024-02
836Code-13B (ajibawa-2023) ajibawa-202342±1local~9.8GB2023-12
852Code-33B (ajibawa-2023) ajibawa-202341±1local~22GB2023-12

see all LLMs · find the ones that fit your machine

$ what it's good at

coding▁▁▁▃▆██▇▆▄▃▁ #427 of 469 * · 100% of its score · 2 tests

Beats DeepSeek R1 Distill Qwen 7B, Qwen3.5 2B, DeepSeek R1 Distill Llama 8B here, though they rank higher overall. Trails Llama 3.2 1B Instruct, SmolLM2 1.7B Instruct, Granite 3B Code Base (2K) here, though they rank lower overall.

testresultvs the others in its rundifficultycountswhy
HumanEval32.9% ✎▁·▁▁▃▄▆▅█▃▁▁ beats 17/99easy · avg 79%▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇ 60%sharp · at its level
HumanEval+30.5% ✎▁·▁▁▁▃▄▄▄█▃▁ beats 21/99easy · avg 74%▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇ 40%sharp · at its level

$ where to run it

llama.cpp · recommended

version

  1. Install llama.cpp · Homebrew and winget installs name the commands llama-cli and llama-server instead.
    macOS / Linux
    curl -LsSf https://llama.app/install.sh | sh
    Windows
    irm https://llama.app/install.ps1 | iex

    other ways to install ↗

  2. Run Python-Code-13B · needs ~7.9 GB · from huggingface.co/TheBloke
    chat in the terminal
    llama cli -hf TheBloke/Python-Code-13B-GGUF:Q4_K_M
  3. Or start a local server and open the address it prints (http://localhost:9931)
    llama serve -hf TheBloke/Python-Code-13B-GGUF:Q4_K_M

LM Studio

version

  1. Install LM Studio · Open the app once before using the lms command.

    download it (macOS / Windows / Linux) ↗

  2. Run Python-Code-13B · needs ~7.9 GB · from huggingface.co/TheBloke

    open in LM Studio ↗

  3. Or download it in the terminal
    lms get https://huggingface.co/TheBloke/Python-Code-13B-GGUF@Q4_K_M -y
  4. Then run lms ls to see its name, and lms chat followed by that name

Ollama

version

  1. Install Ollama

    download it (macOS / Windows) ↗

    Linux
    curl -fsSL https://ollama.com/install.sh | sh
  2. Run Python-Code-13B · needs ~7.9 GB · from huggingface.co/TheBloke
    chat in the terminal
    ollama run hf.co/TheBloke/Python-Code-13B-GGUF:Q4_K_M

Other ways to run it

  1. Run it as published · needs ~26.03 GB · from huggingface.co/ajibawa-2023 (official)
    uv run --with torch --with 'transformers<5' --with accelerate python -c "from transformers import pipeline; print(pipeline('text-generation', model='ajibawa-2023/Python-Code-13B', torch_dtype='auto', device_map='auto')('Once upon a time', max_new_tokens=40)[0]['generated_text'])"

Official weights and documentation: huggingface.co/ajibawa-2023 ↗

$ how the score was worked out · EvalPlus / EvalPerf published… 100%

Each result implies a score on its own, after adjusting for how hard its test is and who ran it. The score is their weighted average, with a small pull toward the middle for thinly tested models. Each test's weight is its counts column above; here it's added up by who ran the tests. How it works

sourceresultsshare of the scorelicence
EvalPlus / EvalPerf published evaluation runs2▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇ 100%Apache-2.0
prior · pull toward the middle▇ 0%
weighted average= 34.0

$ improve this page

Use a short GitHub form or edit the data through a pull request. Every number needs a source; here's which ones we can use.

data updated · sources and licences · json