LLM EXPLORER 60,384 MODELS INDEXED

Granite 8B Code Base 128K by ibm-granite

By ibm-granite · 57 downloads

Granite 8B Code Base 128K is an open-source language model by ibm-granite. Features: 8b LLM, VRAM: 16.2GB, Context: 125K, License: apache-2.0, LLM Explorer Score: 0.13.

  Arxiv:2405.04324   Code   Dataset:bigcode/starcoderdata Dataset:codeparrot/github-code...   Dataset:math-ai/stackmathqa Dataset:open-web-math/open-web...   Granite   Llama   Model-index   Region:us   Safetensors   Sharded   Tensorflow

Granite 8B Code Base 128K Parameters and Internals

Model Type 
text generation, code-related tasks
Use Cases 
Areas:
enterprise software engineering productivity
Applications:
code generation, code explanation, code fixing, generating unit tests, generating documentation, addressing technical debt issues, vulnerability detection, code translation
Primary Use Cases:
support for 128K context length tasks
Limitations:
Generated code is not guaranteed to work as intended., Has not undergone any safety alignment, potential for problematic outputs., Potential increased susceptibility to hallucination in smaller models.
Considerations:
Urge ethical use and responsibly check outputs for accuracy and reliability.
Supported Languages 
language_proficiency (/** languages and their proficiency levels **/), proficiencies (Python, C, C++, Go, Java, JavaScript, TypeScript)
Training Details 
Data Sources:
codeparrot/github-code-clean, bigcode/starcoderdata, open-web-math/open-web-math, math-ai/StackMathQA
Data Volume:
4B tokens
Methodology:
Continual pretraining and repository-level file packing with per-language length upsampling.
Context Length:
128000
Hardware Used:
NVIDIA A100 GPUs, NVIDIA H100 GPUs
Model Architecture:
Progressively adjusted RoPE theta
Responsible Ai Considerations 
Mitigation Strategies:
Caution urged against complete reliance on generated code; not undergone any safety alignment, could produce problematic outputs.
Release Notes 
Date:
July 18th, 2024
LLM NameGranite 8B Code Base 128K
Repository πŸ€—https://huggingface.co/ibm-granite/granite-8b-code-base-128k 
Model Size8b
Required VRAM16.2 GB
Updated2026-07-21
Maintaineribm-granite
Model Typellama
Model Files  5.0 GB: 1-of-4   4.9 GB: 2-of-4   5.0 GB: 3-of-4   1.3 GB: 4-of-4
Model ArchitectureLlamaForCausalLM
Licenseapache-2.0
Context Length128000
Model Max Length128000
Transformers Version4.41.0
Tokenizer ClassGPT2Tokenizer
Padding Token<|endoftext|>
Vocabulary Size49152
Torch Data Typebfloat16

Best Alternatives to Granite 8B Code Base 128K

Best Alternatives
Context / RAM
Downloads
Likes
...otron 8B UltraLong 4M Instruct4192K / 32.1 GB1135125
UltraLong Thinking4192K / 16.1 GB23
...a 3.1 8B UltraLong 4M Instruct4192K / 32.1 GB17624
...a 3.1 8B UltraLong 2M Instruct2096K / 32.1 GB8759
...otron 8B UltraLong 2M Instruct2096K / 32.1 GB12418
Cthulhu 8B V1.41048K / 16.1 GB1010
...raLong 1M Instruct Abliterated1048K / 32.1 GB49
...a 3.1 8B UltraLong 1M Instruct1048K / 32.1 GB138729
...otron 8B UltraLong 1M Instruct1048K / 32.1 GB70259
...xis Bookwriter Llama3.1 8B Sft1048K / 16.1 GB254
Note: green Score (e.g. "73.2") means that the model is better than ibm-granite/granite-8b-code-base-128k.