live: per-model dose calibration (exp50 lesson) + coherence guard
- dose_cap() table keyed by served model (4B:8, 14B:6, 32B:6, Mistral-24B:6, Samantha-70B-GPTQ:5), CHAMBER_DOSE_CAP env override; clamped at every entry: set_vec, mix dose-equivalent, /steer single+topic+mix+voice, /run, worker.py job input - repetition() 3-gram metric; generate() auto-retakes once at 0.6x dose when a sample reads as looping and there is headroom below - /health exposes dose_cap; live.html bounds its dose slider to it - worker run events carry model+layer (which model the endpoint actually serves is no longer invisible), done carries the repetition score
This commit is contained in:
1 parent
63abf380ab
commit
0d4595da31
3 files changed
+92
-19
No files matched your search
+11
-1
@@ -1341,7 +1341,17 @@ function pump(){
|
||||
|
||||
function boot(){
|
||||
fetch(`${API}/health`).then(r=>r.json()).then(d=>{
|
||||
if (d.ok){ pump(); return; }
|
||||
if (d.ok){
|
||||
// exp50: per-model coherent dose band — bound the sliders to the cap
|
||||
if (d.dose_cap){
|
||||
DOSES.length = 0;
|
||||
for (let x=0; x<=d.dose_cap; x+=2) DOSES.push(x);
|
||||
if (DOSES[DOSES.length-1] < d.dose_cap) DOSES.push(d.dose_cap);
|
||||
const sl = document.getElementById("topicDose");
|
||||
if (sl){ sl.max = d.dose_cap; if (+sl.value > d.dose_cap) sl.value = d.dose_cap; }
|
||||
}
|
||||
pump(); return;
|
||||
}
|
||||
slots.forEach(s=>{ s.st.textContent = "Pouyan is still waking up…"; });
|
||||
connState = "down"; connNote = "Pouyan is loading";
|
||||
retryAt = Date.now() + 5000;
|
||||
|
||||
Reference in new issue
Block a user