Run this model with HF Jobs

Run ArthurZ/Inkling-2-Mini-metal-final 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/ArthurZ/Inkling-2-Mini-metal-final. 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/ArthurZ/Inkling-2-Mini-metal-final 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/ArthurZ/Inkling-2-Mini-metal-final. 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/ArthurZ/Inkling-2-Mini-metal-final. 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.
Inkling-2-Mini-metal-final / 0001-inkling-skip-u32-init.diff
ArthurZ's picture
ArthurZ HF Staff
Inkling-2-Mini Metal final: dense linears prequantized, 0 on-the-fly quantization
65ab95b verified
Raw History Blame Contribute Delete
872 Bytes
diff --git a/src/transformers/models/inkling2_loop/modeling_inkling2_loop.py b/src/transformers/models/inkling2_loop/modeling_inkling2_loop.py
index 32c576c..915a245 100644
--- a/src/transformers/models/inkling2_loop/modeling_inkling2_loop.py
+++ b/src/transformers/models/inkling2_loop/modeling_inkling2_loop.py
@@ -1309,6 +1309,10 @@ class Inkling2LoopPreTrainedModel(PreTrainedModel):
}
def _init_weights(self, module):
+ # A pre-quantized Metal checkpoint stores packed uint32 weights; do not run
+ # float initializers on them (Metal has no normal_ kernel for UInt32).
+ if any(p.dtype == torch.uint32 for p in module.parameters(recurse=False)):
+ return
super()._init_weights(module)
std = self.config.get_text_config().initializer_range
if isinstance(module, Inkling2LoopRelativePositionBias):