Lokaler LM-Studio-Adapter fuer Gemma und Qwen (Skill 10.1.0)
Der TensorX-Wrapper wird providerneutral: opencode-tensorx-adapter.py heisst
jetzt opencode-adapter.py und waehlt ueber --provider {tensorx,lmstudio}
Gateway und Modellvorlage. Der TensorX-Pfad bleibt unveraendert; die vier
bestehenden Regressionstests laufen durch.
Neu fuer den lokalen Betrieb:
- opencode-lmstudio.json fuer google/gemma-4-e4b und qwen/qwen3.8-27b
- Preflight ueber /api/v0/models: Servererreichbarkeit, Modellverfuegbarkeit,
tool_use-Faehigkeit, geladenes Kontextfenster (--min-context, Standard 32768)
und genau eine geladene Instanz; --lmstudio-autoload stellt das selbst her
- local_runtime in RawResult.json (Quantisierung, Architektur, Runtime,
lms-Version, Instanzbezeichner, Kontextfenster) fuer Kap. 4.3
- effort_applied, da der lokale Endpunkt keinen Thinking-Level annimmt
Drei Befunde aus der Inbetriebnahme, alle im Adapter abgefangen: LM Studio
laedt standardmaessig nur 8192 Kontexttokens; ein erneutes lms load erzeugt
eine zweite Instanz und macht das Routing mehrdeutig; Effort ist lokal
wirkungslos. Dazu zwei Korrekturen am gemeinsamen Pfad (Abbruchgrund nur
einmal in errors, saubere lms-Versionskennung).
Enthaelt ausserdem die bislang nicht committeten Laeufe der Iterationen 8
und 9 sowie Versuch 2 (Iterationen 1 bis 3). Der laufende Lauf unter
Iteration 10 ist bewusst nicht enthalten.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 5
parent
b369e6115e
commit
611fd0a80c
@@ -0,0 +1,42 @@
|
||||
$ErrorActionPreference = 'Continue'
|
||||
$root = 'c:\DEV\MasterArbeit\QuellCode\CentronERP'
|
||||
$lauf = (Get-Content 'c:\DEV\MasterArbeit\Versuche\Versuch_02\_aktueller_lauf.txt' -Raw).Trim()
|
||||
$agents = (Get-Content 'c:\DEV\MasterArbeit\Versuche\Versuch_02\03_Agents.json' -Raw)
|
||||
$claude = Get-ChildItem "$env:USERPROFILE\.vscode\extensions\anthropic.claude-code-*-win32-x64\resources\native-binary\claude.exe" |
|
||||
Sort-Object FullName | Select-Object -Last 1 -ExpandProperty FullName
|
||||
|
||||
$denyBash = @(
|
||||
'Bash(rm:*)','Bash(rmdir:*)','Bash(mv:*)','Bash(cp:*)','Bash(dd:*)',
|
||||
'Bash(truncate:*)','Bash(chmod:*)','Bash(chown:*)','Bash(ln:*)','Bash(tee:*)',
|
||||
'Bash(sed -i:*)','Bash(git checkout:*)','Bash(git restore:*)','Bash(git clean:*)',
|
||||
'Bash(git reset:*)','Bash(git add:*)','Bash(git commit:*)','Bash(git push:*)',
|
||||
'Bash(dotnet:*)','Bash(msbuild:*)','Bash(npm install:*)','Bash(nuget:*)'
|
||||
)
|
||||
$denyPs = @(
|
||||
'PowerShell(Remove-Item:*)','PowerShell(Move-Item:*)','PowerShell(Copy-Item:*)',
|
||||
'PowerShell(New-Item:*)','PowerShell(Set-Content:*)','PowerShell(Add-Content:*)',
|
||||
'PowerShell(Clear-Content:*)','PowerShell(Out-File:*)','PowerShell(Set-ItemProperty:*)',
|
||||
'PowerShell(dotnet:*)','PowerShell(msbuild:*)'
|
||||
)
|
||||
# Modus custom: KEIN --safe-mode (es deaktiviert die Agentenrollen). Ersatz nach Skill 7.0.0:
|
||||
$denyCustom = @('Skill','WebSearch','WebFetch','SlashCommand')
|
||||
|
||||
$env:CLAUDE_CODE_PRINT_BG_WAIT_CEILING_MS = '0'
|
||||
Set-Content -Path "$lauf\_meta\startzeit.txt" -Value (Get-Date -Format o)
|
||||
Set-Location $root
|
||||
|
||||
Get-Content "$lauf\_meta\combined_prompt.md" -Raw |
|
||||
& $claude -p `
|
||||
--output-format json `
|
||||
--strict-mcp-config `
|
||||
--permission-mode acceptEdits `
|
||||
--allowedTools "Bash" "PowerShell" `
|
||||
--disallowedTools @($denyBash + $denyPs + $denyCustom) `
|
||||
--model claude-opus-5 `
|
||||
--effort medium `
|
||||
--agents $agents `
|
||||
--add-dir "$lauf" `
|
||||
2> "$lauf\Stderr.log" | Set-Content "$lauf\RawResult.json"
|
||||
|
||||
Set-Content -Path "$lauf\_meta\endzeit.txt" -Value (Get-Date -Format o)
|
||||
Set-Content -Path "$lauf\_meta\exitcode.txt" -Value $LASTEXITCODE
|
||||
Reference in New Issue
Block a user