Run this model with HF Jobs

Run manu02/Jan-code-4b-bnb-4bit-nf4-dq 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/manu02/Jan-code-4b-bnb-4bit-nf4-dq. 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/manu02/Jan-code-4b-bnb-4bit-nf4-dq 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/manu02/Jan-code-4b-bnb-4bit-nf4-dq. 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.

Jan-code-4b (Quantized)

Description

This model is a 4-bit quantized version of the original janhq/Jan-code-4b model, optimized for reduced memory usage while maintaining performance.

Quantization Details

  • Quantization Type: 4-bit
  • bnb_4bit_quant_type: nf4
  • bnb_4bit_use_double_quant: True
  • bnb_4bit_compute_dtype: bfloat16
  • bnb_4bit_quant_storage: uint8
  • Original Footprint: 8044.94 MB (BFLOAT16)
  • Quantized Footprint: 3372.88 MB (UINT8)
  • Memory Reduction: 58.1%

Usage

from transformers import AutoModel, AutoTokenizer

model_name = "Jan-code-4b-bnb-4bit-nf4"
model = AutoModel.from_pretrained(
    "manu02/Jan-code-4b-bnb-4bit-nf4",
)
tokenizer = AutoTokenizer.from_pretrained("manu02/Jan-code-4b-bnb-4bit-nf4", use_fast=True)
Downloads last month
11
Safetensors
Model size
4B params
Tensor type
BF16
·
U8
·
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support

Model tree for manu02/Jan-code-4b-bnb-4bit-nf4-dq

Quantized
(12)
this model