CodeGemma - an official Google release for code LLMs
CodeGemma is a family of Gemma-based code models from Google: a 2B base model trained only on fill-in-the-middle infilling for fast, low-latency completion, a 7B base model mixing infilling (80%) with natural language, and a 7B instruct model for conversational coding. All have an 8K context and were trained on an extra 500B tokens. CodeGemma 7B beats most 7B peers except DeepSeek-Coder-7B on HumanEval and MultiPL-E. Practical usage covers the FIM prompt tokens, stopping generation on FIM/file-separator terminators to avoid verbose trailing output, precision choices (bfloat16 vs float16), and 4-bit loading at about 9 GB.
Related posts
- Code Llama: Llama 2 learns to code
Hugging Face mediumAdeptCode Llama is a family of 7B, 13B and 34B Llama 2 derivatives trained on 500B tokens of code. It comes in base, Python-specialized and instruction-tuned variants, has a 16k training context that extrapolates to 100k via RoPE frequency scaling, and supports fill-in-the-middle infilling in the 7B and 13B models. Hugging Face integration starts at transformers 4.33, with code for completion, infilling with the <FILL_ME> token, the Llama 2 chat prompt template, and 4-bit bitsandbytes loading. Recommended setup is float16 for inference and bfloat16 for fine-tuning, plus GPU sizing guidance for TGI/Inference Endpoints and HumanEval/MultiPL-E evaluation.
- Code Llama: Meta’s state-of-the-art LLM for coding
Meta Engineering easyNoviceCode Llama is a code-specialized family of Llama 2 models, built by further training Llama 2 on 500B tokens of code (1T for the 70B model). It ships in 7B, 13B, 34B and 70B sizes, as base, Python-specialized and instruction-tuned variants. The 7B and 13B models support fill-in-the-middle for code completion and are suited to low-latency use. The larger models give better results, and all models handle up to 100K tokens of context despite training on 16K sequences. Code Llama 34B scored 53.7% on HumanEval and 56.2% on MBPP, on par with ChatGPT. The models are free for research and commercial use, and the Instruct variants are recommended for code generation.
- Welcome Gemma 3: Google's all new multimodal, multilingual, long context open LLM
Hugging Face mediumAdeptGemma 3 is Google's open-weight model family in 1B, 4B, 12B and 27B sizes, with 128k context (32k for 1B), image input via a SigLIP encoder on the 4B and larger models, and support for 140+ languages. Long context comes from pretraining at 32k and then scaling to 128k with RoPE base frequency raised to 1M. KV cache size is cut by interleaving 5 local sliding-window layers (window 1024) per global layer. Images get bidirectional attention and "pan and scan" cropping, and a 262K-entry SentencePiece tokenizer improves CJK encoding. The 27B IT model scores 1339 Elo on Chatbot Arena, and the post includes inference code for transformers, MLX, llama.cpp and HF Endpoints.
- Replit’s new AI Model now available on Hugging Face
Replit easyNoviceReplit Code V1.5 3B is an open code-completion model released on Hugging Face under a license that allows commercial use. It was trained on 1 trillion tokens of permissively licensed code from the Stack plus StackExchange content, covers 30 languages with a custom 32K vocabulary, and uses Grouped Query Attention, Flash Attention Triton kernels, ALiBi and the LionW optimizer. Replit reports leading HumanEval and MultiPL-E scores for its size, and a version fine-tuned on Replit user code outperforms CodeLlama 7B. A transformers snippet shows how to load the model and generate code with sampling parameters.
- StarCoder2-Instruct: Fully Transparent and Permissive Self-Alignment for Code Generation
Hugging Face hardMasterStarCoder2-15B-Instruct is instruction-tuned entirely on data generated by its own base model, with no human annotations or distillation from proprietary LLMs. The pipeline filters 5M docstring-bearing Python functions from The Stack v1 down to 250k seeds using Pyright type checking, decontamination, LLM-judged docstring quality and MinHash deduplication. It then has the model extract code concepts and write 238k instructions, and keeps only responses that pass self-generated tests executed in a sandbox, ending with 50k SFT pairs. The model scores 72.6 on HumanEval, beating CodeLlama-70B-Instruct, and outperforms a GPT-4-distilled variant on LiveCodeBench, suggesting models learn better from in-distribution self-generated data.