oxbyte8 commited on
Commit
51ad3e9
·
verified ·
1 Parent(s): 7fb132a

Publish initial SparkBotLLM Q4 preview and adaptation report

Browse files
.gitattributes CHANGED
@@ -33,3 +33,4 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
33
  *.zip filter=lfs diff=lfs merge=lfs -text
34
  *.zst filter=lfs diff=lfs merge=lfs -text
35
  *tfevents* filter=lfs diff=lfs merge=lfs -text
 
 
33
  *.zip filter=lfs diff=lfs merge=lfs -text
34
  *.zst filter=lfs diff=lfs merge=lfs -text
35
  *tfevents* filter=lfs diff=lfs merge=lfs -text
36
+ SparkBotLLM-1.7B-Q4_0.gguf filter=lfs diff=lfs merge=lfs -text
LICENSE ADDED
@@ -0,0 +1,71 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ LFM Open License v1.0
2
+
3
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
4
+
5
+ 1. Definitions.
6
+
7
+ "License" shall mean the terms and conditions for use, reproduction, and distribution as defined by this document.
8
+
9
+ "Licensor" shall mean Liquid AI, Inc.
10
+
11
+ "Legal Entity" shall mean the union of the acting entity and all other entities that control, are controlled by, or are under common control with that entity. For the purposes of this definition, "control" means (i) the power, direct or indirect, to cause the direction or management of such entity, whether by contract or otherwise, or (ii) ownership of fifty percent (50%) or more of the outstanding shares, or (iii) beneficial ownership of such entity.
12
+
13
+ "You" (or "Your") shall mean an individual or Legal Entity exercising permissions granted by this License.
14
+
15
+ "Source" form shall mean the preferred form for making modifications, including but not limited to software source code, documentation source, and configuration files.
16
+
17
+ "Object" form shall mean any form resulting from mechanical transformation or translation of a Source form, including but not limited to compiled object code, generated documentation, and conversions to other media types.
18
+
19
+ "Work" shall mean the work of authorship, whether in Source or Object form, made available under the License, as indicated by a copyright notice that is included in or attached to the work.
20
+
21
+ "Derivative Works" shall mean any work, whether in Source or Object form, that is based on (or derived from) the Work and for which the editorial revisions, annotations, elaborations, or other modifications represent, as a whole, an original work of authorship. For the purposes of this License, Derivative Works shall not include works that remain separable from, or merely link (or bind by name) to the interfaces of, the Work and Derivative Works thereof.
22
+
23
+ "Contribution" shall mean any work of authorship, including the original version of the Work and any modifications or additions to that Work or Derivative Works thereof, that is intentionally submitted to Licensor for inclusion in the Work by the copyright owner or by an individual or Legal Entity authorized to submit on behalf of the copyright owner. For the purposes of this definition, "submitted" means any form of electronic, verbal, or written communication sent to the Licensor or its representatives, including but not limited to communication on electronic mailing lists, source code control systems, and issue tracking systems that are managed by, or on behalf of, the Licensor for the purpose of discussing and improving the Work, but excluding communication that is conspicuously marked or otherwise designated in writing by the copyright owner as "Not a Contribution."
24
+
25
+ "Contributor" shall mean Licensor and any individual or Legal Entity on behalf of whom a Contribution has been received by Licensor and subsequently incorporated within the Work.
26
+
27
+ "Commercial Use" shall mean any use of the Work for direct or indirect commercial advantage or monetary compensation.
28
+
29
+ "Qualified Non-Profit Organization" shall mean a Legal Entity that is organized and operated exclusively for religious, charitable, scientific, testing for public safety, literary, or educational purposes, and which is exempt from federal income tax under Section 501(c)(3) of the United States Internal Revenue Code of 1986, as amended, or any equivalent non-profit or charitable organization in a foreign jurisdiction.
30
+
31
+ "Non-Commercial or Research Purposes" shall mean purposes that do not involve any use of the Work or a Derivative Work for Commercial Use.
32
+
33
+ "Threshold" shall mean annual revenue of 10 million United States dollars ($10,000,000) or more.
34
+
35
+ 2. Grant of Copyright License. Subject to the terms and conditions of this License, including the Commercial Use limitation set forth in Section 5, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable copyright license to reproduce, prepare Derivative Works of, publicly display, publicly perform, sublicense, and distribute the Work and such Derivative Works in Source or Object form.
36
+
37
+ 3. Grant of Patent License. Subject to the terms and conditions of this License, including the Commercial Use limitation set forth in Section 5, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable (except as stated in this section) patent license to make, have made, use, offer to sell, sell, import, and otherwise transfer the Work, where such license applies only to those patent claims licensable by such Contributor that are necessarily infringed by their Contribution(s) alone or by combination of their Contribution(s) with the Work to which such Contribution(s) was submitted. If You institute patent litigation against any entity (including a cross-claim or counterclaim in a lawsuit) alleging that the Work or a Contribution incorporated within the Work constitutes direct or contributory patent infringement, then any patent licenses granted to You under this License for that Work shall terminate as of the date such litigation is filed.
38
+
39
+ 4. Redistribution. You may reproduce and distribute copies of the Work or Derivative Works thereof in any medium, with or without modifications, and in Source or Object form, provided that You meet the following conditions:
40
+
41
+ (a) You must give any other recipients of the Work or Derivative Works a copy of this License; and
42
+
43
+ (b) You must cause any modified files to carry prominent notices stating that You changed the files; and
44
+
45
+ (c) You must retain, in the Source form of any Derivative Works that You distribute, all copyright, patent, trademark, and attribution notices from the Source form of the Work, excluding those notices that do not pertain to any part of the Derivative Works; and
46
+
47
+ (d) If the Work includes a "NOTICE" text file as part of its distribution, then any Derivative Works that You distribute must include a readable copy of the attribution notices contained within such NOTICE file, excluding those notices that do not pertain to any part of the Derivative Works, in at least one of the following places: within a NOTICE text file distributed as part of the Derivative Works; within the Source form or documentation, if provided along with the Derivative Works; or, within a display generated by the Derivative Works, if and wherever such third-party notices normally appear. The contents of the NOTICE file are for informational purposes only and do not modify the License. You may add Your own attribution notices within Derivative Works that You distribute, alongside or as an addendum to the NOTICE text from the Work, provided that such additional attribution notices cannot be construed as modifying the License.
48
+
49
+ You may add Your own copyright statement to Your modifications and may provide additional or different license terms and conditions for use, reproduction, or distribution of Your modifications, or for any such Derivative Works as a whole, provided Your use, reproduction, and distribution of the Work otherwise complies with the conditions stated in this License.
50
+
51
+ 5. Commercial Use Limitation.
52
+
53
+ (a) The rights granted under this License for Commercial Use are conditioned upon You or Your Legal Entity not exceeding the Threshold.
54
+
55
+ (b) Any Commercial Use of the Work or a Derivative Work by a Legal Entity that exceeds the Threshold is not licensed under this Agreement.
56
+
57
+ (c) The Threshold shall not apply to a Qualified Non-Profit Organization's use of the Work or a Derivative Work for Non-Commercial or Research Purposes.
58
+
59
+ 6. Submission of Contributions. Unless You explicitly state otherwise, any Contribution intentionally submitted for inclusion in the Work by You to the Licensor shall be under the terms and conditions of this License, without any additional terms or conditions. Notwithstanding the above, nothing herein shall supersede or modify the terms of any separate license agreement you may have executed with Licensor regarding such Contributions.
60
+
61
+ 7. Trademarks. This License does not grant permission to use the trade names, trademarks, service marks, or product names of the Licensor, except for the reasonable and customary use in describing the origin of the Work and reproducing the content of the NOTICE file.
62
+
63
+ 8. Disclaimer of Warranty. Unless required by applicable law or agreed to in writing, Licensor provides the Work (and each Contributor provides its Contributions) on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied, including, without limitation, any warranties or conditions of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A PARTICULAR PURPOSE. You are solely responsible for determining the appropriateness of using or redistributing the Work and assume any risks associated with Your exercise of permissions under this License.
64
+
65
+ 9. Limitation of Liability. In no event and under no legal theory, whether in tort (including negligence), contract, or otherwise, unless required by applicable law (such as deliberate and grossly negligent acts) or agreed to in writing, shall any Contributor be liable to You for damages, including any direct, indirect, special, incidental, or consequential damages of any character arising as a result of this License or out of the use or inability to use the Work (including but not limited to damages for loss of goodwill, work stoppage, computer failure or malfunction, or any and all other commercial damages or losses), even if such Contributor has been advised of the possibility of such damages.
66
+
67
+ 10. Accepting Warranty or Additional Liability. While redistributing the Work or Derivative Works thereof, You may choose to offer, and charge a fee for, acceptance of support, warranty, indemnity, or other liability obligations and/or rights consistent with this License. However, in accepting such obligations, You may act only on Your own behalf and on Your sole responsibility, not on behalf of any other Contributor, and only if You agree to indemnify, defend, and hold each Contributor harmless for any liability incurred by, or claims asserted against, such Contributor by reason of your accepting any such warranty or additional liability.
68
+
69
+ 11. Termination. This License will terminate automatically and immediately if You fail to comply with any of its terms and conditions. Upon termination, You must cease all use of the Work and any Derivative Works and delete all copies in Your possession.
70
+
71
+ END OF TERMS AND CONDITIONS
README.md ADDED
@@ -0,0 +1,35 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ library_name: peft
3
+ base_model: LiquidAI/LFM3-1.7B
4
+ tags: [dgx-spark, sparkbot, gguf, lora, text-generation]
5
+ license: other
6
+ license_name: lfm-open-license-v1
7
+ license_link: LICENSE
8
+ language: [en]
9
+ pipeline_tag: text-generation
10
+ ---
11
+ # SparkBotLLM 1.7B · initial preview
12
+
13
+ A local assistant for DGX Spark setup and local inference, adapted from LiquidAI LFM3 1.7B. Sparkbot supplies the live inspection tools, reviewed actions and dated support references. Model inference can run privately on CPU with a 4K context and one request at a time.
14
+
15
+ This is a small first adaptation, not a complete or continuously updated authority on NVIDIA hardware or new models. Use hardware tools for measurements and current primary sources for releases. Keep command review enabled.
16
+
17
+ ## Files and use
18
+
19
+ `SparkBotLLM-1.7B-Q4_0.gguf` is the merged, CPU-ready Q4_0 model with Q6_K token embeddings. The adapter files require the exact BF16 base revision `ac2586a34f1a1c03329dbdcdefabd8b6478ddaa7`; do not apply them to LiquidAI’s separate QAD quantized model. The GGUF embeds the original chat template. Disable thinking for short helper turns.
20
+
21
+ Run with a recent LFM3-capable llama.cpp server, for example:
22
+
23
+ ```sh
24
+ llama-server --model SparkBotLLM-1.7B-Q4_0.gguf --alias SparkBotLLM --host 127.0.0.1 --port 10004 --ctx-size 4096 --parallel 1 --threads 4 --n-gpu-layers 0 --jinja --chat-template-kwargs '{"enable_thinking":false}'
25
+ ```
26
+
27
+ ## Adaptation and checks
28
+
29
+ 242 authored synthetic support examples, 44 dated support references, LoRA rank 8/alpha 16, assistant-only loss, AdamW learning rate 0.00005. A 192-step run selected step 128 by lowest validation loss. Six domain validation examples were used for selection: mean loss fell from 4.62 to 3.32. They are not an independent test set. Five independent Q4 tool-routing smoke checks passed after export. These narrow checks do not establish broad factual accuracy, safety or reliability. Peak training CUDA allocation was 3.59 GiB. Reports are included.
30
+
31
+ The adaptation covers setup, troubleshooting, tool use and local inference concepts. Training examples do not contain the owner’s private chats or credentials. Knowledge can be stale; web retrieval is supplied by the application, not the weights. The 4K serving limit is intentional; long-context quality was not evaluated.
32
+
33
+ ## License and credits
34
+
35
+ Based on LiquidAI LFM3 1.7B. The retained LFM Open License v1.0 applies, including its commercial conditions. SparkBotLLM is an adaptation, not a model trained from scratch. LiquidAI supplies the base weights and architecture; PyTorch, Transformers and PEFT support training; llama.cpp supplies GGUF conversion and the CPU runtime. Reference summaries credit NVIDIA, Docker, TensorFold and model publishers in the Sparkbot dataset. Sparkbot is an independent project by x00byte.
SparkBotLLM-1.7B-Q4_0.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:43f01e19cf6df839f681456ca0d36017d59bb1d5e87159eef6c653b8e2a1d187
3
+ size 1049614880
adapter_config.json ADDED
@@ -0,0 +1,54 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "alora_invocation_tokens": null,
3
+ "alpha_pattern": {},
4
+ "arrow_config": null,
5
+ "auto_mapping": null,
6
+ "base_model_name_or_path": null,
7
+ "bias": "none",
8
+ "corda_config": null,
9
+ "ensure_weight_tying": false,
10
+ "eva_config": null,
11
+ "exclude_modules": null,
12
+ "fan_in_fan_out": false,
13
+ "inference_mode": true,
14
+ "init_lora_weights": true,
15
+ "kasa_config": null,
16
+ "layer_replication": null,
17
+ "layers_pattern": null,
18
+ "layers_to_transform": null,
19
+ "loftq_config": {},
20
+ "lora_alpha": 16,
21
+ "lora_bias": false,
22
+ "lora_dropout": 0,
23
+ "lora_ga_config": null,
24
+ "megatron_config": null,
25
+ "megatron_core": "megatron.core",
26
+ "modules_to_save": null,
27
+ "monteclora_config": null,
28
+ "peft_type": "LORA",
29
+ "peft_version": "0.21.2",
30
+ "qalora_group_size": 16,
31
+ "r": 8,
32
+ "rank_pattern": {},
33
+ "revision": null,
34
+ "target_modules": [
35
+ "in_proj",
36
+ "k_proj",
37
+ "w2",
38
+ "w1",
39
+ "gate_proj",
40
+ "out_proj",
41
+ "q_proj",
42
+ "o_proj",
43
+ "w3",
44
+ "v_proj"
45
+ ],
46
+ "target_parameters": null,
47
+ "task_type": "CAUSAL_LM",
48
+ "trainable_token_indices": null,
49
+ "use_bdlora": null,
50
+ "use_dora": false,
51
+ "use_qalora": false,
52
+ "use_rslora": false,
53
+ "velora_config": null
54
+ }
adapter_model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:5a7324d54ff27d92e91d9de7664b0700cd64d7ae8da240b72f5768aebe6f3637
3
+ size 32977888
quantized-checks.json ADDED
@@ -0,0 +1,102 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [
2
+ {
3
+ "prompt": "What is the GPU frequency on each machine right now?",
4
+ "expected": "read_gpu_clocks",
5
+ "passed": true,
6
+ "message": {
7
+ "role": "assistant",
8
+ "content": "<think></think>",
9
+ "tool_calls": [
10
+ {
11
+ "type": "function",
12
+ "function": {
13
+ "name": "read_gpu_clocks",
14
+ "arguments": "{}"
15
+ },
16
+ "id": "V47ssmH3ds0DTcN1RYqIHXhOi2JRu3lm"
17
+ }
18
+ ]
19
+ },
20
+ "seconds": 5.98
21
+ },
22
+ {
23
+ "prompt": "Show me the newest five language models on Hugging Face.",
24
+ "expected": "latest_models",
25
+ "passed": true,
26
+ "message": {
27
+ "role": "assistant",
28
+ "content": "<think></think>",
29
+ "tool_calls": [
30
+ {
31
+ "type": "function",
32
+ "function": {
33
+ "name": "latest_models",
34
+ "arguments": "{\"task\":\"text-generation\"}"
35
+ },
36
+ "id": "kc0MBjoJ2rLLQFNqC44inMsY5lFxPbGW"
37
+ }
38
+ ]
39
+ },
40
+ "seconds": 4.69
41
+ },
42
+ {
43
+ "prompt": "Check if this machine has working Docker GPU support.",
44
+ "expected": "check_setup",
45
+ "passed": true,
46
+ "message": {
47
+ "role": "assistant",
48
+ "content": "<think></think>",
49
+ "tool_calls": [
50
+ {
51
+ "type": "function",
52
+ "function": {
53
+ "name": "check_setup",
54
+ "arguments": "{}"
55
+ },
56
+ "id": "pI5fcGjxujqc416I6iutml9V3S5FiGaa"
57
+ }
58
+ ]
59
+ },
60
+ "seconds": 3.69
61
+ },
62
+ {
63
+ "prompt": "Which deployment profiles can I choose from?",
64
+ "expected": "list_recipes",
65
+ "passed": true,
66
+ "message": {
67
+ "role": "assistant",
68
+ "content": "<think></think>",
69
+ "tool_calls": [
70
+ {
71
+ "type": "function",
72
+ "function": {
73
+ "name": "list_recipes",
74
+ "arguments": "{}"
75
+ },
76
+ "id": "DFZCHHwtbizm5tl3BH1vHAD7H06rqKQ4"
77
+ }
78
+ ]
79
+ },
80
+ "seconds": 3.83
81
+ },
82
+ {
83
+ "prompt": "Inspect my machines and their memory.",
84
+ "expected": "inspect_sparks",
85
+ "passed": true,
86
+ "message": {
87
+ "role": "assistant",
88
+ "content": "<think></think>",
89
+ "tool_calls": [
90
+ {
91
+ "type": "function",
92
+ "function": {
93
+ "name": "inspect_sparks",
94
+ "arguments": "{}"
95
+ },
96
+ "id": "XhPjKQQlsfYpfnVqarXWYRAqREuA9mwu"
97
+ }
98
+ ]
99
+ },
100
+ "seconds": 3.9
101
+ }
102
+ ]
training-report.json ADDED
@@ -0,0 +1,89 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "baseModel": "LiquidAI/LFM3-1.7B",
3
+ "baseRevision": "ac2586a34f1a1c03329dbdcdefabd8b6478ddaa7",
4
+ "stepsCompleted": 192,
5
+ "requestedSteps": 192,
6
+ "selectedCheckpointStep": 128,
7
+ "selection": "Lowest domain validation loss; validation was used for checkpoint selection, not an independent final test.",
8
+ "trainingExamples": 242,
9
+ "heldoutDomainExamples": 6,
10
+ "seed": 20261030,
11
+ "loraRank": 8,
12
+ "learningRate": 5e-05,
13
+ "baseline": {
14
+ "heldoutLoss": 4.622275193532308,
15
+ "tools": [
16
+ {
17
+ "id": "read_gpu_clocks-heldout",
18
+ "expectedTool": "read_gpu_clocks",
19
+ "passed": true,
20
+ "response": "<tool_call>\n<function=read_gpu_clocks>\n</function>\n</tool_call><|im_end|>"
21
+ },
22
+ {
23
+ "id": "inspect_sparks-heldout",
24
+ "expectedTool": "inspect_sparks",
25
+ "passed": true,
26
+ "response": "<tool_call>\n<function=inspect_sparks>\n</function>\n</tool_call><|im_end|>"
27
+ },
28
+ {
29
+ "id": "check_setup-heldout",
30
+ "expectedTool": "check_setup",
31
+ "passed": true,
32
+ "response": "<tool_call>\n<function=check_setup>\n</function>\n</tool_call><|im_end|>"
33
+ },
34
+ {
35
+ "id": "list_recipes-heldout",
36
+ "expectedTool": "list_recipes",
37
+ "passed": true,
38
+ "response": "<tool_call>\n<function=list_recipes>\n</function>\n</tool_call><|im_end|>"
39
+ },
40
+ {
41
+ "id": "latest_models-heldout",
42
+ "expectedTool": "latest_models",
43
+ "passed": true,
44
+ "response": "<tool_call>\n<function=latest_models>\n<parameter=task>\ntext-generation\n</parameter>\n</function>\n</tool_call><|im_end|>"
45
+ }
46
+ ]
47
+ },
48
+ "candidate": {
49
+ "heldoutLoss": 3.3232267697652182,
50
+ "tools": [
51
+ {
52
+ "id": "read_gpu_clocks-heldout",
53
+ "expectedTool": "read_gpu_clocks",
54
+ "passed": true,
55
+ "response": "<tool_call>\n<function=read_gpu_clocks>\n</function>\n</tool_call><|im_end|>"
56
+ },
57
+ {
58
+ "id": "inspect_sparks-heldout",
59
+ "expectedTool": "inspect_sparks",
60
+ "passed": true,
61
+ "response": "<tool_call>\n<function=inspect_sparks>\n</function>\n</tool_call><|im_end|>"
62
+ },
63
+ {
64
+ "id": "check_setup-heldout",
65
+ "expectedTool": "check_setup",
66
+ "passed": true,
67
+ "response": "<tool_call>\n<function=check_setup>\n</function>\n</tool_call><|im_end|>"
68
+ },
69
+ {
70
+ "id": "list_recipes-heldout",
71
+ "expectedTool": "list_recipes",
72
+ "passed": true,
73
+ "response": "<tool_call>\n<function=list_recipes>\n</function>\n</tool_call><|im_end|>"
74
+ },
75
+ {
76
+ "id": "latest_models-heldout",
77
+ "expectedTool": "latest_models",
78
+ "passed": true,
79
+ "response": "<tool_call>\n<function=latest_models>\n<parameter=task>\ntext-generation\n</parameter>\n</function>\n</tool_call><|im_end|>"
80
+ }
81
+ ]
82
+ },
83
+ "stoppedReason": null,
84
+ "seconds": 132.38,
85
+ "cudaPeakGiB": 3.592775344848633,
86
+ "productionHelperChanged": false,
87
+ "published": false,
88
+ "limits": "Small synthetic pilot. Held-out loss and five routing checks do not establish broad factual accuracy or production quality."
89
+ }