Integrate Basalt telemetry and shared GPU speech runtimes

Publish the reviewed accumulated runtime, scheduler, profile, UI, native recipes and historical maintenance evidence. Includes Qwen GPU ASR correction and shared Anna/atelier ownership. Validated with 784 local tests, Python/JSON parsing and eight JavaScript syntax checks. Live GPU acceptance and full fresh-host restore limits remain documented.
This commit is contained in:
Mikei386 committed 2026-11-03 21:16:41 +01:00
1 parent 4e404d077d
commit c0bc5d3a1b
172 files changed
+52473 -147

No files matched your search

+7
View File
@@ -16,6 +16,13 @@ class DashboardDataTests(unittest.TestCase):
self.assertEqual(rows[0]['context_used'],107)
self.assertNotIn('prompt',rows[0])
def test_basalt_dashboard_does_not_collect_json_request_history_or_invent_rates(self):
import json
dashboard=Dashboard.__new__(Dashboard);dashboard.server=SimpleNamespace(worker=SimpleNamespace(status=lambda:{'runtime':'basalt'}))
responses={'/slots':json.dumps([{'id':0,'n_ctx':262144,'prompt_tokens':100,'state':'prefill','is_processing':True}]).encode(),'/props':b'{"total_slots":2,"model_alias":"test"}'}
dashboard._read_worker=Mock(side_effect=lambda p:responses[p]);result=dashboard.telemetry(True)
self.assertEqual(result['backend'],'basalt');self.assertEqual(result['phase'],'reading');self.assertIsNone(result['metrics']['prompt_tokens_seconds']);self.assertNotIn('tokens_predicted_total',result['metrics'])
self.assertIsNone(result['slots'][0]['decoded_tokens']);self.assertNotIn('/metrics',[x.args[0] for x in dashboard._read_worker.call_args_list])
def test_strata_compat_counters_and_live_whitelist(self):
self.assertEqual(metrics('strata:drafts_offered_total 100\nstrata:drafts_accepted_total 70'),dict(spec_decode_num_draft_tokens_total=100,spec_decode_num_accepted_tokens_total=70))
raw='strata:live_state{model_name="test",state="generating"} 1\nstrata:live_tok_s{model_name="test"} 72.5\nstrata:private_field 42\nstrata:live_prefill_tok_s_mean +Inf'