Skip to content

Commit 4547647

Browse files
committed
update project.
1 parent b6aacf9 commit 4547647

4 files changed

Lines changed: 783 additions & 442 deletions

File tree

.github/workflows/ci.yml

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches: [ main ]
6+
pull_request:
7+
branches: [ main ]
8+
9+
jobs:
10+
test:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- name: Checkout
14+
uses: actions/checkout@v4
15+
16+
- name: Set up Python
17+
uses: actions/setup-python@v5
18+
with:
19+
python-version: "3.12"
20+
21+
- name: Smoke Test (BERT model)
22+
run: |
23+
python entrypoint.py --repo-id bert-base-uncased
24+
env:
25+
HF_TOKEN: ${{ secrets.HF_TOKEN }}
26+
27+
docker:
28+
runs-on: ubuntu-latest
29+
needs: test
30+
steps:
31+
- name: Checkout
32+
uses: actions/checkout@v4
33+
34+
- name: Build Docker Action
35+
run: docker build -t hf-model-inspector .
36+
37+
- name: Run Action (entrypoint.py)
38+
run: |
39+
docker run --rm \
40+
-v ${{ github.workspace }}:/app \
41+
hf-model-inspector \
42+
python /app/entrypoint.py --repo-id moonshotai/Kimi-K2-Instruct-0905 --json
43+
44+
- name: Check outputs
45+
run: |
46+
ls -lh
47+
cat report.md

action.yml

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
name: "HF Model Inspector"
2-
description: "Inspect Hugging Face models (config, tokenizer, quantization, etc.) and output a summary"
1+
name: "🤗HF Model Inspector"
2+
description: "Inspect Hugging Face models (config, tokenizer, quantization, parameters, etc.) and generate a Markdown summary (JSON optional)."
33
author: "Your Name"
44
branding:
55
icon: "search"
@@ -10,12 +10,18 @@ inputs:
1010
description: "The Hugging Face model repository (e.g., openai/gpt-oss-20b)"
1111
required: true
1212
hf_token:
13-
description: "Hugging Face token (required for gated/private repos)"
13+
description: "Hugging Face access token (required for gated/private repos)"
1414
required: false
15+
json_output:
16+
description: "Set to true to also generate a JSON summary"
17+
required: false
18+
default: "false"
1519

1620
outputs:
17-
summary-path:
18-
description: "Path to the generated model summary file"
21+
summary-md:
22+
description: "Path to the generated Markdown report"
23+
summary-json:
24+
description: "Path to the JSON report (only if json_output=true)"
1925

2026
runs:
2127
using: "docker"

0 commit comments

Comments
 (0)