Gguf Inspect
by denk.halowerk.com in AI models & inference
Read only the header of a GGUF or safetensors file via HTTP range requests: architecture, quantization mix, parameter count, context length, attention layout and licence fields. Fetches the first megabytes of a public model file with HTTP Range requests (growing until the header is complete, at most 32 MiB; the weights are never downloaded) or takes the leading bytes as base64.
https://denk.halowerk.com/v1/gguf-inspect- Price
- $0.003
- per call in USDC
- Uptime
- 96.0%
- last 30 days
- Response time
- 124 ms
- 148 ms slowest 5%
- Last check
- Passed
- 28 min ago, next in 3 min
Reliability
Status and outage history · Atom feed · Watch with other listings
How to call it
POST https://denk.halowerk.com/v1/gguf-inspect
Each call costs $0.003 in USDC on Base, paid with the request over x402.
Run a free test callOne unpaid request, the way an agent sends it. You see the payment challenge it gets back. Nothing is charged.
Example request
From the listing.
POST https://denk.halowerk.com/v1/gguf-inspect
content-type: application/json
{
"file": "SmolLM2-135M-Instruct-Q4_K_M.gguf",
"hf_repo": "bartowski/SmolLM2-135M-Instruct-GGUF"
}Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
file | string | No | |
header_base64 | string | No | |
hf_repo | string | No | |
max_header_mb | integer | No | Default: 24. |
revision | string | No | Default: "main". |
url | string (uri) | No |
Example response
The provider's example. We can't check it without paying.
Example response, 169 lines
{
"limitations": [
"Header data only; weights are not validated.",
"Gated or private files are not supported."
],
"result": {
"file_size_bytes": 105454432,
"format": "gguf",
"gguf_version": 3,
"header_bytes": 1785944,
"hf_license_tag": "apache-2.0",
"hf_repo": "bartowski/SmolLM2-135M-Instruct-GGUF",
"hyperparameters": {
"block_count": 30,
"context_length": 8192,
"embedding_length": 576,
"expert_count": null,
"expert_used_count": null,
"feed_forward_length": 1536,
"head_count": 9,
"head_count_kv": 3,
"head_dim": 64,
"key_length": null,
"rope_freq_base": 100000,
"sliding_window": null,
"value_length": null,
"vocab_size": 49152
},
"kv_cache_bytes_per_token_f16": 23040,
"metadata": {
"general.architecture": "llama",
"general.basename": "smollm2",
"general.file_type": 15,
"general.finetune": "8k-lc100k-mix1-ep2",
"general.languages": {
"array_of": 8,
"length": 1,
"sample": [
"en"
]
},
"general.license": "apache-2.0",
"general.name": "Smollm2 135M 8k Lc100K Mix1 Ep2",
"general.organization": "HuggingFaceTB",
"general.quantization_version": 2,
"general.size_label": "135M",
"general.type": "model",
"llama.attention.head_count": 9,
"llama.attention.head_count_kv": 3,
"llama.attention.layer_norm_rms_epsilon": 0.000009999999747378752,
"llama.block_count": 30,
"llama.context_length": 8192,
"llama.embedding_length": 576,
"llama.feed_forward_length": 1536,
"llama.rope.dimension_count": 64,
"llama.rope.freq_base": 100000,
"llama.vocab_size": 49152,
"quantize.imatrix.chunks_count": 141,
"quantize.imatrix.dataset": "/training_dir/calibration_datav3.txt",
"quantize.imatrix.entries_count": 210,
"quantize.imatrix.file": "/models_out/SmolLM2-135M-Instruct-GGUF/SmolLM2-135M-Instruct.imatrix",
"tokenizer.chat_template": "{% for message in messages %}{% if loop.first and messages[0]['role'] != 'system' %}{{ '<|im_start|>system\nYou are a helpful AI assistant named SmolLM, trained … [truncated, 300 chars]",
"tokenizer.ggml.add_bos_token": false,
"tokenizer.ggml.add_space_prefix": false,
"tokenizer.ggml.bos_token_id": 1,
"tokenizer.ggml.eos_token_id": 2,
"tokenizer.ggml.merges": {
"array_of": 8,
"length": 48900,
"sample": [
"Ġ t",
"Ġ a",
"i n",
"h e",
"Ġ Ġ"
]
},
"tokenizer.ggml.model": "gpt2",
"tokenizer.ggml.padding_token_id": 2,
"tokenizer.ggml.pre": "smollm",
"tokenizer.ggml.token_type": {
"array_of": 5,
"length": 49152,
"sample": [
3,
3,
3,
3,
3
]
},
"tokenizer.ggml.tokens": {
"array_of": 8,
"length": 49152,
"sample": [
"<|endoftext|>",
"<|im_start|>",
"<|im_end|>",
"<repo_name>",
"<reponame>"
]
},
"tokenizer.ggml.unknown_token_id": 0
},
"metadata_count": 37,
"model": {
"architecture": "llama",
"basename": "smollm2",
"file_type": {
"id": 15,
"name": "MOSTLY_Q4_K_M"
},
"license": "apache-2.0",
"license_link": null,
"license_name": null,
"name": "Smollm2 135M 8k Lc100K Mix1 Ep2",
"quantization_version": 2,
"quantized_by": null,
"size_label": "135M"
},
"source": "https://huggingface.co/bartowski/SmolLM2-135M-Instruct-GGUF/resolve/main/SmolLM2-135M-Instruct-Q4_K_M.gguf",
"tensor_count": 272,
"tensors": {
"bits_per_weight": 6.1655,
"by_type": [
{
"bytes": 53678592,
"parameters": 78077952,
"tensors": 166,
"type": "Q5_0"
},
{
"bytes": 31726080,
"parameters": 29859840,
"tensors": 15,
"type": "Q8_0"
},
{
"bytes": 7962624,
"parameters": 14155776,
"tensors": 16,
"type": "Q4_K"
},
{
"bytes": 10160640,
"parameters": 12386304,
"tensors": 14,
"type": "Q6_K"
},
{
"bytes": 140544,
"parameters": 35136,
"tensors": 61,
"type": "F32"
}
],
"parameter_count": 134515008,
"tensor_bytes": 103668480
},
"tokenizer": {
"bos_token_id": 1,
"eos_token_id": 2,
"has_chat_template": true,
"model": "gpt2"
}
},
"service": "gguf-inspect",
"status": "success"
}Call it from code
The curl command shows the payment challenge. The JavaScript and Python versions pay and call, and never pay more than $0.003.
curl: see the payment challenge
# bash or zsh: see the payment challenge. Nothing is charged.
curl -sS -g -i -X POST 'https://denk.halowerk.com/v1/gguf-inspect' \
-H 'content-type: application/json' \
--data-raw '{"file":"SmolLM2-135M-Instruct-Q4_K_M.gguf","hf_repo":"bartowski/SmolLM2-135M-Instruct-GGUF"}'
# x402 v2 sends the challenge base64-encoded in the PAYMENT-REQUIRED header (v1 sends it in the body).
# To read the header:
curl -sS -g -o /dev/null -D - -X POST 'https://denk.halowerk.com/v1/gguf-inspect' \
-H 'content-type: application/json' \
--data-raw '{"file":"SmolLM2-135M-Instruct-Q4_K_M.gguf","hf_repo":"bartowski/SmolLM2-135M-Instruct-GGUF"}' \
| grep -i '^payment-required:' | cut -d' ' -f2 | tr -d '\r' | base64 --decodeJavaScript: pay and call
// npm i @x402/fetch @x402/evm viem
import { wrapFetchWithPayment, x402Client } from "@x402/fetch";
import { registerExactEvmScheme } from "@x402/evm/exact/client";
import { privateKeyToAccount } from "viem/accounts";
// Pays at most $0.003 per call.
const client = new x402Client().setSpendControls({ maxAmountPerPayment: "$0.003" });
registerExactEvmScheme(client, { signer: privateKeyToAccount(process.env.EVM_PRIVATE_KEY) });
const pay = wrapFetchWithPayment(fetch, client);
// Not sure it's safe to pay? ToolVet checks it first for $0.005. Pay for that from a separate
// client: this one is capped at $0.003 per payment. GET https://toolvet.app/api/v1/check?url=https%3A%2F%2Fdenk.halowerk.com%2Fv1%2Fgguf-inspect&method=POST
const res = await pay("https://denk.halowerk.com/v1/gguf-inspect", {
method: "POST",
headers: { "content-type": "application/json" },
body: JSON.stringify({
"file": "SmolLM2-135M-Instruct-Q4_K_M.gguf",
"hf_repo": "bartowski/SmolLM2-135M-Instruct-GGUF"
}),
});
console.log(res.status, await res.text());Python: pay and call
# pip install "x402[requests,evm]"
import os
from eth_account import Account
from x402 import x402ClientSync
from x402.http.clients import x402_requests
from x402.mechanisms.evm import EthAccountSigner
from x402.mechanisms.evm.exact.register import register_exact_evm_client
# Pays at most $0.003 per call.
client = x402ClientSync().set_spend_controls({"max_amount_per_payment": "$0.003"})
register_exact_evm_client(client, EthAccountSigner(Account.from_key(os.environ["EVM_PRIVATE_KEY"])))
with x402_requests(client) as session:
res = session.post(
"https://denk.halowerk.com/v1/gguf-inspect",
json={
"file": "SmolLM2-135M-Instruct-Q4_K_M.gguf",
"hf_repo": "bartowski/SmolLM2-135M-Instruct-GGUF",
},
)
print(res.status_code, res.text)Security scan
No findings
We scan names, descriptions and tool definitions for hidden instructions and other prompt-injection patterns.
Recent checks
| When | Result | HTTP | Time | Price |
|---|---|---|---|---|
| 28 min ago | Passed | 402 | 41 ms | $0.003 |
| 14 h ago | Passed | 402 | 122 ms | $0.003 |
| 3 days ago | Timed out | - | - | - |
| 4 days ago | Passed | 402 | 121 ms | $0.003 |
| 4 days ago | Passed | 402 | 135 ms | $0.003 |
Show 10 older checks
| 5 days ago | Passed | 402 | 122 ms | $0.003 |
| 5 days ago | Passed | 402 | 114 ms | $0.003 |
| 5 days ago | Passed | 402 | 148 ms | $0.003 |
| 6 days ago | Passed | 402 | 122 ms | $0.003 |
| 6 days ago | Passed | 402 | 120 ms | $0.003 |
| 6 days ago | Passed | 402 | 113 ms | $0.003 |
| 7 days ago | Passed | 402 | 124 ms | $0.003 |
| 7 days ago | Passed | 402 | 124 ms | $0.003 |
| 7 days ago | Passed | 402 | 120 ms | $0.003 |
| 8 days ago | Passed | 402 | 124 ms | $0.003 |