StarCoder or Code Llama: which base to fine-tune on

Neither line has been updated in a while, with last releases in April 2024 and January 2024, so today both are taken as a base for fine-tuning more often than as a working model. StarCoder starts at 1B, runs on a CPU and was trained on an open source-code set with an option to exclude your own repository; the BigCode OpenRAIL-M license permits commercial use but comes with a list of prohibited applications. Code Llama is Llama 2 further trained on code: sizes from 7B to 70B, a GPU required, the Llama 2 Community License with restrictions, and plenty of existing fine-tunes and tooling around it. The catalog claims Russian support for neither.

Comparison based on catalog data

ParameterStarCoderCode Llama
CategoryCodeCode
DeveloperBigCode (Hugging Face and ServiceNow), USA / FranceMeta, USA
ReleasesMay 2023 – Apr 2024Aug 2023 – Jan 2024
Sizes1B – 15B7B – 70B
HardwareLaptop, 1 GPULaptop, 1 GPU
Commercial useCommercial use with conditionsCommercial use with conditions
LicenseBigCode OpenRAIL-M (commercial use allowed, but there is a list of prohibited uses)Llama 2 Community License (commercial use allowed with restrictions)
RussianNot supportedNot supported
OllamaYesYes
Without GPUYesNo
Tasks
  • Code autocompletion in the editor
  • Fine-tuning on the company's internal code
  • Generating boilerplate code and tests
  • Code autocompletion and explanation
  • Generating Python scripts
  • Base model for fine-tuning on your own stack

Choose StarCoder if

  • You are fine-tuning on internal code and want a transparent training set
  • Hardware is modest: StarCoder starts at 1B and runs without a GPU
  • You need boilerplate and test generation inside the editor
StarCoder

Choose Code Llama if

  • You need up to 70B plus dedicated Python and chat variants
  • You rely on existing fine-tunes and tooling around Llama
  • The Llama 2 Community License terms work for you
Code Llama

Other comparisons

Need a model for your task?

An open model can run on your own server: data stays in-house, there is no per-request fee, and the model can be fine-tuned on your documents.

  1. SelectThe model and size for your task and hardware budget
  2. DeployOn your server or in a closed network, with an API
  3. Fine-tuneOn your data, or connect a knowledge base
  4. IntegrateInto your CRM, ERP, bot, website or team chat
Discuss deployment