yujiepan's picture
Update requirements and remove sdk_version
b54bb96
---
title: HuggingFace Model Weight Inspector
emoji: 🔍
colorFrom: blue
colorTo: purple
sdk: gradio
app_file: app.py
pinned: false
---
# HuggingFace Model Weight Inspector
Inspect specific parameter tensors from any HuggingFace model without downloading the entire model.
## Features
- **List available keys**: View all parameter names in a model
- **Fetch specific tensors**: Download only the shard containing your parameter
- **Tensor statistics**: View shape, dtype, min/max/mean/std values
- **Memory efficient**: Uses safetensors memory-mapped loading
## Usage
1. Enter a HuggingFace model ID (e.g., `meta-llama/Llama-2-7b-hf`)
2. Click "List Available Keys" to see all parameters
3. Enter a parameter key (e.g., `model.embed_tokens.weight`)
4. Click "Fetch Parameter" to view tensor info