oxbyte8 commited on
Commit
21fa9ce
·
verified ·
1 Parent(s): cc77ef8

Introduce SparkBotLLM and its local AI setup workflow

Browse files
Files changed (3) hide show
  1. .gitattributes +1 -0
  2. README.md +60 -19
  3. assets/sparkbot.webp +3 -0
.gitattributes CHANGED
@@ -34,3 +34,4 @@ saved_model/**/* 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
 
 
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
37
+ assets/sparkbot.webp filter=lfs diff=lfs merge=lfs -text
README.md CHANGED
@@ -1,49 +1,90 @@
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
 
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
- SparkBotLLM helps you take the next step with your Spark: check a setup, understand a deployment requirement, or inspect a problem before changing anything. The surrounding Sparkbot dashboard gives it hardware inspection and terminal tools, with owner review for changes.
16
 
17
- For current releases, use discovery tools and primary sources. For live clocks, memory and Docker status, use hardware tools. The weights alone cannot inspect your machine.
 
18
 
19
- ## Getting started
20
 
21
- The model is designed for the [Sparkbot dashboard](https://github.com/x00byte/DGX-Sparkbot). The dashboard and website installation package are being prepared for release; the source repository is currently private. You can run the GGUF independently with a current LFM3-capable llama.cpp build using the command below. No Docker or GPU is required for CPU inference.
22
 
23
- Download the GGUF from **Files and versions**. It is approximately 1.05 GB. Start with a 4K context, four CPU threads and one request at a time. This keeps the helper small while your main model uses the GPU.
24
 
25
- ## Files and use
 
 
 
 
 
 
 
 
26
 
27
- `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.
28
 
29
- Run with a recent LFM3-capable llama.cpp server, for example:
 
 
 
 
 
 
 
 
 
 
30
 
31
  ```sh
32
- 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}'
 
 
 
 
 
 
33
  ```
34
 
35
- ## What changed
36
 
37
- The base model received a short supervised adaptation focused on DGX Spark support, local inference concepts and choosing the right inspection tool. The application also supplies a dated reference pack; that reference material can be updated independently of the model.
38
 
39
- SparkBotLLM is intended to explain requirements, diagnose issues and propose useful next steps. Shell access and deployment automation come from the host application, not from the model file itself.
40
 
41
- ## Adaptation and checks
42
 
43
- 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.
 
 
 
 
 
 
 
44
 
45
- 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.
 
 
 
 
 
 
46
 
47
  ## License and credits
48
 
49
- 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.
 
 
 
1
  ---
2
  library_name: peft
3
  base_model: LiquidAI/LFM3-1.7B
4
+ tags: [dgx-spark, sparkbot, gguf, lora, text-generation, local-ai]
5
  license: other
6
  license_name: lfm-open-license-v1
7
  license_link: LICENSE
8
  language: [en]
9
  pipeline_tag: text-generation
10
  ---
11
+ <div align="center">
12
+ <img src="assets/sparkbot.webp" alt="Sparkbot" width="220">
13
 
14
+ # SparkBotLLM
15
 
16
+ ### Your first local assistant. Built to help you run the next one.
17
 
18
+ [**Discover Sparkbot**](https://sparkbot.dev) · [**Download Q4**](https://huggingface.co/oxbyte8/SparkBotLLM-1.7B/tree/main) · [**LiquidAI base model**](https://huggingface.co/LiquidAI/LFM3-1.7B)
19
+ </div>
20
 
21
+ Getting a powerful model running locally should feel approachable. SparkBotLLM gives DGX Spark owners a small assistant to help them get there: understand their hardware, work through setup, choose a deployment profile and troubleshoot the next step.
22
 
23
+ It is the local assistant inside **[Sparkbot](https://sparkbot.dev)**, a dashboard for managing NVIDIA DGX Sparks. The idea is simple: start with a compact AI helper on your own machine, then use it to help deploy and manage larger local models. Beginners get clear guidance. Experienced users keep access to their terminal and configuration.
24
 
25
+ ## Small enough to stay alongside your main model
26
 
27
+ | | SparkBotLLM |
28
+ |---|---|
29
+ | Base | LiquidAI LFM3 1.7B |
30
+ | Download | Approximately 1.05 GB, Q4_0 GGUF |
31
+ | Default execution | Local CPU, four threads, one request at a time |
32
+ | Serving context | 4,096 tokens |
33
+ | Sparkbot runtime | 9.2 MB native CPU package; no Docker or PyTorch required |
34
+ | Helper endpoint | `127.0.0.1:10004` |
35
+ | Dashboard | Port `10005` |
36
 
37
+ CPU inference leaves GPU execution available for your main model. CPU work and unified-memory traffic still share the Spark’s resources. The dashboard caps its helper service at 3 GiB; that is a configured limit, not a claim of measured resident memory.
38
 
39
+ ## From a question to a useful next step
40
+
41
+ Inside Sparkbot, the assistant can use tools to inspect Docker support, GPU clocks, memory and connections; discover new models; explain deployment requirements; and propose terminal commands. Changes wait for owner approval. Administrator passwords are entered in the dashboard’s approval flow and are not sent to the model.
42
+
43
+ A typical journey is to check the Spark, resolve a missing dependency, select a bundled recipe, then monitor the running model and compare decode or prefill results. SparkBotLLM stays beside that workflow as local help.
44
+
45
+ **The dashboard supplies these tools and controls.** Running the model file alone gives you a chat model; it does not grant shell access, fetch current releases or deploy models by itself. Model inference runs locally. Downloads and online discovery contact their respective sources.
46
+
47
+ ## Run it today
48
+
49
+ Download `SparkBotLLM-1.7B-Q4_0.gguf` from **Files and versions**. It is public and needs no access request. Use a current LFM3-capable llama.cpp build:
50
 
51
  ```sh
52
+ llama-server \
53
+ --model SparkBotLLM-1.7B-Q4_0.gguf \
54
+ --alias SparkBotLLM \
55
+ --host 127.0.0.1 --port 10004 \
56
+ --ctx-size 4096 --parallel 1 --threads 4 \
57
+ --n-gpu-layers 0 --jinja \
58
+ --chat-template-kwargs '{"enable_thinking":false}'
59
  ```
60
 
61
+ The GGUF includes the chat template. Start with a 4K context and short, tool-assisted turns. The Sparkbot website package also includes a compact runtime and guided setup. **sparkbot.dev is the planned home; its hosting and domain connection are being prepared.** The model can already be downloaded and run independently.
62
 
63
+ ## What we adapted
64
 
65
+ SparkBotLLM received a short supervised LoRA adaptation focused on DGX Spark support, local inference and choosing the appropriate inspection tool. The training set contains **242 authored synthetic support examples**, informed by **44 dated support references**. It contains no private user chats or credentials.
66
 
67
+ Sparkbot also supplies relevant support references at runtime. This lets documentation evolve separately from the weights. Live hardware facts come from inspection tools; new software and model releases should come from current primary sources.
68
 
69
+ | Training detail | Value |
70
+ |---|---|
71
+ | Exact base revision | `ac2586a34f1a1c03329dbdcdefabd8b6478ddaa7` |
72
+ | LoRA | Rank 8, alpha 16 |
73
+ | Optimizer | AdamW, learning rate 0.00005 |
74
+ | Loss | Assistant tokens only |
75
+ | Selected checkpoint | Step 128 of a 192-step run |
76
+ | Peak CUDA allocation during training | 3.59 GiB |
77
 
78
+ The adapter was merged into that exact BF16 base before Q4_0 conversion, with Q6_K token embeddings. **Do not apply this adapter to LiquidAI’s separate QAD quantized checkpoint.**
79
+
80
+ ## Checks and practical limits
81
+
82
+ Six domain validation examples were used for checkpoint selection. Mean loss fell from **4.62 to 3.32**. Because they guided selection, these are validation results, not an independent final test. After Q4 export, **five independent tool-routing smoke checks passed**, covering hardware inspection, clocks, setup, recipes and model discovery. Reports are included in this repository.
83
+
84
+ These are narrow checks. They do not establish broad factual accuracy or reliable deployment automation. SparkBotLLM is a small model and can make mistakes. Keep command review enabled, verify important guidance, and use tools for live measurements. Long-context quality beyond the 4K serving profile has not been evaluated.
85
 
86
  ## License and credits
87
 
88
+ SparkBotLLM is an adaptation of **[LiquidAI LFM3 1.7B](https://huggingface.co/LiquidAI/LFM3-1.7B)**, not a model trained from scratch. The retained **[LFM Open License v1.0](LICENSE)** applies, including its commercial conditions.
89
+
90
+ LiquidAI supplies the base weights and architecture. PyTorch, Transformers and PEFT support training; llama.cpp supplies GGUF conversion and the compact CPU backend. Support references credit NVIDIA, Docker, TensorFold and the relevant model publishers. Sparkbot integration and supplied branding are by **x00byte**. Sparkbot is an independent project for DGX Spark owners, with no NVIDIA endorsement claimed.
assets/sparkbot.webp ADDED

Git LFS Details

  • SHA256: 61b1bc79baab9dd161184c85d61c2d4ac5eee009bfbb197eb723c802d94deba1
  • Pointer size: 131 Bytes
  • Size of remote file: 247 kB