Atomic-Germ commited on
Commit
3f36a26
·
verified ·
1 Parent(s): f47fc40

flm-add is now available on PyPI

Browse files
Files changed (1) hide show
  1. README.md +95 -0
README.md ADDED
@@ -0,0 +1,95 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: mit
3
+ tags:
4
+ - fastflowlm
5
+ - npu2
6
+ - q4nx
7
+ ---
8
+
9
+ # You can install this with PyPI
10
+
11
+ (recommended) `uv tool install flm-add`
12
+ `pip install flm-add`
13
+
14
+ Install a pre-converted FLM (Q4NX) model and register it with
15
+ FastFlowLM.
16
+ ```
17
+ positional arguments:
18
+ repo Hugging Face repo id (Org/Name), ModelScope id
19
+ (with --modelscope), URL, or local directory
20
+
21
+ options:
22
+ -h, --help show this help message and exit
23
+ --tag TAG Registry tag (default: derived from the repo
24
+ name, e.g. qwen3.5-claude:9b)
25
+ --family FAMILY details.family for engine dispatch (default:
26
+ from matching official entry)
27
+ --config CONFIG model_list.json to update (default:
28
+ $FLM_CONFIG_PATH or
29
+ ~/.config/flm/model_list.json)
30
+ --models-root MODELS_ROOT
31
+ models directory (default: $FLM_MODEL_PATH or
32
+ ~/.config/flm/models)
33
+ --xclbin-dir XCLBIN_DIR
34
+ user xclbins directory (default:
35
+ ~/.config/flm/xclbins)
36
+ --xclbin-from XCLBIN_FROM
37
+ official model directory name to link xclbins
38
+ from (default: best match, e.g.
39
+ Qwen3.6-35B-A3B-NPU2)
40
+ --system-list SYSTEM_LIST
41
+ official model_list.json used for defaults
42
+ (default: auto-detect)
43
+ --modelscope Treat REPO as a ModelScope repo id
44
+ --no-xclbin Do not create the xclbins symlink
45
+ --no-verify Skip sha256 verification of downloads
46
+ --force Overwrite existing model files/links
47
+ --dry-run Print the plan and exit
48
+ --quiet Less output
49
+ ```
50
+
51
+ Example:
52
+ ```
53
+ $ flm-add Atomic-Germ/DynaGuard-4B-NPU2 --tag dynaguard:4b --family qwen3.5
54
+ [INFO] xclbins from official qwen3.5:4b
55
+ [INFO] Downloading model files from Hugging Face: Atomic-Germ/DynaGuard-4B-NPU2
56
+ Downloading config.json (0.00 GB)...
57
+ 100% (0.00 GB / 0.00 GB)
58
+ Downloading model.q4nx (3.29 GB)...
59
+ 0% (0.00 GB / 3.29 GB)
60
+ 5% (0.16 GB / 3.29 GB)
61
+ 10% (0.33 GB / 3.29 GB)
62
+ 15% (0.49 GB / 3.29 GB)
63
+ 20% (0.66 GB / 3.29 GB)
64
+ 25% (0.82 GB / 3.29 GB)
65
+ 30% (0.99 GB / 3.29 GB)
66
+ 35% (1.15 GB / 3.29 GB)
67
+ 40% (1.32 GB / 3.29 GB)
68
+ 45% (1.48 GB / 3.29 GB)
69
+ 50% (1.65 GB / 3.29 GB)
70
+ 55% (1.81 GB / 3.29 GB)
71
+ 60% (1.98 GB / 3.29 GB)
72
+ 65% (2.14 GB / 3.29 GB)
73
+ 70% (2.30 GB / 3.29 GB)
74
+ 75% (2.47 GB / 3.29 GB)
75
+ 80% (2.63 GB / 3.29 GB)
76
+ 85% (2.80 GB / 3.29 GB)
77
+ 90% (2.96 GB / 3.29 GB)
78
+ 95% (3.13 GB / 3.29 GB)
79
+ 100% (3.29 GB / 3.29 GB)
80
+ Downloading tokenizer.json (0.01 GB)...
81
+ 45% (0.01 GB / 0.01 GB)
82
+ 55% (0.01 GB / 0.01 GB)
83
+ 100% (0.01 GB / 0.01 GB)
84
+ Downloading tokenizer_config.json (0.00 GB)...
85
+ 100% (0.00 GB / 0.00 GB)
86
+ Downloading chat_template.jinja (0.00 GB)...
87
+ 100% (0.00 GB / 0.00 GB)
88
+ [INFO] Registered tag 'dynaguard:4b' in /home/atomic-germ/.config/flm/model_list.json
89
+ [INFO] Linked xclbins: /home/atomic-germ/.config/flm/xclbins/DynaGuard-4B-NPU2 -> /opt/fastflowlm/share/flm/xclbins/Qwen3.5-4B-NPU2
90
+
91
+ Done: DynaGuard-4B-NPU2 installed to /home/atomic-germ/.config/flm/models/DynaGuard-4B-NPU2
92
+ Run: flm run dynaguard:4b (or: flm serve dynaguard:4b)
93
+
94
+ FLM_CONFIG_PATH="$HOME/.config/flm/model_list.json" FLM_XCLBIN_PATH="$HOME/.config/flm" flm run dynaguard:4b
95
+ ```