Add measured SmolLM2 syntax reviewer and Member 1 evidence
myfileagent-python-ci/pipeline/head This commit looks good
myfileagent-python-ci/pipeline/head This commit looks good
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
{
|
||||
"source_commit": "5373351a7e7ac2bc0f34bae19c25383de3843ca7",
|
||||
"model_id": "fixture-model",
|
||||
"status": "corrected",
|
||||
"summary": "Added the missing closing parenthesis",
|
||||
"diff": "--- original.py\n+++ reviewed.py\n@@ -1 +1 @@\n-print(\"hello\"\n+print(\"hello\")\n",
|
||||
"input_tokens": 24,
|
||||
"output_tokens": 8,
|
||||
"schema_version": 1,
|
||||
"mode": "fixture"
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
print("hello")
|
||||
@@ -0,0 +1,3 @@
|
||||
print("hello")
|
||||
|
||||
|
||||
@@ -0,0 +1,9 @@
|
||||
review_exit=0
|
||||
memory_peak=234405888
|
||||
low 0
|
||||
high 0
|
||||
max 0
|
||||
oom 0
|
||||
oom_kill 0
|
||||
oom_group_kill 0
|
||||
container_exit=0 oom=false limit=250000000 swap=250000000
|
||||
@@ -0,0 +1,18 @@
|
||||
{
|
||||
"source_commit": "5373351a7e7ac2bc0f34bae19c25383de3843ca7",
|
||||
"model_id": "HuggingFaceTB/SmolLM2-135M-Instruct",
|
||||
"status": "corrected",
|
||||
"summary": "Added the missing closing parenthesis",
|
||||
"diff": "--- original.py\n+++ reviewed.py\n@@ -1 +1 @@\n-print(\"hello\"\n+print(\"hello\")\n",
|
||||
"input_tokens": 23,
|
||||
"output_tokens": 5,
|
||||
"schema_version": 1,
|
||||
"mode": "live",
|
||||
"started_at": "2026-11-27T02:50:52.216343Z",
|
||||
"finished_at": "2026-11-27T02:50:55.608664Z",
|
||||
"elapsed_seconds": 3.392288,
|
||||
"input_sha256": "9e600e31c44a6a8f4bec8948fb5d503a40472ed6632394fdda6f1814165f4909",
|
||||
"model_revision": "12fd25f77366fa6b3b4b768ec3050bf629380bac",
|
||||
"raw_response_file": "raw_response.txt",
|
||||
"runtime_response_file": "runtime_response.json"
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
print("hello")
|
||||
@@ -0,0 +1,11 @@
|
||||
{
|
||||
"prompt": "Input: print(\"hi\"\nOutput: print(\"hi\")\nInput: print(\"hello\"\nOutput:",
|
||||
"raw_stdout": " print(\"hello\")\n\n\n",
|
||||
"prompt_eval_tokens": 23,
|
||||
"sampler_total_tokens": 28,
|
||||
"output_tokens_method": "sampler_total_tokens - prompt_eval_tokens",
|
||||
"runtime_log_counter_lines": [
|
||||
"0.01.863.495 I common_perf_print: samplers time = 0.70 ms / 28 tokens",
|
||||
"0.01.863.506 I common_perf_print: prompt eval time = 373.99 ms / 23 tokens ( 16.26 ms per token, 61.50 tokens per second)"
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
image_id=sha256:ae14d4ce8771606477a81446e7ef429edd6762305fc50c84507c1041fa8285d1 repo_digests=["python@sha256:ae14d4ce8771606477a81446e7ef429edd6762305fc50c84507c1041fa8285d1"]
|
||||
@@ -0,0 +1,2 @@
|
||||
f68203bfb98b1b1e8c64fac75fab10c4e36acac081609573b4df0fcc19c90dd9 /tmp/ssw590-member1-runtime/SmolLM2-135M-Instruct.Q4_0.gguf
|
||||
c52fdce909b3e55b2e763e9a8b08b2b006281ebc5b5c6c8ea91e5d2075c8fd27 /tmp/ssw590-member1-runtime/llama-b12785-bin-ubuntu-x64.tar.gz
|
||||
@@ -0,0 +1,16 @@
|
||||
{
|
||||
"source_commit": "5373351a7e7ac2bc0f34bae19c25383de3843ca7",
|
||||
"model_id": null,
|
||||
"status": "error",
|
||||
"summary": "FileNotFoundError: review could not complete",
|
||||
"diff": "",
|
||||
"input_tokens": null,
|
||||
"output_tokens": null,
|
||||
"schema_version": 1,
|
||||
"mode": "live",
|
||||
"started_at": "2026-11-27T02:54:29.892888Z",
|
||||
"finished_at": "2026-11-27T02:54:29.902307Z",
|
||||
"elapsed_seconds": 0.009205,
|
||||
"input_sha256": "9e600e31c44a6a8f4bec8948fb5d503a40472ed6632394fdda6f1814165f4909",
|
||||
"diagnostic": "FileNotFoundError: model file missing"
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
print("hello")
|
||||
|
||||
|
||||
@@ -0,0 +1,9 @@
|
||||
review_exit=0
|
||||
memory_peak=252751872
|
||||
low 0
|
||||
high 0
|
||||
max 0
|
||||
oom 0
|
||||
oom_kill 0
|
||||
oom_group_kill 0
|
||||
container_exit=0 oom=false limit=400000000 swap=400000000
|
||||
@@ -0,0 +1,18 @@
|
||||
{
|
||||
"source_commit": "5373351a7e7ac2bc0f34bae19c25383de3843ca7",
|
||||
"model_id": "HuggingFaceTB/SmolLM2-135M-Instruct",
|
||||
"status": "corrected",
|
||||
"summary": "Added the missing closing parenthesis",
|
||||
"diff": "--- original.py\n+++ reviewed.py\n@@ -1 +1 @@\n-print(\"hello\"\n+print(\"hello\")\n",
|
||||
"input_tokens": 23,
|
||||
"output_tokens": 5,
|
||||
"schema_version": 1,
|
||||
"mode": "live",
|
||||
"started_at": "2026-11-27T02:49:21.951797Z",
|
||||
"finished_at": "2026-11-27T02:49:23.813683Z",
|
||||
"elapsed_seconds": 1.861456,
|
||||
"input_sha256": "9e600e31c44a6a8f4bec8948fb5d503a40472ed6632394fdda6f1814165f4909",
|
||||
"model_revision": "12fd25f77366fa6b3b4b768ec3050bf629380bac",
|
||||
"raw_response_file": "raw_response.txt",
|
||||
"runtime_response_file": "runtime_response.json"
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
print("hello")
|
||||
@@ -0,0 +1,11 @@
|
||||
{
|
||||
"prompt": "Input: print(\"hi\"\nOutput: print(\"hi\")\nInput: print(\"hello\"\nOutput:",
|
||||
"raw_stdout": " print(\"hello\")\n\n\n",
|
||||
"prompt_eval_tokens": 23,
|
||||
"sampler_total_tokens": 28,
|
||||
"output_tokens_method": "sampler_total_tokens - prompt_eval_tokens",
|
||||
"runtime_log_counter_lines": [
|
||||
"0.01.206.980 I common_perf_print: samplers time = 0.30 ms / 28 tokens",
|
||||
"0.01.207.091 I common_perf_print: prompt eval time = 162.90 ms / 23 tokens ( 7.08 ms per token, 141.19 tokens per second)"
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,35 @@
|
||||
|
||||
|
||||
Loading model...
|
||||
|
||||
▄▄ ▄▄
|
||||
██ ██
|
||||
██ ██ ▀▀█▄ ███▄███▄ ▀▀█▄ ▄████ ████▄ ████▄
|
||||
██ ██ ▄█▀██ ██ ██ ██ ▄█▀██ ██ ██ ██ ██ ██
|
||||
██ ██ ▀█▄██ ██ ██ ██ ▀█▄██ ██ ▀████ ████▀ ████▀
|
||||
██ ██
|
||||
▀▀ ▀▀
|
||||
|
||||
build : b12785-55d482814
|
||||
model : /tmp/ssw590-member1-runtime/SmolLM2-135M-Instruct.Q4_0.gguf
|
||||
ftype : Q4_0
|
||||
modalities : text
|
||||
|
||||
available commands:
|
||||
/exit or Ctrl+C stop or exit
|
||||
/regen regenerate the last response
|
||||
/clear clear the chat history
|
||||
/read <file> add a text file
|
||||
/glob <pattern> add text files using globbing pattern
|
||||
|
||||
|
||||
|
||||
> Repair the syntax of this Python line. Return only the corrected Python line, without markdown. Preserve the string and all behavior. Source: print("hello"
|
||||
```python
|
||||
def fix_s(s):
|
||||
return s.replace("hello", "world")
|
||||
|
||||
print
|
||||
|
||||
|
||||
Exiting...
|
||||
@@ -0,0 +1,23 @@
|
||||
Command being timed: "/tmp/ssw590-member1-runtime/llama-b12785/llama-cli -m /tmp/ssw590-member1-runtime/SmolLM2-135M-Instruct.Q4_0.gguf -p Repair the syntax of this Python line. Return only the corrected Python line, without markdown. Preserve the string and all behavior. Source: print("hello" -n 24 -c 256 -t 1 -tb 1 --temp 0 --seed 1 --single-turn --simple-io --no-display-prompt --no-warmup --cache-ram 0 --no-show-timings"
|
||||
User time (seconds): 1.63
|
||||
System time (seconds): 0.17
|
||||
Percent of CPU this job got: 51%
|
||||
Elapsed (wall clock) time (h:mm:ss or m:ss): 0:03.47
|
||||
Average shared text size (kbytes): 0
|
||||
Average unshared data size (kbytes): 0
|
||||
Average stack size (kbytes): 0
|
||||
Average total size (kbytes): 0
|
||||
Maximum resident set size (kbytes): 199624
|
||||
Average resident set size (kbytes): 0
|
||||
Major (requiring I/O) page faults: 103
|
||||
Minor (reclaiming a frame) page faults: 26576
|
||||
Voluntary context switches: 586
|
||||
Involuntary context switches: 1859
|
||||
Swaps: 0
|
||||
File system inputs: 208248
|
||||
File system outputs: 8
|
||||
Socket messages sent: 0
|
||||
Socket messages received: 0
|
||||
Signals delivered: 0
|
||||
Page size (bytes): 4096
|
||||
Exit status: 0
|
||||
@@ -0,0 +1 @@
|
||||
print("hello")
|
||||
@@ -0,0 +1,9 @@
|
||||
review_exit=0
|
||||
memory_peak=261754880
|
||||
low 0
|
||||
high 0
|
||||
max 0
|
||||
oom 0
|
||||
oom_kill 0
|
||||
oom_group_kill 0
|
||||
container_exit=0 oom=false limit=400000000 swap=400000000
|
||||
@@ -0,0 +1,18 @@
|
||||
{
|
||||
"source_commit": "5373351a7e7ac2bc0f34bae19c25383de3843ca7",
|
||||
"model_id": "HuggingFaceTB/SmolLM2-135M-Instruct",
|
||||
"status": "corrected",
|
||||
"summary": "Added the missing closing parenthesis",
|
||||
"diff": "--- original.py\n+++ reviewed.py\n@@ -1 +1 @@\n-print(\"hello\"\n+print(\"hello\")\n",
|
||||
"input_tokens": 23,
|
||||
"output_tokens": 5,
|
||||
"schema_version": 1,
|
||||
"mode": "live",
|
||||
"started_at": "2026-11-27T02:47:00.387748Z",
|
||||
"finished_at": "2026-11-27T02:47:08.610118Z",
|
||||
"elapsed_seconds": 8.222346,
|
||||
"input_sha256": "9e600e31c44a6a8f4bec8948fb5d503a40472ed6632394fdda6f1814165f4909",
|
||||
"model_revision": "12fd25f77366fa6b3b4b768ec3050bf629380bac",
|
||||
"raw_response_file": "raw_response.txt",
|
||||
"runtime_response_file": "runtime_response.json"
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
print("hello")
|
||||
@@ -0,0 +1,17 @@
|
||||
{
|
||||
"content": " print(\"hello\")",
|
||||
"timings": {
|
||||
"cache_n": 0,
|
||||
"prompt_n": 23,
|
||||
"prompt_ms": 237.676,
|
||||
"prompt_per_token_ms": 10.333739130434783,
|
||||
"prompt_per_second": 96.77039330853769,
|
||||
"predicted_n": 5,
|
||||
"predicted_ms": 164.39,
|
||||
"predicted_per_token_ms": 41.0975,
|
||||
"predicted_per_second": 24.332380315104327
|
||||
},
|
||||
"tokens_evaluated": 23,
|
||||
"tokens_predicted": 5,
|
||||
"stop": true
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
print("hello")
|
||||
@@ -0,0 +1,9 @@
|
||||
REVIEW_EXIT=0
|
||||
166805504
|
||||
low 0
|
||||
high 0
|
||||
max 0
|
||||
oom 0
|
||||
oom_kill 0
|
||||
oom_group_kill 0
|
||||
container_exit=0 oom=false limit=250000000 swap=250000000
|
||||
@@ -0,0 +1,18 @@
|
||||
{
|
||||
"source_commit": "5373351a7e7ac2bc0f34bae19c25383de3843ca7",
|
||||
"model_id": "HuggingFaceTB/SmolLM2-135M-Instruct",
|
||||
"status": "corrected",
|
||||
"summary": "Added the missing closing parenthesis",
|
||||
"diff": "--- original.py\n+++ reviewed.py\n@@ -1 +1 @@\n-print(\"hello\"\n+print(\"hello\")\n",
|
||||
"input_tokens": 23,
|
||||
"output_tokens": 5,
|
||||
"schema_version": 1,
|
||||
"mode": "live",
|
||||
"started_at": "2026-11-27T02:42:25.211366Z",
|
||||
"finished_at": "2026-11-27T02:42:27.997506Z",
|
||||
"elapsed_seconds": 2.786359,
|
||||
"input_sha256": "9e600e31c44a6a8f4bec8948fb5d503a40472ed6632394fdda6f1814165f4909",
|
||||
"model_revision": "12fd25f77366fa6b3b4b768ec3050bf629380bac",
|
||||
"raw_response_file": "raw_response.txt",
|
||||
"runtime_response_file": "runtime_response.json"
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
print("hello")
|
||||
@@ -0,0 +1,17 @@
|
||||
{
|
||||
"content": " print(\"hello\")",
|
||||
"timings": {
|
||||
"cache_n": 0,
|
||||
"prompt_n": 23,
|
||||
"prompt_ms": 149.368,
|
||||
"prompt_per_token_ms": 6.494260869565217,
|
||||
"prompt_per_second": 153.9821112955921,
|
||||
"predicted_n": 5,
|
||||
"predicted_ms": 94.937,
|
||||
"predicted_per_token_ms": 23.73425,
|
||||
"predicted_per_second": 42.13320412484069
|
||||
},
|
||||
"tokens_evaluated": 23,
|
||||
"tokens_predicted": 5,
|
||||
"stop": true
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
print("hello")
|
||||
@@ -0,0 +1,9 @@
|
||||
review_exit=0
|
||||
158756864
|
||||
low 0
|
||||
high 0
|
||||
max 0
|
||||
oom 0
|
||||
oom_kill 0
|
||||
oom_group_kill 0
|
||||
container_exit=0 oom=false limit=250000000 swap=250000000
|
||||
@@ -0,0 +1,18 @@
|
||||
{
|
||||
"source_commit": "5373351a7e7ac2bc0f34bae19c25383de3843ca7",
|
||||
"model_id": "HuggingFaceTB/SmolLM2-135M-Instruct",
|
||||
"status": "corrected",
|
||||
"summary": "Added the missing closing parenthesis",
|
||||
"diff": "--- original.py\n+++ reviewed.py\n@@ -1 +1 @@\n-print(\"hello\"\n+print(\"hello\")\n",
|
||||
"input_tokens": 23,
|
||||
"output_tokens": 5,
|
||||
"schema_version": 1,
|
||||
"mode": "live",
|
||||
"started_at": "2026-11-27T02:42:50.812903Z",
|
||||
"finished_at": "2026-11-27T02:42:53.550712Z",
|
||||
"elapsed_seconds": 2.737334,
|
||||
"input_sha256": "9e600e31c44a6a8f4bec8948fb5d503a40472ed6632394fdda6f1814165f4909",
|
||||
"model_revision": "12fd25f77366fa6b3b4b768ec3050bf629380bac",
|
||||
"raw_response_file": "raw_response.txt",
|
||||
"runtime_response_file": "runtime_response.json"
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
print("hello")
|
||||
@@ -0,0 +1,17 @@
|
||||
{
|
||||
"content": " print(\"hello\")",
|
||||
"timings": {
|
||||
"cache_n": 0,
|
||||
"prompt_n": 23,
|
||||
"prompt_ms": 178.552,
|
||||
"prompt_per_token_ms": 7.7631304347826084,
|
||||
"prompt_per_second": 128.81401496482817,
|
||||
"predicted_n": 5,
|
||||
"predicted_ms": 111.208,
|
||||
"predicted_per_token_ms": 27.802,
|
||||
"predicted_per_second": 35.968635349974825
|
||||
},
|
||||
"tokens_evaluated": 23,
|
||||
"tokens_predicted": 5,
|
||||
"stop": true
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
print("hello")
|
||||
@@ -0,0 +1,9 @@
|
||||
review_exit=0
|
||||
124366848
|
||||
low 0
|
||||
high 0
|
||||
max 0
|
||||
oom 0
|
||||
oom_kill 0
|
||||
oom_group_kill 0
|
||||
container_exit=0 oom=false limit=250000000 swap=250000000
|
||||
@@ -0,0 +1,18 @@
|
||||
{
|
||||
"source_commit": "5373351a7e7ac2bc0f34bae19c25383de3843ca7",
|
||||
"model_id": "HuggingFaceTB/SmolLM2-135M-Instruct",
|
||||
"status": "corrected",
|
||||
"summary": "Added the missing closing parenthesis",
|
||||
"diff": "--- original.py\n+++ reviewed.py\n@@ -1 +1 @@\n-print(\"hello\"\n+print(\"hello\")\n",
|
||||
"input_tokens": 23,
|
||||
"output_tokens": 5,
|
||||
"schema_version": 1,
|
||||
"mode": "live",
|
||||
"started_at": "2026-11-27T02:42:54.996583Z",
|
||||
"finished_at": "2026-11-27T02:43:00.428698Z",
|
||||
"elapsed_seconds": 5.432061,
|
||||
"input_sha256": "9e600e31c44a6a8f4bec8948fb5d503a40472ed6632394fdda6f1814165f4909",
|
||||
"model_revision": "12fd25f77366fa6b3b4b768ec3050bf629380bac",
|
||||
"raw_response_file": "raw_response.txt",
|
||||
"runtime_response_file": "runtime_response.json"
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
print("hello")
|
||||
@@ -0,0 +1,17 @@
|
||||
{
|
||||
"content": " print(\"hello\")",
|
||||
"timings": {
|
||||
"cache_n": 0,
|
||||
"prompt_n": 23,
|
||||
"prompt_ms": 628.636,
|
||||
"prompt_per_token_ms": 27.331999999999997,
|
||||
"prompt_per_second": 36.587150592711836,
|
||||
"predicted_n": 5,
|
||||
"predicted_ms": 125.677,
|
||||
"predicted_per_token_ms": 31.41925,
|
||||
"predicted_per_second": 31.82762160140678
|
||||
},
|
||||
"tokens_evaluated": 23,
|
||||
"tokens_predicted": 5,
|
||||
"stop": true
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
total used free shared buff/cache available
|
||||
Mem: 1967 1519 74 6 546 448
|
||||
Swap: 2047 1989 58
|
||||
@@ -0,0 +1,55 @@
|
||||
{
|
||||
"source_commit": "5373351a7e7ac2bc0f34bae19c25383de3843ca7",
|
||||
"method": "Docker cgroup v2 memory.peak after private model copy, no swap, whole reviewer and llama-completion process tree; includes tmpfs model pages and cgroup-charged file cache",
|
||||
"memory_target_bytes": 250000000,
|
||||
"records": [
|
||||
{
|
||||
"trial": 1,
|
||||
"mode": "live",
|
||||
"status": "corrected",
|
||||
"input_tokens": 23,
|
||||
"output_tokens": 5,
|
||||
"elapsed_seconds": 3.848678,
|
||||
"memory_peak_bytes": 236150784,
|
||||
"cgroup_limit_bytes": 400000000,
|
||||
"oom_kill": 0,
|
||||
"model_copy": "private tmpfs within cgroup"
|
||||
},
|
||||
{
|
||||
"trial": 2,
|
||||
"mode": "live",
|
||||
"status": "corrected",
|
||||
"input_tokens": 23,
|
||||
"output_tokens": 5,
|
||||
"elapsed_seconds": 3.94148,
|
||||
"memory_peak_bytes": 233103360,
|
||||
"cgroup_limit_bytes": 400000000,
|
||||
"oom_kill": 0,
|
||||
"model_copy": "private tmpfs within cgroup"
|
||||
},
|
||||
{
|
||||
"trial": 3,
|
||||
"mode": "live",
|
||||
"status": "corrected",
|
||||
"input_tokens": 23,
|
||||
"output_tokens": 5,
|
||||
"elapsed_seconds": 1.812362,
|
||||
"memory_peak_bytes": 238735360,
|
||||
"cgroup_limit_bytes": 400000000,
|
||||
"oom_kill": 0,
|
||||
"model_copy": "private tmpfs within cgroup"
|
||||
},
|
||||
{
|
||||
"trial": "acceptance-250m",
|
||||
"mode": "live",
|
||||
"status": "corrected",
|
||||
"input_tokens": 23,
|
||||
"output_tokens": 5,
|
||||
"elapsed_seconds": 3.392288,
|
||||
"memory_peak_bytes": 234405888,
|
||||
"cgroup_limit_bytes": 250000000,
|
||||
"oom_kill": 0,
|
||||
"model_copy": "private tmpfs within cgroup"
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,200 @@
|
||||
{
|
||||
"source": "existing local Prometheus API",
|
||||
"window_start_utc": "2026-11-27T02:48:00.836093+00:00",
|
||||
"window_end_utc": "2026-11-27T02:52:31.906785+00:00",
|
||||
"step_seconds": 30,
|
||||
"trial_intervals_utc": [
|
||||
{
|
||||
"started_at": "2026-11-27T02:50:00.836093Z",
|
||||
"finished_at": "2026-11-27T02:50:04.684844Z"
|
||||
},
|
||||
{
|
||||
"started_at": "2026-11-27T02:50:23.948898Z",
|
||||
"finished_at": "2026-11-27T02:50:27.890688Z"
|
||||
},
|
||||
{
|
||||
"started_at": "2026-11-27T02:50:30.094374Z",
|
||||
"finished_at": "2026-11-27T02:50:31.906785Z"
|
||||
}
|
||||
],
|
||||
"queries": {
|
||||
"node_up": {
|
||||
"promql": "up{job=\"node\"}",
|
||||
"response": {
|
||||
"status": "success",
|
||||
"data": {
|
||||
"resultType": "matrix",
|
||||
"result": [
|
||||
{
|
||||
"metric": {
|
||||
"__name__": "up",
|
||||
"instance": "node-exporter:9100",
|
||||
"job": "node"
|
||||
},
|
||||
"values": [
|
||||
[
|
||||
1795747680.836,
|
||||
"1"
|
||||
],
|
||||
[
|
||||
1795747710.836,
|
||||
"1"
|
||||
],
|
||||
[
|
||||
1795747740.836,
|
||||
"1"
|
||||
],
|
||||
[
|
||||
1795747770.836,
|
||||
"1"
|
||||
],
|
||||
[
|
||||
1795747800.836,
|
||||
"1"
|
||||
],
|
||||
[
|
||||
1795747830.836,
|
||||
"1"
|
||||
],
|
||||
[
|
||||
1795747860.836,
|
||||
"1"
|
||||
],
|
||||
[
|
||||
1795747890.836,
|
||||
"1"
|
||||
],
|
||||
[
|
||||
1795747920.836,
|
||||
"1"
|
||||
],
|
||||
[
|
||||
1795747950.836,
|
||||
"1"
|
||||
]
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
},
|
||||
"host_cpu_percent": {
|
||||
"promql": "100 * (1 - avg by(instance) (rate(node_cpu_seconds_total{mode=\"idle\"}[2m])))",
|
||||
"response": {
|
||||
"status": "success",
|
||||
"data": {
|
||||
"resultType": "matrix",
|
||||
"result": [
|
||||
{
|
||||
"metric": {
|
||||
"instance": "node-exporter:9100"
|
||||
},
|
||||
"values": [
|
||||
[
|
||||
1795747680.836,
|
||||
"63.90000000001035"
|
||||
],
|
||||
[
|
||||
1795747710.836,
|
||||
"72.81111111114215"
|
||||
],
|
||||
[
|
||||
1795747740.836,
|
||||
"59.322222222237755"
|
||||
],
|
||||
[
|
||||
1795747770.836,
|
||||
"58.71111111113958"
|
||||
],
|
||||
[
|
||||
1795747800.836,
|
||||
"64.36666666665892"
|
||||
],
|
||||
[
|
||||
1795747830.836,
|
||||
"75.31111111114215"
|
||||
],
|
||||
[
|
||||
1795747860.836,
|
||||
"80.19999999999224"
|
||||
],
|
||||
[
|
||||
1795747890.836,
|
||||
"65.65555555551934"
|
||||
],
|
||||
[
|
||||
1795747920.836,
|
||||
"58.57777777774673"
|
||||
],
|
||||
[
|
||||
1795747950.836,
|
||||
"52.699999999992244"
|
||||
]
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
},
|
||||
"host_mem_available_bytes": {
|
||||
"promql": "node_memory_MemAvailable_bytes{job=\"node\"}",
|
||||
"response": {
|
||||
"status": "success",
|
||||
"data": {
|
||||
"resultType": "matrix",
|
||||
"result": [
|
||||
{
|
||||
"metric": {
|
||||
"__name__": "node_memory_MemAvailable_bytes",
|
||||
"instance": "node-exporter:9100",
|
||||
"job": "node"
|
||||
},
|
||||
"values": [
|
||||
[
|
||||
1795747680.836,
|
||||
"449515520"
|
||||
],
|
||||
[
|
||||
1795747710.836,
|
||||
"383606784"
|
||||
],
|
||||
[
|
||||
1795747740.836,
|
||||
"425607168"
|
||||
],
|
||||
[
|
||||
1795747770.836,
|
||||
"352559104"
|
||||
],
|
||||
[
|
||||
1795747800.836,
|
||||
"377438208"
|
||||
],
|
||||
[
|
||||
1795747830.836,
|
||||
"502824960"
|
||||
],
|
||||
[
|
||||
1795747860.836,
|
||||
"522153984"
|
||||
],
|
||||
[
|
||||
1795747890.836,
|
||||
"498524160"
|
||||
],
|
||||
[
|
||||
1795747920.836,
|
||||
"513839104"
|
||||
],
|
||||
[
|
||||
1795747950.836,
|
||||
"531513344"
|
||||
]
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
print("hello")
|
||||
|
||||
|
||||
@@ -0,0 +1,9 @@
|
||||
review_exit=0
|
||||
memory_peak=236150784
|
||||
low 0
|
||||
high 0
|
||||
max 0
|
||||
oom 0
|
||||
oom_kill 0
|
||||
oom_group_kill 0
|
||||
container_exit=0 oom=false limit=400000000 swap=400000000
|
||||
@@ -0,0 +1,18 @@
|
||||
{
|
||||
"source_commit": "5373351a7e7ac2bc0f34bae19c25383de3843ca7",
|
||||
"model_id": "HuggingFaceTB/SmolLM2-135M-Instruct",
|
||||
"status": "corrected",
|
||||
"summary": "Added the missing closing parenthesis",
|
||||
"diff": "--- original.py\n+++ reviewed.py\n@@ -1 +1 @@\n-print(\"hello\"\n+print(\"hello\")\n",
|
||||
"input_tokens": 23,
|
||||
"output_tokens": 5,
|
||||
"schema_version": 1,
|
||||
"mode": "live",
|
||||
"started_at": "2026-11-27T02:50:00.836093Z",
|
||||
"finished_at": "2026-11-27T02:50:04.684844Z",
|
||||
"elapsed_seconds": 3.848678,
|
||||
"input_sha256": "9e600e31c44a6a8f4bec8948fb5d503a40472ed6632394fdda6f1814165f4909",
|
||||
"model_revision": "12fd25f77366fa6b3b4b768ec3050bf629380bac",
|
||||
"raw_response_file": "raw_response.txt",
|
||||
"runtime_response_file": "runtime_response.json"
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
print("hello")
|
||||
@@ -0,0 +1,11 @@
|
||||
{
|
||||
"prompt": "Input: print(\"hi\"\nOutput: print(\"hi\")\nInput: print(\"hello\"\nOutput:",
|
||||
"raw_stdout": " print(\"hello\")\n\n\n",
|
||||
"prompt_eval_tokens": 23,
|
||||
"sampler_total_tokens": 28,
|
||||
"output_tokens_method": "sampler_total_tokens - prompt_eval_tokens",
|
||||
"runtime_log_counter_lines": [
|
||||
"0.02.939.758 I common_perf_print: samplers time = 1.72 ms / 28 tokens",
|
||||
"0.02.940.259 I common_perf_print: prompt eval time = 542.08 ms / 23 tokens ( 23.57 ms per token, 42.43 tokens per second)"
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
print("hello")
|
||||
|
||||
|
||||
@@ -0,0 +1,9 @@
|
||||
review_exit=0
|
||||
memory_peak=233103360
|
||||
low 0
|
||||
high 0
|
||||
max 0
|
||||
oom 0
|
||||
oom_kill 0
|
||||
oom_group_kill 0
|
||||
container_exit=0 oom=false limit=400000000 swap=400000000
|
||||
@@ -0,0 +1,18 @@
|
||||
{
|
||||
"source_commit": "5373351a7e7ac2bc0f34bae19c25383de3843ca7",
|
||||
"model_id": "HuggingFaceTB/SmolLM2-135M-Instruct",
|
||||
"status": "corrected",
|
||||
"summary": "Added the missing closing parenthesis",
|
||||
"diff": "--- original.py\n+++ reviewed.py\n@@ -1 +1 @@\n-print(\"hello\"\n+print(\"hello\")\n",
|
||||
"input_tokens": 23,
|
||||
"output_tokens": 5,
|
||||
"schema_version": 1,
|
||||
"mode": "live",
|
||||
"started_at": "2026-11-27T02:50:23.948898Z",
|
||||
"finished_at": "2026-11-27T02:50:27.890688Z",
|
||||
"elapsed_seconds": 3.94148,
|
||||
"input_sha256": "9e600e31c44a6a8f4bec8948fb5d503a40472ed6632394fdda6f1814165f4909",
|
||||
"model_revision": "12fd25f77366fa6b3b4b768ec3050bf629380bac",
|
||||
"raw_response_file": "raw_response.txt",
|
||||
"runtime_response_file": "runtime_response.json"
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
print("hello")
|
||||
@@ -0,0 +1,11 @@
|
||||
{
|
||||
"prompt": "Input: print(\"hi\"\nOutput: print(\"hi\")\nInput: print(\"hello\"\nOutput:",
|
||||
"raw_stdout": " print(\"hello\")\n\n\n",
|
||||
"prompt_eval_tokens": 23,
|
||||
"sampler_total_tokens": 28,
|
||||
"output_tokens_method": "sampler_total_tokens - prompt_eval_tokens",
|
||||
"runtime_log_counter_lines": [
|
||||
"0.01.649.391 I common_perf_print: samplers time = 0.46 ms / 28 tokens",
|
||||
"0.01.649.465 I common_perf_print: prompt eval time = 232.25 ms / 23 tokens ( 10.10 ms per token, 99.03 tokens per second)"
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
print("hello")
|
||||
|
||||
|
||||
@@ -0,0 +1,9 @@
|
||||
review_exit=0
|
||||
memory_peak=238735360
|
||||
low 0
|
||||
high 0
|
||||
max 0
|
||||
oom 0
|
||||
oom_kill 0
|
||||
oom_group_kill 0
|
||||
container_exit=0 oom=false limit=400000000 swap=400000000
|
||||
@@ -0,0 +1,18 @@
|
||||
{
|
||||
"source_commit": "5373351a7e7ac2bc0f34bae19c25383de3843ca7",
|
||||
"model_id": "HuggingFaceTB/SmolLM2-135M-Instruct",
|
||||
"status": "corrected",
|
||||
"summary": "Added the missing closing parenthesis",
|
||||
"diff": "--- original.py\n+++ reviewed.py\n@@ -1 +1 @@\n-print(\"hello\"\n+print(\"hello\")\n",
|
||||
"input_tokens": 23,
|
||||
"output_tokens": 5,
|
||||
"schema_version": 1,
|
||||
"mode": "live",
|
||||
"started_at": "2026-11-27T02:50:30.094374Z",
|
||||
"finished_at": "2026-11-27T02:50:31.906785Z",
|
||||
"elapsed_seconds": 1.812362,
|
||||
"input_sha256": "9e600e31c44a6a8f4bec8948fb5d503a40472ed6632394fdda6f1814165f4909",
|
||||
"model_revision": "12fd25f77366fa6b3b4b768ec3050bf629380bac",
|
||||
"raw_response_file": "raw_response.txt",
|
||||
"runtime_response_file": "runtime_response.json"
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
print("hello")
|
||||
@@ -0,0 +1,11 @@
|
||||
{
|
||||
"prompt": "Input: print(\"hi\"\nOutput: print(\"hi\")\nInput: print(\"hello\"\nOutput:",
|
||||
"raw_stdout": " print(\"hello\")\n\n\n",
|
||||
"prompt_eval_tokens": 23,
|
||||
"sampler_total_tokens": 28,
|
||||
"output_tokens_method": "sampler_total_tokens - prompt_eval_tokens",
|
||||
"runtime_log_counter_lines": [
|
||||
"0.01.081.421 I common_perf_print: samplers time = 0.45 ms / 28 tokens",
|
||||
"0.01.081.431 I common_perf_print: prompt eval time = 199.34 ms / 23 tokens ( 8.67 ms per token, 115.38 tokens per second)"
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,27 @@
|
||||
# Member 1 to Member 2 integration check
|
||||
|
||||
Checked against Member 2 branch `feature/final-ci-demo` at `4feb58810a90baf361bfd5be7fee376d22bfcd80` on 2026-11-27 UTC. The recorded real review under `evidence/acceptance-250m/` was passed through that branch's unmodified `ci/final_project.py` in a temporary local directory.
|
||||
|
||||
| Gate | Result |
|
||||
| --- | --- |
|
||||
| `bundle --mode live` | Passed; canonical ZIP created |
|
||||
| `verify --mode live` | Passed; exact identity and hashes accepted |
|
||||
| `test` | Passed; reviewed file SHA-256 `b80792336156c7b0f7fe02eeef24610d2d52a10d1810397744471d1dc5738180` |
|
||||
| `metrics` | Formatted input availability 1/count 23, output availability 1/count 5 |
|
||||
|
||||
The compatibility run used synthetic run ID `1`, attempt `1`, and a supplied timestamp. It did not run Gitea Actions, Jenkins, Prometheus scraping, Grafana, or release publication. It must not be presented as the live end-to-end demo or monitoring evidence.
|
||||
|
||||
Integration points on Member 2's branch:
|
||||
|
||||
1. `.gitea/workflows/final-project.yml` currently invokes `ci/fixtures/reviewer_stub.py`, labels the bundle `fixture`, and triggers only on `feature/final-ci-demo` and `final-project-demo`. Replace that step in Member 2's owned workflow with `python3 -m reviewer ...` and `bundle --mode live` after merging this reviewer. The Actions runner needs the locked model, runtime, `libgomp1`, and a fresh output directory. Run the model checksum and full workload memory check there before claiming the 250,000,000-byte target for CI.
|
||||
2. `Jenkinsfile.final-project` currently offers only `MODE=fixture`. Member 2 should expose `live` only after the Actions live artifact and runtime check succeed. The existing downstream validator already accepts `mode=live` and rejects fixture metadata under that mode.
|
||||
3. The metrics formatter accepts our live review counts. Member 2 owns writing those metrics to the deployed collector path and verifying actual Prometheus samples and Grafana panels. Use the real completed timestamp from the Actions run, not the synthetic local value.
|
||||
4. The existing `final-project-fixture` Jenkins job points at `feature/final-ci-demo`; a live run needs an integrated branch/job revision and exact SHA/run/attempt pairing. Preserve the immutable release state volume and agree the live version baseline before publishing.
|
||||
|
||||
No shared contract change was needed. The reviewer emits the seven required fields, `mode=live`, and measured integer token counts. Its `raw_response.txt` and `runtime_response.json` are local evidence files; Member 2's four-file bundle intentionally packages only `reviewed.py`, `review.json`, `bundle.json`, and `SHA256SUMS`.
|
||||
|
||||
## Combined-check finding
|
||||
|
||||
The Member 1 patch applied cleanly to a temporary checkout of Member 2's published branch. Member 1's 19 tests passed. Member 2's local suite initially had one error: its `test_review` invokes the now-present `tests/smoke_demo.py` with `check=True`; when that script rejects a deliberately bad reviewed file, Python raises `CalledProcessError`, while `ci/tests/test_pipeline.py::test_runtime_failure_reaches_smoke` expects `ValueError` containing `smoke`. This is an exception-type mismatch in Member 2's owned `ci/final_project.py`, not a release success. The failure still blocks publication as intended.
|
||||
|
||||
A temporary proof changed the invocation in `test_review` to capture the return code and raise `ValueError('Member 1 smoke test failed')` on nonzero. With that change, all 19 Member 2 local tests passed, including the smoke-failure test; five TeX/image-dependent cases were skipped outside the pinned image. Member 2 should make and commit that minimal change in their owned file before the combined branch CI run. No shared reviewer schema or exit-code change is required.
|
||||
@@ -0,0 +1,36 @@
|
||||
# Proposed final-project metrics and Grafana panels
|
||||
|
||||
**Status:** proposal only. Member 2 owns deployed `monitoring/` changes and must verify the actual scrape/collector configuration. The repository currently scrapes the `node` job every 30 seconds and Node Exporter enables only CPU, meminfo and filesystem collectors. No live review-token panel or textfile collector was deployed by Member 1.
|
||||
|
||||
## Ingestion contract
|
||||
|
||||
After exact bundle identity/hash validation, a trusted host-side step may atomically replace one `.prom` textfile under a dedicated read-only Node Exporter mount. Enable `--collector.textfile` and `--collector.textfile.directory=...` explicitly. Do not mount a writable host path into the Actions job. Retain the completed sample for at least two 30-second scrapes, then verify `up{job="node"} == 1`, `node_textfile_scrape_error == 0`, the sample timestamp and the query result. Keep source SHA/run/build links in an annotation or evidence manifest, never as metric labels.
|
||||
|
||||
| Metric | Type/unit | Meaning |
|
||||
| --- | --- | --- |
|
||||
| `review_input_tokens{mode="live"}` | gauge, tokens | Exact prompt tokens from the pinned runtime. Omit if unknown. |
|
||||
| `review_output_tokens{mode="live"}` | gauge, tokens | Exact generated tokens, including any stop token counted by runtime. Omit if unknown. |
|
||||
| `review_token_counts_available{mode="live"}` | gauge, 0/1 | 1 only when both counters were measured. |
|
||||
| `review_duration_seconds{mode="live"}` | gauge, seconds | `review.json` elapsed time for the last completed run. |
|
||||
| `review_memory_peak_bytes{mode="live"}` | gauge, bytes | Whole review cgroup `memory.peak`; omit if absent. |
|
||||
| `review_memory_limit_bytes{mode="live"}` | gauge, bytes | Actual cgroup hard limit; omit if absent. |
|
||||
| `review_completed_timestamp_seconds{mode="live"}` | gauge, Unix seconds | UTC completion timestamp. |
|
||||
| `review_status_code{mode="live"}` | gauge, 0/2/3 | 0 success, 2 rejected, 3 operational error. |
|
||||
|
||||
Fixture mode is a separate label value and must be filtered out of the final live dashboard. A bypassed valid file should use `mode="bypass"` with absent token gauges and `review_token_counts_available=0`. Do not turn `null` into zero input or output tokens. If a rejected/error run has no model counts, publish availability 0 and status, not a fabricated count.
|
||||
|
||||
## Panels and queries
|
||||
|
||||
- Input tokens: `review_input_tokens{mode="live"}`.
|
||||
- Output tokens: `review_output_tokens{mode="live"}`.
|
||||
- Duration: `review_duration_seconds{mode="live"}`.
|
||||
- Peak versus limit: `review_memory_peak_bytes{mode="live"}` and `review_memory_limit_bytes{mode="live"}`.
|
||||
- Completion freshness: `time() - review_completed_timestamp_seconds{mode="live"}`.
|
||||
- Host CPU: `100 * (1 - avg by(instance) (rate(node_cpu_seconds_total{mode="idle"}[2m])))`.
|
||||
- Host available memory: `node_memory_MemAvailable_bytes{job="node"}`.
|
||||
|
||||
Set dashboard timezone to `America/New_York`; retain UTC machine timestamps. Save a fixed before/during/after time window, raw Prometheus query responses, and screenshots. Annotate review start/end and Jenkins build start/end with SHA and run links. Host CPU/memory include pricing, Zammad and all other workloads; they cannot by themselves establish model-only memory. A two-minute CPU rate smooths a short run, and completed token gauges may appear only after inference ends. No fabricated load spike or fixture count should be shown as live evidence.
|
||||
|
||||
## Read-only host evidence captured by Member 1
|
||||
|
||||
`evidence/prometheus-host-window.json` contains actual range-query responses from the existing Prometheus for **2026-11-27 02:48:00–02:52:31 UTC**, covering the three final real-model trials. At 30-second steps it recorded ten samples each: `up{job="node"}` was 1 throughout; host CPU query values ranged about 52.7–80.2%; host `MemAvailable` ranged 352,559,104–531,513,344 bytes. These are shared-host observations, not a model-only load attribution. No token metric was deployed or scraped; token evidence is in each live `review.json` and runtime response. Member 2 should capture before/during/after Grafana screenshots and the final end-to-end run window after integrating textfile metrics.
|
||||
@@ -0,0 +1,33 @@
|
||||
# Proposed report contribution: Member 1
|
||||
|
||||
For Member 2 to integrate into the required **“Configuring and Running the DevOps Pipeline”** chapter. This is prose and table content only; no shared LaTeX or deployed dashboard file was edited.
|
||||
|
||||
## Why a model is in this pipeline
|
||||
|
||||
The learning goal is to demonstrate measured automated review inside the team's existing Gitea Actions → Jenkins → LaTeX/tests → versioned ZIP pipeline. A deterministic parser can detect this missing parenthesis more cheaply; the local model is used to *propose* a repair. The deterministic validator then permits only adding the final `)` to `print("hello"`, checks syntax again, and runs the reviewed artifact's hello smoke test. The source commit remains unchanged. The model cannot select commands, files, credentials or release destinations. This narrow demo does not prove that the model prevents major bugs in general Python programs.
|
||||
|
||||
The chosen model is [SmolLM2-135M-Instruct](https://huggingface.co/HuggingFaceTB/SmolLM2-135M-Instruct) (Apache-2.0) in a pinned third-party [Q4_0 GGUF](https://huggingface.co/QuantFactory/SmolLM2-135M-Instruct-GGUF) with [llama.cpp b12785](https://github.com/ggml-org/llama.cpp/releases/tag/b12785). Exact revisions, hashes, prompt and settings are in `reviewer/model-lock.json`. The verified raw completion was ` print("hello")` followed by whitespace; its surrounding whitespace was removed, the input's newline restored, and the exact accepted diff recorded. The runtime counters were 23 prompt and 5 generated tokens. Unknown counters remain null.
|
||||
|
||||
Three fresh container trials with a private GGUF copy charged to the same cgroup peaked at 236,150,784, 233,103,360 and 238,735,360 bytes, with elapsed times 3.848678, 3.941480 and 1.812362 seconds. The 250,000,000-byte cap trial peaked at 234,405,888 bytes, returned `corrected`, had no OOM kill and passed the hello smoke test. The measurement includes reviewer and model child processes and cgroup-charged cache. It is local feasibility evidence. The actual Actions execution image and shared-host Grafana window still require integration verification. Failed experiments matter: the interactive CLI produced unrelated code, and a server variant exceeded the target at 261,754,880 bytes; batch/context reduction and the completion executable were needed.
|
||||
|
||||
## AI reviewer SWOT (controlled one-line syntax task)
|
||||
|
||||
| Strengths | Weaknesses | Opportunities | Threats |
|
||||
| --- | --- | --- | --- |
|
||||
| Repeatable commit-linked proposal and raw-response log; measured token/time use. | Small model needed prompt constraints; output needed narrow whitespace cleanup; consumes memory. | Automate review records and compare proposals against deterministic tests. | Invalid edits, unavailable weights/runtime, prompt sensitivity, false confidence if validation is skipped. |
|
||||
|
||||
## Human reviewer SWOT (same task)
|
||||
|
||||
| Strengths | Weaknesses | Opportunities | Threats |
|
||||
| --- | --- | --- | --- |
|
||||
| Can infer intent and question requirements; can review broader context. | Availability and speed vary; repetitive one-character errors are easy to overlook. | Teach code-review discipline and improve fixtures and acceptance criteria. | Fatigue, inconsistent review, missed defects or overconfidence. |
|
||||
|
||||
These are qualitative comparisons, not measured productivity claims. A human still approves implementation scope, integration and release policy. Member 2's separate Actions/Jenkins SWOT charts address the instructor's two-tool rubric item.
|
||||
|
||||
## Validator and process contribution
|
||||
|
||||
Requirements enter as a Gitea issue; the source change is a Git commit. Actions should call the reviewer on that full SHA and publish an immutable result bundle. Jenkins must verify SHA/run/attempt and hashes before building the LaTeX PDF or executing the reviewed file. Unit tests, Python syntax parsing and the hello smoke test serve different gates. Prometheus/Grafana associate actual review counters with the same run window and show host load; host load is not proof of model-only memory. The versioned ZIP is the deployment artifact, subject to Member 2's durable version reservation and fresh-download verification.
|
||||
|
||||
The guide's page 5 maps the 100-point rubric to issue tracking, version control, trigger, build visibility, tests, artifact, SWOT, configuration, report and cloud execution; it also identifies reverse documentation as the explicit +5 bonus. The separate official instructor rubric was not among the files attached to this chat, so Member 2 should verify this wording against the instructor copy before final report submission.
|
||||
|
||||
A read-only Prometheus range query around the three final local trials recorded node exporter `up=1` in ten 30-second samples, with host CPU query values about 52.7–80.2% and host available memory 352,559,104–531,513,344 bytes. These values reflect the entire shared Droplet and the two-minute CPU rate; they are context, not proof that the model caused those changes. The raw query responses and UTC window are in `handoff/member1/evidence/prometheus-host-window.json`. The final Grafana token/host dashboard and end-to-end demo screenshots are pending Member 2's integration.
|
||||
@@ -0,0 +1,69 @@
|
||||
# Member 1 runtime contract
|
||||
|
||||
This is a **real** SmolLM2-135M-Instruct run. The model proposes text; the reviewer accepts only the specified one-character repair. The original source remains untouched. The only model-output cleanup is removal of surrounding spaces/tabs/newlines, followed by restoration of the source's final-newline policy. The unmodified stdout is saved as `raw_response.txt`.
|
||||
|
||||
## Identity and inputs
|
||||
|
||||
- Base model: `HuggingFaceTB/SmolLM2-135M-Instruct`, revision `12fd25f77366fa6b3b4b768ec3050bf629380bac`, Apache-2.0. [Official model card](https://huggingface.co/HuggingFaceTB/SmolLM2-135M-Instruct).
|
||||
- Third-party quantization: `QuantFactory/SmolLM2-135M-Instruct-GGUF`, revision `476854d00ede130660aba430d15f9347ad2e7d0e`, `SmolLM2-135M-Instruct.Q4_0.gguf`, 91,726,912 bytes, SHA-256 `f68203bfb98b1b1e8c64fac75fab10c4e36acac081609573b4df0fcc19c90dd9`. [Artifact repository](https://huggingface.co/QuantFactory/SmolLM2-135M-Instruct-GGUF).
|
||||
- Runtime: official [llama.cpp release b12785](https://github.com/ggml-org/llama.cpp/releases/tag/b12785), source commit `55d482814bb3b985daa7bfa175c6d628fc27beac`; Ubuntu x64 archive SHA-256 `c52fdce909b3e55b2e763e9a8b08b2b006281ebc5b5c6c8ea91e5d2075c8fd27`. Entrypoint `llama-completion` on Linux amd64 CPU.
|
||||
- Python 3.12+ standard library. Runtime also requires `libgomp.so.1`. The measured local setup used Ubuntu `libgomp1` version `14.2.0-4ubuntu2~24.04.1`, package SHA-256 `e8a95ec58125b4933597f30ff56c2ae10edf90f287262e366d4b6edea3019144` extracted under `/tmp`; it was not installed on the host. Member 2's execution image should include a pinned compatible `libgomp1`.
|
||||
- Exact settings and prompt are in [model-lock.json](../../reviewer/model-lock.json): context 64, batch and microbatch 32, one thread, eight maximum generated tokens, temperature 0, seed 1, stop at newline.
|
||||
|
||||
## Setup and CLI
|
||||
|
||||
From the repository root, with outbound HTTPS for the two public artifacts:
|
||||
|
||||
```sh
|
||||
python3 -m reviewer.prepare_runtime --dest /tmp/ssw590-member1-runtime
|
||||
```
|
||||
|
||||
In an image with `libgomp1` already installed:
|
||||
|
||||
```sh
|
||||
export REVIEWER_MODEL_PATH=/tmp/ssw590-member1-runtime/SmolLM2-135M-Instruct.Q4_0.gguf
|
||||
export REVIEWER_LLAMA_COMPLETION=/tmp/ssw590-member1-runtime/llama-b12785/llama-completion
|
||||
SHA=$(git rev-parse HEAD)
|
||||
python3 -m reviewer --input tests/fixtures/demo_broken.py --source-commit "$SHA" --out-dir /tmp/ssw590-review-001
|
||||
python3 tests/smoke_demo.py /tmp/ssw590-review-001/reviewed.py
|
||||
```
|
||||
|
||||
Choose a **new** output directory each time. If `libgomp1` is not on the host, set `LD_LIBRARY_PATH` to a compatible extracted library directory. Do not set `REVIEWER_BACKEND_COMMAND` for a live run: that override is exclusively for deterministic fixtures and labels the output `mode=fixture`. Already-valid source runs without a model and uses `mode=bypass`.
|
||||
|
||||
The adapter hashes the model before inference. It runs a fixed executable and fixed arguments; it never runs model-generated commands. It parses llama.cpp's `common_perf_print` prompt-token and sampler-total counters. For b12785, output tokens are `sampler_total_tokens - prompt_eval_tokens`; the probe agreed with the server API's `predicted_n=5`. If either counter is absent, JSON count is `null`. The raw response and the counter lines are saved with each review.
|
||||
|
||||
## Whole-workload measurement
|
||||
|
||||
The measured container was `python@sha256:ae14d4ce8771606477a81446e7ef429edd6762305fc50c84507c1041fa8285d1`. It used Docker cgroup v2, `--network none`, `--cpus 1`, no swap, and the full reviewer plus its llama.cpp child. A private copy of the GGUF was placed on container tmpfs before inference so its pages were charged to the same cgroup; `memory.peak` includes cgroup-charged file cache. The three fresh-process trials used a 400,000,000-byte ceiling to reveal natural peaks; a fourth verified the 250,000,000-byte hard cap. Exact bundles and resource records are under `evidence/`.
|
||||
|
||||
To reproduce one strict run on this host after preparation (the following assumes the extracted `libgomp1` directory shown here):
|
||||
|
||||
```sh
|
||||
mkdir -p /tmp/ssw590-member1-runtime/container-out
|
||||
# Choose a fresh container name and /out/ directory each time.
|
||||
docker run --name ssw590-member1-recheck --network none \
|
||||
--memory 250000000 --memory-swap 250000000 --cpus 1 --pids-limit 64 \
|
||||
--read-only --tmpfs /tmp:rw,noexec,size=128m \
|
||||
--user "$(id -u):$(id -g)" \
|
||||
-v "$PWD:/src:ro" -v /tmp/ssw590-member1-runtime:/runtime:ro \
|
||||
-v /tmp/ssw590-member1-runtime/container-out:/out:rw -w /src \
|
||||
-e PYTHONDONTWRITEBYTECODE=1 -e REVIEWER_MODEL_PATH=/tmp/model.gguf \
|
||||
-e REVIEWER_LLAMA_COMPLETION=/runtime/llama-b12785/llama-completion \
|
||||
-e LD_LIBRARY_PATH=/runtime/libgomp-root/usr/lib/x86_64-linux-gnu:/runtime/llama-b12785 \
|
||||
python@sha256:ae14d4ce8771606477a81446e7ef429edd6762305fc50c84507c1041fa8285d1 \
|
||||
sh -c 'cp /runtime/SmolLM2-135M-Instruct.Q4_0.gguf /tmp/model.gguf; python3 -m reviewer --input tests/fixtures/demo_broken.py --source-commit 5373351a7e7ac2bc0f34bae19c25383de3843ca7 --out-dir /out/recheck; result=$?; echo review_exit=$result; cat /sys/fs/cgroup/memory.peak; cat /sys/fs/cgroup/memory.events; exit $result'
|
||||
docker inspect ssw590-member1-recheck --format 'exit={{.State.ExitCode}} oom={{.State.OOMKilled}} limit={{.HostConfig.Memory}} swap={{.HostConfig.MemorySwap}}'
|
||||
```
|
||||
|
||||
`--memory-swap` equal to `--memory` disables additional swap. The command includes the temporary copy step in the cgroup; a normal production image may mount a preexisting model instead. Member 2 must repeat a memory check in the actual Actions image/runner before claiming that environment also meets the target.
|
||||
|
||||
## Results and limits
|
||||
|
||||
| Run | Natural/strict peak bytes | Elapsed seconds | Input/output tokens | Outcome |
|
||||
| --- | ---: | ---: | ---: | --- |
|
||||
| Trial 1, 400 MB ceiling | 236,150,784 | 3.848678 | 23 / 5 | corrected, no OOM |
|
||||
| Trial 2, 400 MB ceiling | 233,103,360 | 3.941480 | 23 / 5 | corrected, no OOM |
|
||||
| Trial 3, 400 MB ceiling | 238,735,360 | 1.812362 | 23 / 5 | corrected, no OOM |
|
||||
| Acceptance, 250 MB cap | 234,405,888 | 3.392288 | 23 / 5 | corrected, no OOM, smoke passed |
|
||||
|
||||
This is measured local feasibility for the controlled fixture, not proof of arbitrary Python repair or Actions/Jenkins deployment. An initial interactive CLI returned unrelated code. A one-shot server variant peaked at 261,754,880 bytes with a private model copy under a 400 MB ceiling; a default-batch completion trial also exceeded the target. These failed experiments are retained under `evidence/experiments/`.
|
||||
Reference in New Issue
Block a user