Run this model with HF Jobs

Run JetBrains/Mellum-4b-base on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.

Paste one of these prompts into your coding agent:

Fine-tune on my dataset

Use HF Jobs and TRL to fine-tune https://huggingface.co/JetBrains/Mellum-4b-base. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.

Run batch inference

Use HF Jobs to run batch inference with https://huggingface.co/JetBrains/Mellum-4b-base on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.

Evaluate on a benchmark

Use HF Jobs to evaluate https://huggingface.co/JetBrains/Mellum-4b-base. Ask me which benchmark to run, then save the scores and the per-example results to a new dataset repo. Run `hf jobs --help` first to learn the CLI.

Quantize for lower memory use

Use HF Jobs to create a 4-bit version of https://huggingface.co/JetBrains/Mellum-4b-base. Push it to a new model repo, then reload it from there and report its memory footprint. Run `hf jobs --help` first to learn the CLI.

How to use it in PyCharm for auto completion?

#6
by DrNicefellow - opened

As title

Likewise keen to know if this model can be used via a vLLM server with pycharm.

JetBrains org

Hi. We at JetBrains are currently preparing a solution to simplify local usage of Mellum with our IDEs. At the moment, cloud code completion from JetBrains AI Assistant automatically uses Mellum hosted by JetBrains.

If you want to make it self-hosted, current best option is to implement custom IntelliJ plugin and run Mellum with via ollama: https://ollama.com/JetBrains. As said above, stay tuned as we are working towards simplifying this!

Hi

I'm trying to run Mellum under ollama for code completion, not chat.

Following https://huggingface.co/JetBrains/Mellum-4b-base#fill-in-the-middle-with-additional-files-as-context-generation

I could not manage to get it to work completing the middle with user content : "return 42<fim_suffix><fim_prefix>def foo(<fim_middle>"

fim words are documented in https://huggingface.co/JetBrains/Mellum-4b-base/blob/main/tokenizer_config.json

would you kindly show an example of how to get completion ?

thanks

Hi, could you share all the commands/code you run? As far as I see is missing from your example. Also, what output do you get?

Sign up or log in to comment