rust-ml-huggingface-porting

Official

Fix tensor naming when porting HuggingFace models

Authorgar-ai
Version1.0.0
Installs0

System Documentation

What problem does it solve?

Port HuggingFace models to Candle with correct tensor naming to prevent weight-loading and matmul errors during integration.

Core Features & Use Cases

  • Pattern catalog: Catalogs common tensor name patterns across HuggingFace families to identify naming mismatches.
  • Prefix-detection: Detects presence or absence of model prefix (model.) and adjusts paths accordingly.
  • Contiguity fixes: Guides how to enforce tensor contiguity before matmul to avoid runtime errors.
  • Use Case: Debugs weight loading in safetensors when converting models to Candle.

Quick Start

Use this skill to inspect a HuggingFace safetensors file and apply correct naming patterns to ensure Candle loads weights without error.

Dependency Matrix

Required Modules

None required

Components

Standard package

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: rust-ml-huggingface-porting
Download link: https://github.com/gar-ai/mallorn/archive/main.zip#rust-ml-huggingface-porting

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.