JetBrains / Mellum-4b-dpo-python

huggingface.co
Total runs: 115
24-hour runs: 0
7-day runs: 17
30-day runs: 74
Model's Last Updated: October 01 2025
text-generation

Introduction of Mellum-4b-dpo-python

Model Details of Mellum-4b-dpo-python

Model Description

Mellum-4b-dpo-python is the third stage of our pipeline (after pretraining and SFT), trained with direct preference optimization on code-quality preferences to produce more readable, useful code.

Pre-trained on over 4 trillion tokens with a context window of 8192 tokens across multiple programming languages, and then fine-tuned, Mellum-4b-dpo-python is tailored specifically for code completion in Python. The model follows a LLaMA-style architecture with 4 billion parameters, making it efficient for both cloud inference (e.g., via vLLM) and local deployment (e.g., using llama.cpp or Ollama).

Mellum was trained using Automatic Mixed Precision (AMP) with bf16 precision. The uploaded version on Hugging Face retains the bf16 format for public use.

Designed for integration into professional developer tooling (e.g., intelligent code suggestions in IDEs), AI-powered coding assistants, and research on code understanding and generation, Mellum is also well-suited for educational applications and fine-tuning experiments.

Limitations

  • Biases: May reflect biases present in public codebases. For example it will likely produce code which is similar in style to the open-source repositories.
  • Security: Code suggestions should not be assumed to be secure or free of vulnerabilities.

Sample Usage

Here is an example of how to run and sample from the model with additional files context and fill in the middle.

Fill in the middle with additional files as context generation
import json
from transformers import AutoTokenizer, AutoModelForCausalLM

example = """<filename>utils.py
def multiply(x, y):
    return x * y
<filename>config.py
DEBUG = True
MAX_VALUE = 100
<filename>example.py
<fim_suffix> 

# Test the function
result = calculate_sum(5, 10)
print(result)<fim_prefix>def calculate_sum(a, b):
<fim_middle>"""

tokenizer = AutoTokenizer.from_pretrained('JetBrains/Mellum-4b-dpo-python')
model = AutoModelForCausalLM.from_pretrained('JetBrains/Mellum-4b-dpo-python')
encoded_input = tokenizer(example, return_tensors='pt', return_token_type_ids=False)
out = model.generate(
    **encoded_input,
    max_new_tokens=100,
)

Citation

If you use this model, please cite:

@misc{Mellum-4b-dpo-python,
  title     = {Mellum-4b-dpo-python},
  author    = {Pavlichenko, Nikita and Nazarov, Iurii and Dolgov, Ivan and Garanina, Ekaterina and Lasocki, Karol and Reshetnikova, Julia and Boitsov, Sergei and Bondyrev, Ivan and Karaeva, Dariia and Sheptyakov, Maksim and Ustalov, Dmitry and Mukhin, Artem and Proshev, Semyon and Abramov, Nikita and Kolomyttseva, Olga and Lysaniuk, Kseniia and Zavidnyi, Ilia and Semenkin, Anton and Tankov, Vladislav and Sazanovich, Uladzislau},
  year      = {2025},
}

Contact

For questions, collaborations and requests reach us out via [email protected]

Runs of JetBrains Mellum-4b-dpo-python on huggingface.co

115
Total runs
0
24-hour runs
1
3-day runs
17
7-day runs
74
30-day runs

More Information About Mellum-4b-dpo-python huggingface.co Model

More Mellum-4b-dpo-python license Visit here:

https://choosealicense.com/licenses/apache-2.0

Mellum-4b-dpo-python huggingface.co

Mellum-4b-dpo-python huggingface.co is an AI model on huggingface.co that provides Mellum-4b-dpo-python's model effect (), which can be used instantly with this JetBrains Mellum-4b-dpo-python model. huggingface.co supports a free trial of the Mellum-4b-dpo-python model, and also provides paid use of the Mellum-4b-dpo-python. Support call Mellum-4b-dpo-python model through api, including Node.js, Python, http.

Mellum-4b-dpo-python huggingface.co Url

https://huggingface.co/JetBrains/Mellum-4b-dpo-python

JetBrains Mellum-4b-dpo-python online free

Mellum-4b-dpo-python huggingface.co is an online trial and call api platform, which integrates Mellum-4b-dpo-python's modeling effects, including api services, and provides a free online trial of Mellum-4b-dpo-python, you can try Mellum-4b-dpo-python online for free by clicking the link below.

JetBrains Mellum-4b-dpo-python online free url in huggingface.co:

https://huggingface.co/JetBrains/Mellum-4b-dpo-python

Mellum-4b-dpo-python install

Mellum-4b-dpo-python is an open source model from GitHub that offers a free installation service, and any user can find Mellum-4b-dpo-python on GitHub to install. At the same time, huggingface.co provides the effect of Mellum-4b-dpo-python install, users can directly use Mellum-4b-dpo-python installed effect in huggingface.co for debugging and trial. It also supports api for free installation.

Mellum-4b-dpo-python install url in huggingface.co:

https://huggingface.co/JetBrains/Mellum-4b-dpo-python

Url of Mellum-4b-dpo-python

Mellum-4b-dpo-python huggingface.co Url

Provider of Mellum-4b-dpo-python huggingface.co

JetBrains
ORGANIZATIONS

Other API from JetBrains