sebastiangrebe commited on
Commit
c6c83ac
·
verified ·
1 Parent(s): 5a04fb0

Org card: lead with the consultancy, then the inference work

Browse files
Files changed (1) hide show
  1. README.md +46 -28
README.md CHANGED
@@ -9,56 +9,74 @@ pinned: false
9
 
10
  # SG Systems
11
 
12
- On-device inference for Apple Silicon. We work on the two constraints that
13
- actually decide whether a model runs on a laptop or a phone:
14
 
15
- **Capacity** — a 7B model at fp16 is 15.5 GB; Apple platforms terminate a
16
- process near ~3.7 GB. Closing a 4x gap means deciding which weights can be
17
- destroyed and which cannot.
18
 
19
- **Bandwidth** — once the weights fit, throughput depends on whether the compute
20
- maps onto the hardware at all. Sequential state-space recurrences do not map
21
- onto matrix units by default, and mobile compilers fall back to scalar paths.
22
 
23
- Those are separate problems, and solving one does nothing for the other.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
24
 
25
  ## Projects
26
 
27
- **FORGE** — mixed-precision post-training quantization. Not uniform low-bit:
28
- the result depends less on the average bit width than on which tensor families
29
- are excluded from it. Crushing a Mamba-2 state projection to ternary produces a
30
- model that is fluent and confidently wrong.
31
 
32
  **HELIX** — a Metal prefill kernel for the SSM scan in Mamba-2 hybrids,
33
  integrated into `llama.cpp` through a 42-line patch. Chunk-parallel
34
- decomposition; ~3x on the isolated op for the shapes upstream's fast path
35
- declines.
 
36
 
37
  ## Models
38
 
39
  | | |
40
  |---|---|
41
- | [`Falcon-H1-7B-FORGE-v2`](https://huggingface.co/sgsystems/Falcon-H1-7B-FORGE-v2) | `Falcon-H1-7B-Instruct` at 2.06 bpw / 3.48 GB. Runs on Apple Silicon in 3.73 GB resident at 75 tok/s decode. |
42
 
43
- **Read the model card before using it.** This one needs `repeat_last_n = 2048`
44
- — llama.cpp's default of 64 is too small to suppress the cross-turn repetition
45
- these models fall into, and shipping the usual sampling triple without it
46
- reproduces the bug.
47
 
48
  ## How we report numbers
49
 
50
- Measurements here come with the conditions attached, and with the cases that
51
- did not work.
52
-
53
- Some things we published that were not what we first assumed:
54
 
55
  - On M5, `simdgroup_matrix` at bf16 is **slower** than at fp32 (10.88 vs 16.12
56
  TFLOP/s). It is not the matrix hardware. Reduced precision only pays through
57
  `MetalPerformancePrimitives`, and only with both operands bf16.
58
  - Adding a repetition penalty did **not** fix our repetition loops. The penalty
59
- *window* did, and only above 2048 tokens. Within-turn repetition was 0% the
60
- whole time; the failure was cross-turn.
61
- - The quantized models still lose meta-instruction following. Direct
62
- instructions work; "repeat my first message" does not.
63
 
64
  Where a claim is not measured, we say so rather than rounding it up.
 
 
 
 
 
9
 
10
  # SG Systems
11
 
12
+ **Consulting & forward-deployed engineering for Southeast Asian applied AI.**
 
13
 
14
+ We embed senior engineers with client teams and ship working systems in weeks
15
+ rather than producing strategy decks. Fixed scope, outcome-based pricing, no
16
+ hourly billing.
17
 
18
+ Serving banking, insurance, fintech, healthcare, retail, government and
19
+ mid-market commerce across SEA — where a deployment has to be PDPA-compliant,
20
+ locally tuned, and native to the channels people actually use.
21
 
22
+ [sg-systems.co](https://www.sg-systems.co/)
23
+
24
+ ## Why we publish inference work
25
+
26
+ Regional deployment runs into two constraints that a general-purpose API does
27
+ not solve.
28
+
29
+ **Data residency.** PDPA and its neighbours make "send the customer's data to a
30
+ US endpoint" a compliance conversation before it is an engineering one.
31
+ Inference that never leaves the device sidesteps that conversation entirely.
32
+
33
+ **Hardware reality.** SEA deployments run on the devices people have, not on
34
+ datacentre accelerators. A model that needs 15 GB is not a product; one that
35
+ fits in 3.7 GB is.
36
+
37
+ So we work on making capable models run locally. What we publish here are the
38
+ artifacts and measurements from that work.
39
 
40
  ## Projects
41
 
42
+ **FORGE** — mixed-precision post-training quantization. The result depends less
43
+ on the average bit width than on which tensor families are excluded from it:
44
+ crushing a Mamba-2 state projection to ternary yields a model that is fluent and
45
+ confidently wrong.
46
 
47
  **HELIX** — a Metal prefill kernel for the SSM scan in Mamba-2 hybrids,
48
  integrated into `llama.cpp` through a 42-line patch. Chunk-parallel
49
+ decomposition; ~3x on the isolated op for shapes upstream's fast path declines.
50
+
51
+ Source: [github.com/sg-systems-co/forge-helix](https://github.com/sg-systems-co/forge-helix)
52
 
53
  ## Models
54
 
55
  | | |
56
  |---|---|
57
+ | [`Falcon-H1-7B-FORGE-v2`](https://huggingface.co/sgsystems/Falcon-H1-7B-FORGE-v2) | `Falcon-H1-7B-Instruct` at 2.06 bpw / 3.48 GB. Runs on Apple Silicon in 3.73 GB resident at 75 tok/s decode. **English only** — this is an engineering artifact from the compression work, not a SEA-language model. |
58
 
59
+ **Read the model card before using it.** It needs `repeat_last_n = 2048`;
60
+ llama.cpp's default of 64 is too small to suppress the cross-turn repetition
61
+ these models fall into, and the usual sampling triple without it reproduces the
62
+ bug.
63
 
64
  ## How we report numbers
65
 
66
+ Measurements come with their conditions attached, and with the cases that did
67
+ not work. Things we published that contradicted our own assumptions:
 
 
68
 
69
  - On M5, `simdgroup_matrix` at bf16 is **slower** than at fp32 (10.88 vs 16.12
70
  TFLOP/s). It is not the matrix hardware. Reduced precision only pays through
71
  `MetalPerformancePrimitives`, and only with both operands bf16.
72
  - Adding a repetition penalty did **not** fix our repetition loops. The penalty
73
+ *window* did, and only above 2048 tokens. Within-turn repetition was 0%
74
+ throughout; the failure was entirely cross-turn.
75
+ - The quantized model still loses meta-instruction following, and no perplexity
76
+ comparison against fp16 has been run.
77
 
78
  Where a claim is not measured, we say so rather than rounding it up.
79
+
80
+ ## Contact
81
+
82
+ sebastian@sg-systems.co