Skip to content
llmmodels

granite-8b-code-instruct-4k vs Llama-3.1-8B-Instruct

granite-8b-code-instruct-4k is made by IBM and Llama-3.1-8B-Instruct by Meta. See the full spec comparison below.

Specgranite-8b-code-instruct-4kLlama-3.1-8B-Instruct
ProviderIBMMeta
ReleasedApr 26, 2024Jul 23, 2024 (better)
TypeChat LLMChat LLM
Parameters8.1B8B
Context window—128K
Max output—16K
Input price / 1M—$0.02
Output price / 1M—$0.04
Input modalitiestexttext
Open weightsYesYes
Licenseapache-2.0llama3.1
Reasoning modeNoNo
Tool callingNoYes
API providers—19 (better)
Epoch Capabilities Index—110.9
GPQA Diamond—27.0%
OTIS Mock AIME—1.7%
MATH Level 5—22.9%
MMLU—56.1%
GSM8K—82.4%

About granite-8b-code-instruct-4k

granite-8b-code-instruct-4k is an open-weight chat llm from IBM, released Apr 26, 2024. It has 8.1B parameters. Full granite-8b-code-instruct-4k specs →

About Llama-3.1-8B-Instruct

Llama-3.1-8B-Instruct is an open-weight chat llm from Meta, released Jul 23, 2024. It has 8B parameters and a 128K-token context window. API pricing starts at $0.02 per million input tokens and $0.04 per million output tokens. It is available from 19 API providers. It scores 110.9 on the Epoch Capabilities Index. Full Llama-3.1-8B-Instruct specs →

Compare other models

FAQ

Which is better, granite-8b-code-instruct-4k or Llama-3.1-8B-Instruct?

granite-8b-code-instruct-4k is made by IBM and Llama-3.1-8B-Instruct by Meta. See the full spec comparison below.

Are granite-8b-code-instruct-4k and Llama-3.1-8B-Instruct open source?

granite-8b-code-instruct-4k is open-weight; Llama-3.1-8B-Instruct is open-weight.