File size: 5,890 Bytes
c65f3dd
0c61687
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
c65f3dd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta http-equiv="Content-Security-Policy" content="default-src 'none'; script-src 'self'; style-src 'self'; img-src 'self' data:; connect-src https://huggingface.co https://*.huggingface.co https://*.hf.co; base-uri 'none'; form-action 'none'">
<meta name="referrer" content="no-referrer">
<meta name="description" content="Free, open-source provenance and risk check for Hugging Face models. Runs in your browser; no sign-in, no tracking.">
<meta name="color-scheme" content="light dark">
<title>Model Guard: check a Hugging Face model before you run it</title>
<link rel="icon" href="data:,">
<link rel="stylesheet" href="style.css">
<script src="app.js" defer></script>
</head>
<body>
<a class="skip" href="#repo">Skip to the model check</a>
<header>
  <h1><span aria-hidden="true">🛡️</span> Model Guard</h1>
  <p class="tag">Check a Hugging Face model's origin and risk signals before you download or run it. It's free and open source, and it runs entirely in your browser.</p>
  <aside class="disclaimer" aria-label="About the results">
    <p><strong>Good to know:</strong> <span id="disclaimer">A low risk score is not proof of safety.</span></p>
  </aside>
</header>
<main>
  <form id="form" autocomplete="off" novalidate>
    <div class="fields">
      <div class="field grow">
        <label for="repo">Model id or link</label>
        <input id="repo" name="repo" placeholder="e.g. Qwen/Qwen2.5-7B-Instruct" spellcheck="false" autocapitalize="off" aria-describedby="repo-hint" inputmode="url">
      </div>
      <div class="field rev">
        <label for="revision">Revision <span class="opt">(optional)</span></label>
        <input id="revision" name="revision" placeholder="main, tag or sha" spellcheck="false" autocapitalize="off">
      </div>
      <button id="go" type="submit">Check model</button>
    </div>
    <p id="repo-hint" class="hint">Paste an id like <code>owner/name</code> or a huggingface.co link. Nothing is downloaded except metadata and small files.</p>
    <p class="examples">Try:
      <a href="?repo=Qwen/Qwen2.5-7B-Instruct" data-example="Qwen/Qwen2.5-7B-Instruct">Qwen/Qwen2.5-7B-Instruct</a>
      <a href="?repo=mlabonne/NeuralDaredevil-8B-abliterated" data-example="mlabonne/NeuralDaredevil-8B-abliterated">mlabonne/NeuralDaredevil-8B-abliterated</a>
      <a href="?repo=THUDM/chatglm3-6b" data-example="THUDM/chatglm3-6b">THUDM/chatglm3-6b</a>
      <a href="?repo=mcpotato/42-eicar-street" data-example="mcpotato/42-eicar-street" title="A public test repo made to exercise scanners; it contains harmless test files">mcpotato/42-eicar-street <span class="muted">(scanner test repo)</span></a>
    </p>
  </form>
  <div class="statusline">
    <progress id="progress" max="1" value="0" hidden aria-label="Check progress"></progress>
    <p id="status" role="status" aria-live="polite"></p>
  </div>
  <section id="result" aria-live="off"></section>

  <section id="empty" class="empty">
    <h2>What you get</h2>
    <div class="cards3">
      <div class="card"><h3>Risk</h3><p>Hugging Face's own scan results, code-executing imports found by reading pickle files (never loading them), lookalike publisher names, credential-shaped text (shown redacted) and unusual chat templates.</p></div>
      <div class="card"><h3>Provenance</h3><p>Who published the model and how old the account is, which base model it declares (traced up to 5 steps back), and whether the weights and tensor layout match that base.</p></div>
      <div class="card"><h3>Worth a look</h3><p>Things that carry no points but deserve a read: custom code that needs <code>trust_remote_code</code>, patterns in that code, and legacy pickle copies.</p></div>
    </div>
  </section>

  <section class="about" aria-labelledby="about-h">
    <h2 id="about-h">How it works</h2>
    <ul>
      <li><strong>Risk (0–100)</strong> adds up concrete indicators. <strong>Provenance gap (0–100)</strong> measures how much of the model's origin can't be confirmed from public data. These are separate: a model can be low risk and still hard to trace.</li>
      <li><strong>Worth a look</strong> items and anything marked <em>for information</em> never add points. That includes abliterated or uncensored models. Changing safety tuning is a legitimate choice, so it's shown as information only.</li>
      <li>The findings describe public facts. They aren't accusations against publishers, and many flagged patterns are common in legitimate repos.</li>
    </ul>
    <h2>Limits</h2>
    <ul>
      <li>Static checks can't see behaviour hidden inside the weights, such as trigger-phrase backdoors.</li>
      <li>Pickle files up to 25 MB are read in full. Larger checkpoints are read from their first 1–8 MB. GGUF metadata is read from the first 4–24 MB of the smallest file.</li>
      <li>Gated and private files need sign-in. This page never asks for or sends a token, so those parts are skipped and marked as partial.</li>
      <li>Hugging Face rate-limits anonymous use. If you hit the limit, wait a minute.</li>
    </ul>
    <p>For CI checks, batch scans and JSON or Markdown reports, use the command-line tool and GitHub Action: <a href="https://github.com/model-guard/hf-model-guard" target="_blank" rel="noopener noreferrer">github.com/model-guard/hf-model-guard</a> (Apache-2.0).</p>
    <p class="privacy"><strong>Privacy:</strong> no analytics, trackers, cookies or third-party scripts. Your browser talks only to huggingface.co (and its hf.co file CDN for partial file reads). The model id you type isn't sent anywhere else.</p>
  </section>
</main>
<footer>Model Guard · Apache-2.0 · <a href="https://github.com/model-guard/hf-model-guard" target="_blank" rel="noopener noreferrer">Source and CLI</a></footer>
</body>
</html>