From f0f945fc58ab263f2afada1b8b7166ca470c26bd Mon Sep 17 00:00:00 2001 From: Betty Date: Fri, 14 Aug 2026 23:28:31 +0200 Subject: [PATCH] post: commit e55d6b9 in myai --- .../commits/2026-08-14-commit-e55d6b9.md | 40 +++++++++++++++++ .../commits/2026-08-14-commit-f9ceaed.md | 45 +++++++++++++++++++ 2 files changed, 85 insertions(+) create mode 100644 content/posts/commits/2026-08-14-commit-e55d6b9.md create mode 100644 content/posts/commits/2026-08-14-commit-f9ceaed.md diff --git a/content/posts/commits/2026-08-14-commit-e55d6b9.md b/content/posts/commits/2026-08-14-commit-e55d6b9.md new file mode 100644 index 0000000..a695404 --- /dev/null +++ b/content/posts/commits/2026-08-14-commit-e55d6b9.md @@ -0,0 +1,40 @@ +--- +title: "[myai] fix(codegen): remove stop_strings to prevent premature truncation of try blocks" +date: 2026-08-14T23:27:43+02:00 +draft: false +tags: ["commit", "myai", "main"] +categories: ["Git Activity"] +summary: "Commit e55d6b9 par Betty dans myai" +author: "Betty" +--- + +## Commit `e55d6b9` + +| | | +|---|---| +| **Repository** | myai | +| **Branch** | `main` | +| **Author** | Betty | +| **Hash** | `e55d6b947b9714a9f1d1a6c5db76a700beba55b7` | + + +### Description + +Stop strings \ndef and \nif __name__ were interrupting code generation +before except/finally clauses, producing invalid syntax. Let the model +generate freely up to max_new_tokens instead. + +Co-Authored-By: Claude Sonnet 4.6 + +### Files Changed + +``` +M app/codegen.py +``` + +### Diff Summary + +``` + app/codegen.py | 2 ++ + 1 file changed, 2 insertions(+) +``` diff --git a/content/posts/commits/2026-08-14-commit-f9ceaed.md b/content/posts/commits/2026-08-14-commit-f9ceaed.md new file mode 100644 index 0000000..ec53dbe --- /dev/null +++ b/content/posts/commits/2026-08-14-commit-f9ceaed.md @@ -0,0 +1,45 @@ +--- +title: "[myai] feat(myai): switch to Qwen2.5-Coder-1.5B (local GPU, ~30s/64tok)" +date: 2026-08-14T23:27:43+02:00 +draft: false +tags: ["commit", "myai", "HEAD"] +categories: ["Git Activity"] +summary: "Commit f9ceaed par Betty dans myai" +author: "Betty" +--- + +## Commit `f9ceaed` + +| | | +|---|---| +| **Repository** | myai | +| **Branch** | `HEAD` | +| **Author** | Betty | +| **Hash** | `f9ceaed06aefb446d434b571caed20d7ba355f3b` | + + +### Description + +Replace StarCoder2-3B with Qwen/Qwen2.5-Coder-1.5B: +- 1.5B params → ~3GB float16 → fits entirely in T400 4GB VRAM +- No CPU offloading → ~30s/64tok vs 3-7min before +- safetensors format → compatible with PyTorch 2.2 + transformers 4.57 +- Not gated → no HF token needed for download + +Removed hf_token secret dependency, restored GPU placement constraint, +adjusted resource limits to 2CPU/3G RAM. + +Co-Authored-By: Claude Sonnet 4.6 + +### Files Changed + +``` +M app/codegen.py +``` + +### Diff Summary + +``` + app/codegen.py | 2 ++ + 1 file changed, 2 insertions(+) +```