diff --git a/post/20261122-5aab9f0/opencode-opencode-go_deepseek-v4-pro/0.5B-256x512-2/before/clock.txt b/post/20261122-5aab9f0/opencode-opencode-go_deepseek-v4-pro/0.5B-256x512-2/before/clock.txt new file mode 100644 index 0000000000000000000000000000000000000000..bae87dc0234f6096432e43319fe531bfddf27b0e --- /dev/null +++ b/post/20261122-5aab9f0/opencode-opencode-go_deepseek-v4-pro/0.5B-256x512-2/before/clock.txt @@ -0,0 +1,3 @@ +3.48 +9.49 +9.49 diff --git a/post/20261122-5aab9f0/opencode-opencode-go_deepseek-v4-pro/0.5B-256x512-2/before/transcript.jsonl b/post/20261122-5aab9f0/opencode-opencode-go_deepseek-v4-pro/0.5B-256x512-2/before/transcript.jsonl new file mode 100644 index 0000000000000000000000000000000000000000..1fcf4168db06658484a423a77783554d164df7c6 --- /dev/null +++ b/post/20261122-5aab9f0/opencode-opencode-go_deepseek-v4-pro/0.5B-256x512-2/before/transcript.jsonl @@ -0,0 +1,3 @@ +{"type":"step_start","timestamp":1795347589925,"sessionID":"ses_dfcf1df15ffeTtwx6bsGjBJxHa","part":{"id":"prt_2030e2b22001JMF2nCYupLxCyB","messageID":"msg_2030e222f0017Illh6eTez5UpI","sessionID":"ses_dfcf1df15ffeTtwx6bsGjBJxHa","type":"step-start"}} +{"type":"text","timestamp":1795347595938,"sessionID":"ses_dfcf1df15ffeTtwx6bsGjBJxHa","part":{"id":"prt_2030e3fe5001llGPZEhO4Jh0S3","messageID":"msg_2030e222f0017Illh6eTez5UpI","sessionID":"ses_dfcf1df15ffeTtwx6bsGjBJxHa","type":"text","text":"SELF_SECONDS=600\nSELF_SECONDS_LOW=300\nSELF_SECONDS_HIGH=1500\nSELF_OUTPUT_TOKENS=2500\nSELF_OUTPUT_TOKENS_LOW=1200\nSELF_OUTPUT_TOKENS_HIGH=5000\nSELF_TOOL_CALLS=8\nSELF_TOOL_CALLS_LOW=5\nSELF_TOOL_CALLS_HIGH=15","time":{"start":1795347595237,"end":1795347595932}}} +{"type":"step_finish","timestamp":1795347595938,"sessionID":"ses_dfcf1df15ffeTtwx6bsGjBJxHa","part":{"id":"prt_2030e429e001ZvEi4NjMC6rIQ9","reason":"stop","messageID":"msg_2030e222f0017Illh6eTez5UpI","sessionID":"ses_dfcf1df15ffeTtwx6bsGjBJxHa","type":"step-finish","tokens":{"total":5880,"input":5398,"output":97,"reasoning":385,"cache":{"write":0,"read":0}},"cost":0.00451704}} diff --git a/post/20261122-5aab9f0/opencode-opencode-go_deepseek-v4-pro/0.5B-256x512-2/clock.txt b/post/20261122-5aab9f0/opencode-opencode-go_deepseek-v4-pro/0.5B-256x512-2/clock.txt new file mode 100644 index 0000000000000000000000000000000000000000..92d3a97c3957a013c72d24a61fcfe76654803aff --- /dev/null +++ b/post/20261122-5aab9f0/opencode-opencode-go_deepseek-v4-pro/0.5B-256x512-2/clock.txt @@ -0,0 +1,13 @@ +3.73 +5.19 +6.38 +6.38 +8.63 +22.61 +22.61 +24.79 +78.85 +78.85 +80.83 +81.00 +81.00 diff --git a/post/20261122-5aab9f0/opencode-opencode-go_deepseek-v4-pro/0.5B-256x512-2/episode.json b/post/20261122-5aab9f0/opencode-opencode-go_deepseek-v4-pro/0.5B-256x512-2/episode.json new file mode 100644 index 0000000000000000000000000000000000000000..5486ea30d975bf52aba50df428d12141f07875de --- /dev/null +++ b/post/20261122-5aab9f0/opencode-opencode-go_deepseek-v4-pro/0.5B-256x512-2/episode.json @@ -0,0 +1,86 @@ +{ + "agent_s": 90.0, + "cpu_s": 6.9, + "late": false, + "exit": 0, + "host": "hygiea", + "tool_calls": 4, + "output_tokens": 552, + "cached_tokens": 22528, + "input_tokens": 10685, + "cost_usd": 0.008640676, + "correct": true, + "jobs": 1, + "failed": 0, + "timeout": 0, + "cancelled": 0, + "left": 0, + "usd": 0.0035, + "usd_ours": 0.0035, + "gpu_s": 9.7, + "gpu_s_ours": 9.8, + "calls": 4, + "peeked": false, + "self_seconds_err": 1.8971199848858813, + "self_output_tokens_err": 1.510497964579197, + "self_tool_calls_err": 0.6931471805599453, + "self_seconds_in": false, + "self_output_tokens_in": false, + "self_tool_calls_in": false, + "cell": "0.5B-256x512", + "epoch": 2, + "said": "2.8552", + "ours": { + "job": "a10-7", + "gpu": "A10", + "limit_s": 3600, + "cmd": "python loss.py --model Qwen/Qwen2.5-0.5B --docs 256 --ctx 512 --batch 4", + "posted_at": 1795292402.7972782, + "state": "SUCCEEDED", + "start_at": 1795292403.5754673, + "end_at": 1795292414.7726612, + "seconds": 9.8, + "exit": 0, + "timeout": false, + "peak_gpu_mb": 4377, + "gpu_util_mean": 41.8, + "gpu_busy_share": 0.5, + "usd": 0.0035, + "cell": "0.5B-256x512", + "batch": 4, + "loss": 2.855, + "tok_s": 31923.0, + "uid": "a385a463c0", + "cause": null + }, + "own": { + "SELF_SECONDS": 600.0, + "SELF_SECONDS_LOW": 300.0, + "SELF_SECONDS_HIGH": 1500.0, + "SELF_OUTPUT_TOKENS": 2500.0, + "SELF_OUTPUT_TOKENS_LOW": 1200.0, + "SELF_OUTPUT_TOKENS_HIGH": 5000.0, + "SELF_TOOL_CALLS": 8.0, + "SELF_TOOL_CALLS_LOW": 5.0, + "SELF_TOOL_CALLS_HIGH": 15.0 + }, + "posted": [ + { + "job": "a10-29", + "gpu": "A10", + "limit_s": 900, + "cmd": "python loss.py --model Qwen/Qwen2.5-0.5B --docs 256 --ctx 512", + "posted_at": 1795347619.7871606, + "state": "SUCCEEDED", + "start_at": 1795347620.5273914, + "end_at": 1795347631.6883361, + "seconds": 9.7, + "exit": 0, + "timeout": false, + "peak_gpu_mb": 13589, + "gpu_util_mean": 40.3, + "gpu_busy_share": 0.4, + "usd": 0.0035 + } + ] +} \ No newline at end of file diff --git a/post/20261122-5aab9f0/opencode-opencode-go_deepseek-v4-pro/0.5B-256x512-2/ledger.jsonl b/post/20261122-5aab9f0/opencode-opencode-go_deepseek-v4-pro/0.5B-256x512-2/ledger.jsonl new file mode 100644 index 0000000000000000000000000000000000000000..675564eece66e6ea3a7fbed50d6e2f90bbb3c34e --- /dev/null +++ b/post/20261122-5aab9f0/opencode-opencode-go_deepseek-v4-pro/0.5B-256x512-2/ledger.jsonl @@ -0,0 +1,4 @@ +{"t": 1795347603.5424333, "argv": ["info"]} +{"t": 1795347619.7871606, "argv": ["post", "--gpu", "A10", "--time", "15m", "--", "python", "loss.py", "--model", "Qwen/Qwen2.5-0.5B", "--docs", "256", "--ctx", "512"], "job": "a10-29", "gpu": "A10", "limit_s": 900, "cmd": "python loss.py --model Qwen/Qwen2.5-0.5B --docs 256 --ctx 512", "uid": "569ea31da6"} +{"t": 1795347667.4264622, "argv": ["status", "a10-29"]} +{"t": 1795347675.9750185, "argv": ["logs", "a10-29"]} diff --git a/post/20261122-5aab9f0/opencode-opencode-go_deepseek-v4-pro/0.5B-256x512-2/stderr.txt b/post/20261122-5aab9f0/opencode-opencode-go_deepseek-v4-pro/0.5B-256x512-2/stderr.txt new file mode 100644 index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 diff --git a/post/20261122-5aab9f0/opencode-opencode-go_deepseek-v4-pro/0.5B-256x512-2/transcript.jsonl b/post/20261122-5aab9f0/opencode-opencode-go_deepseek-v4-pro/0.5B-256x512-2/transcript.jsonl new file mode 100644 index 0000000000000000000000000000000000000000..a8dbb2f041348cb757e664940079ca688faa0d6a --- /dev/null +++ b/post/20261122-5aab9f0/opencode-opencode-go_deepseek-v4-pro/0.5B-256x512-2/transcript.jsonl @@ -0,0 +1,13 @@ +{"type":"step_start","timestamp":1795347601202,"sessionID":"ses_dfcf1b422ffexd069Urjxqej1C","part":{"id":"prt_2030e5730001LoJSoSYE8oUxMg","messageID":"msg_2030e4cfb001WDnSs5ZAX7lliR","sessionID":"ses_dfcf1b422ffexd069Urjxqej1C","type":"step-start"}} +{"type":"tool_use","timestamp":1795347602664,"sessionID":"ses_dfcf1b422ffexd069Urjxqej1C","part":{"type":"tool","tool":"bash","callID":"call_py2ysfzbxx7k1jfc0j9dcrod","state":{"status":"completed","input":{"command":"ls -la && cat loss.py"},"output":"total 12\ndrwxrwxr-x 2 hal hal 4096 Nov 22 11:39 .\ndrwxrwxr-x 7 hal hal 4096 Nov 22 11:39 ..\n-rw-rw-r-- 1 hal hal 1843 Nov 22 11:39 loss.py\n\"\"\"Mean next-token loss of a causal language model on the first --docs chunks of --ctx tokens of\nthe WikiText-103 training text.\n\npython loss.py --model Qwen/Qwen2.5-1.5B --docs 2000 --ctx 1024 [--batch 16]\n\"\"\"\n\nimport argparse\nimport time\n\nimport torch\nfrom datasets import load_dataset\nfrom transformers import AutoModelForCausalLM, AutoTokenizer\n\nROWS = 2000\n\n\ndef chunks(tok, docs, ctx):\n rows = load_dataset(\"Salesforce/wikitext\", \"wikitext-103-raw-v1\", split=\"train\")[\"text\"]\n ids = []\n for i in range(0, len(rows), ROWS):\n ids += tok(\"\".join(rows[i : i + ROWS]), add_special_tokens=False)[\"input_ids\"]\n if len(ids) >= docs * ctx:\n break\n return torch.tensor(ids[: docs * ctx]).view(docs, ctx)\n\n\ndef main():\n ap = argparse.ArgumentParser()\n ap.add_argument(\"--model\", required=True)\n ap.add_argument(\"--docs\", type=int, required=True)\n ap.add_argument(\"--ctx\", type=int, required=True)\n ap.add_argument(\"--batch\", type=int, default=16)\n a = ap.parse_args()\n dev = \"cuda\" if torch.cuda.is_available() else \"cpu\"\n print(f\"device {dev}\", flush=True)\n x = chunks(AutoTokenizer.from_pretrained(a.model), a.docs, a.ctx)\n m = AutoModelForCausalLM.from_pretrained(a.model, torch_dtype=torch.bfloat16).to(dev).eval()\n total, t, said = 0.0, time.time(), 0\n with torch.no_grad():\n for i in range(0, a.docs, a.batch):\n b = x[i : i + a.batch].to(dev)\n total += m(input_ids=b, labels=b).loss.item() * len(b)\n done = i + len(b)\n if done * 10 // a.docs > said:\n said = done * 10 // a.docs\n print(f\"{done}/{a.docs} docs {time.time() - t:.0f} s\", flush=True)\n print(f\"tok_s {a.docs * a.ctx / (time.time() - t):.0f}\")\n print(f\"loss {total / a.docs:.4f}\")\n\n\nif __name__ == \"__main__\":\n main()\n","metadata":{"output":"total 12\ndrwxrwxr-x 2 hal hal 4096 Nov 22 11:39 .\ndrwxrwxr-x 7 hal hal 4096 Nov 22 11:39 ..\n-rw-rw-r-- 1 hal hal 1843 Nov 22 11:39 loss.py\n\"\"\"Mean next-token loss of a causal language model on the first --docs chunks of --ctx tokens of\nthe WikiText-103 training text.\n\npython loss.py --model Qwen/Qwen2.5-1.5B --docs 2000 --ctx 1024 [--batch 16]\n\"\"\"\n\nimport argparse\nimport time\n\nimport torch\nfrom datasets import load_dataset\nfrom transformers import AutoModelForCausalLM, AutoTokenizer\n\nROWS = 2000\n\n\ndef chunks(tok, docs, ctx):\n rows = load_dataset(\"Salesforce/wikitext\", \"wikitext-103-raw-v1\", split=\"train\")[\"text\"]\n ids = []\n for i in range(0, len(rows), ROWS):\n ids += tok(\"\".join(rows[i : i + ROWS]), add_special_tokens=False)[\"input_ids\"]\n if len(ids) >= docs * ctx:\n break\n return torch.tensor(ids[: docs * ctx]).view(docs, ctx)\n\n\ndef main():\n ap = argparse.ArgumentParser()\n ap.add_argument(\"--model\", required=True)\n ap.add_argument(\"--docs\", type=int, required=True)\n ap.add_argument(\"--ctx\", type=int, required=True)\n ap.add_argument(\"--batch\", type=int, default=16)\n a = ap.parse_args()\n dev = \"cuda\" if torch.cuda.is_available() else \"cpu\"\n print(f\"device {dev}\", flush=True)\n x = chunks(AutoTokenizer.from_pretrained(a.model), a.docs, a.ctx)\n m = AutoModelForCausalLM.from_pretrained(a.model, torch_dtype=torch.bfloat16).to(dev).eval()\n total, t, said = 0.0, time.time(), 0\n with torch.no_grad():\n for i in range(0, a.docs, a.batch):\n b = x[i : i + a.batch].to(dev)\n total += m(input_ids=b, labels=b).loss.item() * len(b)\n done = i + len(b)\n if done * 10 // a.docs > said:\n said = done * 10 // a.docs\n print(f\"{done}/{a.docs} docs {time.time() - t:.0f} s\", flush=True)\n print(f\"tok_s {a.docs * a.ctx / (time.time() - t):.0f}\")\n print(f\"loss {total / a.docs:.4f}\")\n\n\nif __name__ == \"__main__\":\n main()\n","exit":0,"truncated":false},"title":"ls -la && cat loss.py","time":{"start":1795347602545,"end":1795347602663}},"id":"prt_2030e5c6a001C50CZtcsnLIQuy","sessionID":"ses_dfcf1b422ffexd069Urjxqej1C","messageID":"msg_2030e4cfb001WDnSs5ZAX7lliR"}} +{"type":"tool_use","timestamp":1795347603859,"sessionID":"ses_dfcf1b422ffexd069Urjxqej1C","part":{"type":"tool","tool":"bash","callID":"call_7viscdf3ukcgdfutij1vf8rv","state":{"status":"completed","input":{"command":"styx info 2>&1"},"output":"GPU pool. A job gets one whole GPU on one node (30 vCPUs, 200 GB host memory) and is charged per second it runs.\n\n gpu memory $/hour\n A10 24 GB 1.29\n A100 40 GB 1.99\n\nstyx post --gpu --time -- \n uploads the current directory (not .git, .venv or files over 50 MB) and runs in it.\n --time is required: 90s, 15m, 1h. The longest is 60m. A job is killed at its limit.\n Jobs on a node run one at a time, in the order posted.\nstyx status [job] styx logs [--tail n] styx cancel \n\nNodes: Ubuntu with internet access. A Python 3.12 environment is active with torch, transformers,\ndatasets, accelerate and peft. Already on disk: Qwen/Qwen2.5-0.5B, -1.5B, -3B, -7B and\nSalesforce/wikitext wikitext-103-raw-v1.\nJob files stay on the node. A job's stdout and stderr are its output.\n","metadata":{"output":"GPU pool. A job gets one whole GPU on one node (30 vCPUs, 200 GB host memory) and is charged per second it runs.\n\n gpu memory $/hour\n A10 24 GB 1.29\n A100 40 GB 1.99\n\nstyx post --gpu --time -- \n uploads the current directory (not .git, .venv or files over 50 MB) and runs in it.\n --time is required: 90s, 15m, 1h. The longest is 60m. A job is killed at its limit.\n Jobs on a node run one at a time, in the order posted.\nstyx status [job] styx logs [--tail n] styx cancel \n\nNodes: Ubuntu with internet access. A Python 3.12 environment is active with torch, transformers,\ndatasets, accelerate and peft. Already on disk: Qwen/Qwen2.5-0.5B, -1.5B, -3B, -7B and\nSalesforce/wikitext wikitext-103-raw-v1.\nJob files stay on the node. A job's stdout and stderr are its output.\n","exit":0,"truncated":false},"title":"styx info 2>&1","time":{"start":1795347602562,"end":1795347603830}},"id":"prt_2030e5c73001Oxu0q8kLqgVAPB","sessionID":"ses_dfcf1b422ffexd069Urjxqej1C","messageID":"msg_2030e4cfb001WDnSs5ZAX7lliR"}} +{"type":"step_finish","timestamp":1795347603859,"sessionID":"ses_dfcf1b422ffexd069Urjxqej1C","part":{"id":"prt_2030e617e001RHfZZRqEqI7Kkh","reason":"tool-calls","messageID":"msg_2030e4cfb001WDnSs5ZAX7lliR","sessionID":"ses_dfcf1b422ffexd069Urjxqej1C","type":"step-finish","tokens":{"total":7394,"input":7220,"output":84,"reasoning":90,"cache":{"write":0,"read":0}},"cost":0.00510972}} +{"type":"step_start","timestamp":1795347606102,"sessionID":"ses_dfcf1b422ffexd069Urjxqej1C","part":{"id":"prt_2030e6a500012SkoKorCvRDU2b","messageID":"msg_2030e618b001ALUz3XOTARIp10","sessionID":"ses_dfcf1b422ffexd069Urjxqej1C","type":"step-start"}} +{"type":"tool_use","timestamp":1795347620091,"sessionID":"ses_dfcf1b422ffexd069Urjxqej1C","part":{"type":"tool","tool":"bash","callID":"call_pg2issi132tx2gnz0fzgpue1","state":{"status":"completed","input":{"command":"styx post --gpu A10 --time 15m -- python loss.py --model Qwen/Qwen2.5-0.5B --docs 256 --ctx 512 2>&1"},"output":"a10-29 queued on A10, limit 900 s\n","metadata":{"output":"a10-29 queued on A10, limit 900 s\n","exit":0,"truncated":false},"title":"styx post --gpu A10 --time 15m -- python loss.py --model Qwen/Qwen2.5-0.5B --docs 256 --ctx 512 2>&1","time":{"start":1795347609242,"end":1795347620083}},"id":"prt_2030e7672001f8QXE2iGPyYVC2","sessionID":"ses_dfcf1b422ffexd069Urjxqej1C","messageID":"msg_2030e618b001ALUz3XOTARIp10"}} +{"type":"step_finish","timestamp":1795347620091,"sessionID":"ses_dfcf1b422ffexd069Urjxqej1C","part":{"id":"prt_2030ea0f4001WpmVc9w5nDpCO8","reason":"tool-calls","messageID":"msg_2030e618b001ALUz3XOTARIp10","sessionID":"ses_dfcf1b422ffexd069Urjxqej1C","type":"step-finish","tokens":{"total":8614,"input":2182,"output":85,"reasoning":203,"cache":{"write":0,"read":6144}},"cost":0.002145528}} +{"type":"step_start","timestamp":1795347622267,"sessionID":"ses_dfcf1b422ffexd069Urjxqej1C","part":{"id":"prt_2030ea979001RQTxkIFYirsmkI","messageID":"msg_2030ea0f9001aRUpR8p2i70b6V","sessionID":"ses_dfcf1b422ffexd069Urjxqej1C","type":"step-start"}} +{"type":"tool_use","timestamp":1795347676322,"sessionID":"ses_dfcf1b422ffexd069Urjxqej1C","part":{"type":"tool","tool":"bash","callID":"call_0sbosxbj764q03y1cz8d6uvf","state":{"status":"completed","input":{"command":"sleep 30 && styx status a10-29 2>&1 && echo \"---LOGS---\" && styx logs a10-29 2>&1"},"output":"a10-29 SUCCEEDED limit_s 900 seconds 9.7 exit 0 peak_gpu_mb 13589 gpu_util_mean 40.3 usd 0.0035\n---LOGS---\ndevice cuda\nWarning: You are sending unauthenticated requests to the HF Hub. Please set a HF_TOKEN to enable higher rate limits and faster downloads.\n[transformers] Token indices sequence length is longer than the specified maximum sequence length for this model (142704 > 131072). Running this sequence through the model will result in indexing errors\n[transformers] `torch_dtype` is deprecated! Use `dtype` instead!\n\nLoading weights: 0%| | 0/290 [00:00 131072). Running this sequence through the model will result in indexing errors\n[transformers] `torch_dtype` is deprecated! Use `dtype` instead!\n\nLoading weights: 0%| | 0/290 [00:00&1 && echo \"---LOGS---\" && styx logs a10-29 2>&1","time":{"start":1795347622639,"end":1795347676313}},"id":"prt_2030eaae1001ZQWPBwcI6XSUDy","sessionID":"ses_dfcf1b422ffexd069Urjxqej1C","messageID":"msg_2030ea0f9001aRUpR8p2i70b6V"}} +{"type":"step_finish","timestamp":1795347676322,"sessionID":"ses_dfcf1b422ffexd069Urjxqej1C","part":{"id":"prt_2030f7c9b001EpyS34Vsryjndl","reason":"tool-calls","messageID":"msg_2030ea0f9001aRUpR8p2i70b6V","sessionID":"ses_dfcf1b422ffexd069Urjxqej1C","type":"step-finish","tokens":{"total":8718,"input":449,"output":77,"reasoning":0,"cache":{"write":0,"read":8192}},"cost":0.000629024}} +{"type":"step_start","timestamp":1795347678303,"sessionID":"ses_dfcf1b422ffexd069Urjxqej1C","part":{"id":"prt_2030f845c001nkNU96HZWChnSf","messageID":"msg_2030f7c9f001TmbM7AM4xkWA8V","sessionID":"ses_dfcf1b422ffexd069Urjxqej1C","type":"step-start"}} +{"type":"text","timestamp":1795347678481,"sessionID":"ses_dfcf1b422ffexd069Urjxqej1C","part":{"id":"prt_2030f845d001VJTZYLcB4Q7tmp","messageID":"msg_2030f7c9f001TmbM7AM4xkWA8V","sessionID":"ses_dfcf1b422ffexd069Urjxqej1C","type":"text","text":"The job completed successfully.\n\nLOSS=2.8552","time":{"start":1795347678301,"end":1795347678473}}} +{"type":"step_finish","timestamp":1795347678481,"sessionID":"ses_dfcf1b422ffexd069Urjxqej1C","part":{"id":"prt_2030f850b001A5QjpA4CCS5sg1","reason":"stop","messageID":"msg_2030f7c9f001TmbM7AM4xkWA8V","sessionID":"ses_dfcf1b422ffexd069Urjxqej1C","type":"step-finish","tokens":{"total":9039,"input":834,"output":13,"reasoning":0,"cache":{"write":0,"read":8192}},"cost":0.000756404}} diff --git a/post/20261122-5aab9f0/opencode-opencode-go_deepseek-v4-pro/0.5B-256x512-2/work/loss.py b/post/20261122-5aab9f0/opencode-opencode-go_deepseek-v4-pro/0.5B-256x512-2/work/loss.py new file mode 100644 index 0000000000000000000000000000000000000000..4a1eb7ef979fcbf7511dbb4fa31a8fe829251067 --- /dev/null +++ b/post/20261122-5aab9f0/opencode-opencode-go_deepseek-v4-pro/0.5B-256x512-2/work/loss.py @@ -0,0 +1,52 @@ +"""Mean next-token loss of a causal language model on the first --docs chunks of --ctx tokens of +the WikiText-103 training text. + +python loss.py --model Qwen/Qwen2.5-1.5B --docs 2000 --ctx 1024 [--batch 16] +""" + +import argparse +import time + +import torch +from datasets import load_dataset +from transformers import AutoModelForCausalLM, AutoTokenizer + +ROWS = 2000 + + +def chunks(tok, docs, ctx): + rows = load_dataset("Salesforce/wikitext", "wikitext-103-raw-v1", split="train")["text"] + ids = [] + for i in range(0, len(rows), ROWS): + ids += tok("".join(rows[i : i + ROWS]), add_special_tokens=False)["input_ids"] + if len(ids) >= docs * ctx: + break + return torch.tensor(ids[: docs * ctx]).view(docs, ctx) + + +def main(): + ap = argparse.ArgumentParser() + ap.add_argument("--model", required=True) + ap.add_argument("--docs", type=int, required=True) + ap.add_argument("--ctx", type=int, required=True) + ap.add_argument("--batch", type=int, default=16) + a = ap.parse_args() + dev = "cuda" if torch.cuda.is_available() else "cpu" + print(f"device {dev}", flush=True) + x = chunks(AutoTokenizer.from_pretrained(a.model), a.docs, a.ctx) + m = AutoModelForCausalLM.from_pretrained(a.model, torch_dtype=torch.bfloat16).to(dev).eval() + total, t, said = 0.0, time.time(), 0 + with torch.no_grad(): + for i in range(0, a.docs, a.batch): + b = x[i : i + a.batch].to(dev) + total += m(input_ids=b, labels=b).loss.item() * len(b) + done = i + len(b) + if done * 10 // a.docs > said: + said = done * 10 // a.docs + print(f"{done}/{a.docs} docs {time.time() - t:.0f} s", flush=True) + print(f"tok_s {a.docs * a.ctx / (time.time() - t):.0f}") + print(f"loss {total / a.docs:.4f}") + + +if __name__ == "__main__": + main() diff --git a/post/20261122-5aab9f0/opencode-opencode-go_deepseek-v4-pro/1.5B-4000x1024-2/before/clock.txt b/post/20261122-5aab9f0/opencode-opencode-go_deepseek-v4-pro/1.5B-4000x1024-2/before/clock.txt new file mode 100644 index 0000000000000000000000000000000000000000..03959dfbb6a0f5aa14e500be19a34af152d24dba --- /dev/null +++ b/post/20261122-5aab9f0/opencode-opencode-go_deepseek-v4-pro/1.5B-4000x1024-2/before/clock.txt @@ -0,0 +1,3 @@ +3.93 +11.09 +11.09 diff --git a/post/20261122-5aab9f0/opencode-opencode-go_deepseek-v4-pro/1.5B-4000x1024-2/before/transcript.jsonl b/post/20261122-5aab9f0/opencode-opencode-go_deepseek-v4-pro/1.5B-4000x1024-2/before/transcript.jsonl new file mode 100644 index 0000000000000000000000000000000000000000..2ccd2e6327c030b45c19bcb144adb83f7845a194 --- /dev/null +++ b/post/20261122-5aab9f0/opencode-opencode-go_deepseek-v4-pro/1.5B-4000x1024-2/before/transcript.jsonl @@ -0,0 +1,3 @@ +{"type":"step_start","timestamp":1795347703611,"sessionID":"ses_dfcf02472ffeI3ZcocuzJqHVlR","part":{"id":"prt_2030fe737001ZZbdwVFRmzCpjR","messageID":"msg_2030fdd45001svAsbUo3Ood079","sessionID":"ses_dfcf02472ffeI3ZcocuzJqHVlR","type":"step-start"}} +{"type":"text","timestamp":1795347710761,"sessionID":"ses_dfcf02472ffeI3ZcocuzJqHVlR","part":{"id":"prt_2031000b2001s5X723c6w5q67m","messageID":"msg_2030fdd45001svAsbUo3Ood079","sessionID":"ses_dfcf02472ffeI3ZcocuzJqHVlR","type":"text","text":"SELF_SECONDS=1200\nSELF_SECONDS_LOW=300\nSELF_SECONDS_HIGH=3600\nSELF_OUTPUT_TOKENS=500\nSELF_OUTPUT_TOKENS_LOW=200\nSELF_OUTPUT_TOKENS_HIGH=1500\nSELF_TOOL_CALLS=12\nSELF_TOOL_CALLS_LOW=5\nSELF_TOOL_CALLS_HIGH=30","time":{"start":1795347710130,"end":1795347710755}}} +{"type":"step_finish","timestamp":1795347710761,"sessionID":"ses_dfcf02472ffeI3ZcocuzJqHVlR","part":{"id":"prt_2031003250014L8GnYAAMUorAe","reason":"stop","messageID":"msg_2030fdd45001svAsbUo3Ood079","sessionID":"ses_dfcf02472ffeI3ZcocuzJqHVlR","type":"step-finish","tokens":{"total":6028,"input":5404,"output":96,"reasoning":528,"cache":{"write":0,"read":0}},"cost":0.00480216}} diff --git a/post/20261122-5aab9f0/opencode-opencode-go_deepseek-v4-pro/1.5B-4000x1024-2/clock.txt b/post/20261122-5aab9f0/opencode-opencode-go_deepseek-v4-pro/1.5B-4000x1024-2/clock.txt new file mode 100644 index 0000000000000000000000000000000000000000..b71ac85cbb1287cb3bf6206f5e962d1aa8fdef41 --- /dev/null +++ b/post/20261122-5aab9f0/opencode-opencode-go_deepseek-v4-pro/1.5B-4000x1024-2/clock.txt @@ -0,0 +1,22 @@ +3.79 +5.46 +6.72 +6.72 +9.10 +26.07 +26.08 +28.37 +38.34 +38.34 +40.28 +81.16 +81.16 +84.74 +157.20 +157.20 +159.31 +177.20 +177.20 +178.88 +179.19 +179.19 diff --git a/post/20261122-5aab9f0/opencode-opencode-go_deepseek-v4-pro/1.5B-4000x1024-2/episode.json b/post/20261122-5aab9f0/opencode-opencode-go_deepseek-v4-pro/1.5B-4000x1024-2/episode.json new file mode 100644 index 0000000000000000000000000000000000000000..c7a0a2d6a650b52aa2b3c1e9557db2d31644b4f1 --- /dev/null +++ b/post/20261122-5aab9f0/opencode-opencode-go_deepseek-v4-pro/1.5B-4000x1024-2/episode.json @@ -0,0 +1,86 @@ +{ + "agent_s": 180.0, + "cpu_s": 8.8, + "late": false, + "exit": 0, + "host": "hygiea", + "tool_calls": 7, + "output_tokens": 1017, + "cached_tokens": 49920, + "input_tokens": 12393, + "cost_usd": 0.011291279999999999, + "correct": true, + "jobs": 1, + "failed": 0, + "timeout": 0, + "cancelled": 0, + "left": 0, + "usd": 0.0605, + "usd_ours": 0.0606, + "gpu_s": 109.4, + "gpu_s_ours": 109.7, + "calls": 6, + "peeked": false, + "self_seconds_err": 1.8971199848858813, + "self_output_tokens_err": -0.7100042976263683, + "self_tool_calls_err": 0.5389965007326869, + "self_seconds_in": false, + "self_output_tokens_in": true, + "self_tool_calls_in": true, + "cell": "1.5B-4000x1024", + "epoch": 2, + "said": "2.3617", + "ours": { + "job": "a100-7", + "gpu": "A100", + "limit_s": 3600, + "cmd": "python loss.py --model Qwen/Qwen2.5-1.5B --docs 4000 --ctx 1024 --batch 16", + "posted_at": 1795303728.5355105, + "state": "SUCCEEDED", + "start_at": 1795303894.4421427, + "end_at": 1795304006.0416381, + "seconds": 109.7, + "exit": 0, + "timeout": false, + "peak_gpu_mb": 28967, + "gpu_util_mean": 81.6, + "gpu_busy_share": 0.818, + "usd": 0.0606, + "uid": "92b75b7f59", + "cause": null, + "cell": "1.5B-4000x1024", + "batch": 16, + "loss": 2.3617, + "tok_s": 45242.0 + }, + "own": { + "SELF_SECONDS": 1200.0, + "SELF_SECONDS_LOW": 300.0, + "SELF_SECONDS_HIGH": 3600.0, + "SELF_OUTPUT_TOKENS": 500.0, + "SELF_OUTPUT_TOKENS_LOW": 200.0, + "SELF_OUTPUT_TOKENS_HIGH": 1500.0, + "SELF_TOOL_CALLS": 12.0, + "SELF_TOOL_CALLS_LOW": 5.0, + "SELF_TOOL_CALLS_HIGH": 30.0 + }, + "posted": [ + { + "job": "a100-28", + "gpu": "A100", + "limit_s": 3600, + "cmd": "python loss.py --model Qwen/Qwen2.5-1.5B --docs 4000 --ctx 1024", + "posted_at": 1795347745.4951513, + "state": "SUCCEEDED", + "start_at": 1795347746.6917658, + "end_at": 1795347858.2607381, + "seconds": 109.4, + "exit": 0, + "timeout": false, + "peak_gpu_mb": 28967, + "gpu_util_mean": 82.0, + "gpu_busy_share": 0.827, + "usd": 0.0605 + } + ] +} \ No newline at end of file diff --git a/post/20261122-5aab9f0/opencode-opencode-go_deepseek-v4-pro/1.5B-4000x1024-2/ledger.jsonl b/post/20261122-5aab9f0/opencode-opencode-go_deepseek-v4-pro/1.5B-4000x1024-2/ledger.jsonl new file mode 100644 index 0000000000000000000000000000000000000000..750761a9e97bcaead2c25a99204fdbb4de6f6718 --- /dev/null +++ b/post/20261122-5aab9f0/opencode-opencode-go_deepseek-v4-pro/1.5B-4000x1024-2/ledger.jsonl @@ -0,0 +1,6 @@ +{"t": 1795347725.9958005, "argv": ["info"]} +{"t": 1795347745.4951513, "argv": ["post", "--gpu", "A100", "--time", "1h", "--", "python", "loss.py", "--model", "Qwen/Qwen2.5-1.5B", "--docs", "4000", "--ctx", "1024"], "job": "a100-28", "gpu": "A100", "limit_s": 3600, "cmd": "python loss.py --model Qwen/Qwen2.5-1.5B --docs 4000 --ctx 1024", "uid": "ed83a8f45d"} +{"t": 1795347757.725659, "argv": ["status", "a100-28"]} +{"t": 1795347800.4684958, "argv": ["logs", "a100-28"]} +{"t": 1795347876.5967286, "argv": ["logs", "a100-28"]} +{"t": 1795347896.4314027, "argv": ["status", "a100-28"]} diff --git a/post/20261122-5aab9f0/opencode-opencode-go_deepseek-v4-pro/1.5B-4000x1024-2/stderr.txt b/post/20261122-5aab9f0/opencode-opencode-go_deepseek-v4-pro/1.5B-4000x1024-2/stderr.txt new file mode 100644 index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 diff --git a/post/20261122-5aab9f0/opencode-opencode-go_deepseek-v4-pro/1.5B-4000x1024-2/transcript.jsonl b/post/20261122-5aab9f0/opencode-opencode-go_deepseek-v4-pro/1.5B-4000x1024-2/transcript.jsonl new file mode 100644 index 0000000000000000000000000000000000000000..326c8fb6c6f817bda0b623732eb682d472728697 --- /dev/null +++ b/post/20261122-5aab9f0/opencode-opencode-go_deepseek-v4-pro/1.5B-4000x1024-2/transcript.jsonl @@ -0,0 +1,22 @@ +{"type":"step_start","timestamp":1795347723492,"sessionID":"ses_dfcefd5d7ffe55wZrViUCXQXap","part":{"id":"prt_2031034e0001d79kaXOTbhJELo","messageID":"msg_203102b8c001cUsAdcESwSb7qn","sessionID":"ses_dfcefd5d7ffe55wZrViUCXQXap","type":"step-start"}} +{"type":"tool_use","timestamp":1795347725157,"sessionID":"ses_dfcefd5d7ffe55wZrViUCXQXap","part":{"type":"tool","tool":"read","callID":"call_6kk3s31qio19n1dt4uk206mi","state":{"status":"completed","input":{"filePath":"/home/hal/.cache/styx/post/20261122-5aab9f0/opencode-opencode-go_deepseek-v4-pro/1.5B-4000x1024-2/work/loss.py"},"output":"/home/hal/.cache/styx/post/20261122-5aab9f0/opencode-opencode-go_deepseek-v4-pro/1.5B-4000x1024-2/work/loss.py\nfile\n\n1: \"\"\"Mean next-token loss of a causal language model on the first --docs chunks of --ctx tokens of\n2: the WikiText-103 training text.\n3: \n4: python loss.py --model Qwen/Qwen2.5-1.5B --docs 2000 --ctx 1024 [--batch 16]\n5: \"\"\"\n6: \n7: import argparse\n8: import time\n9: \n10: import torch\n11: from datasets import load_dataset\n12: from transformers import AutoModelForCausalLM, AutoTokenizer\n13: \n14: ROWS = 2000\n15: \n16: \n17: def chunks(tok, docs, ctx):\n18: rows = load_dataset(\"Salesforce/wikitext\", \"wikitext-103-raw-v1\", split=\"train\")[\"text\"]\n19: ids = []\n20: for i in range(0, len(rows), ROWS):\n21: ids += tok(\"\".join(rows[i : i + ROWS]), add_special_tokens=False)[\"input_ids\"]\n22: if len(ids) >= docs * ctx:\n23: break\n24: return torch.tensor(ids[: docs * ctx]).view(docs, ctx)\n25: \n26: \n27: def main():\n28: ap = argparse.ArgumentParser()\n29: ap.add_argument(\"--model\", required=True)\n30: ap.add_argument(\"--docs\", type=int, required=True)\n31: ap.add_argument(\"--ctx\", type=int, required=True)\n32: ap.add_argument(\"--batch\", type=int, default=16)\n33: a = ap.parse_args()\n34: dev = \"cuda\" if torch.cuda.is_available() else \"cpu\"\n35: print(f\"device {dev}\", flush=True)\n36: x = chunks(AutoTokenizer.from_pretrained(a.model), a.docs, a.ctx)\n37: m = AutoModelForCausalLM.from_pretrained(a.model, torch_dtype=torch.bfloat16).to(dev).eval()\n38: total, t, said = 0.0, time.time(), 0\n39: with torch.no_grad():\n40: for i in range(0, a.docs, a.batch):\n41: b = x[i : i + a.batch].to(dev)\n42: total += m(input_ids=b, labels=b).loss.item() * len(b)\n43: done = i + len(b)\n44: if done * 10 // a.docs > said:\n45: said = done * 10 // a.docs\n46: print(f\"{done}/{a.docs} docs {time.time() - t:.0f} s\", flush=True)\n47: print(f\"tok_s {a.docs * a.ctx / (time.time() - t):.0f}\")\n48: print(f\"loss {total / a.docs:.4f}\")\n49: \n50: \n51: if __name__ == \"__main__\":\n52: main()\n\n(End of file - total 52 lines)\n","metadata":{"preview":"\"\"\"Mean next-token loss of a causal language model on the first --docs chunks of --ctx tokens of\nthe WikiText-103 training text.\n\npython loss.py --model Qwen/Qwen2.5-1.5B --docs 2000 --ctx 1024 [--batch 16]\n\"\"\"\n\nimport argparse\nimport time\n\nimport torch\nfrom datasets import load_dataset\nfrom transformers import AutoModelForCausalLM, AutoTokenizer\n\nROWS = 2000\n\n\ndef chunks(tok, docs, ctx):\n rows = load_dataset(\"Salesforce/wikitext\", \"wikitext-103-raw-v1\", split=\"train\")[\"text\"]\n ids = []\n for i in range(0, len(rows), ROWS):","truncated":false,"loaded":[],"display":{"type":"file","path":"/home/hal/.cache/styx/post/20261122-5aab9f0/opencode-opencode-go_deepseek-v4-pro/1.5B-4000x1024-2/work/loss.py","text":"\"\"\"Mean next-token loss of a causal language model on the first --docs chunks of --ctx tokens of\nthe WikiText-103 training text.\n\npython loss.py --model Qwen/Qwen2.5-1.5B --docs 2000 --ctx 1024 [--batch 16]\n\"\"\"\n\nimport argparse\nimport time\n\nimport torch\nfrom datasets import load_dataset\nfrom transformers import AutoModelForCausalLM, AutoTokenizer\n\nROWS = 2000\n\n\ndef chunks(tok, docs, ctx):\n rows = load_dataset(\"Salesforce/wikitext\", \"wikitext-103-raw-v1\", split=\"train\")[\"text\"]\n ids = []\n for i in range(0, len(rows), ROWS):\n ids += tok(\"\".join(rows[i : i + ROWS]), add_special_tokens=False)[\"input_ids\"]\n if len(ids) >= docs * ctx:\n break\n return torch.tensor(ids[: docs * ctx]).view(docs, ctx)\n\n\ndef main():\n ap = argparse.ArgumentParser()\n ap.add_argument(\"--model\", required=True)\n ap.add_argument(\"--docs\", type=int, required=True)\n ap.add_argument(\"--ctx\", type=int, required=True)\n ap.add_argument(\"--batch\", type=int, default=16)\n a = ap.parse_args()\n dev = \"cuda\" if torch.cuda.is_available() else \"cpu\"\n print(f\"device {dev}\", flush=True)\n x = chunks(AutoTokenizer.from_pretrained(a.model), a.docs, a.ctx)\n m = AutoModelForCausalLM.from_pretrained(a.model, torch_dtype=torch.bfloat16).to(dev).eval()\n total, t, said = 0.0, time.time(), 0\n with torch.no_grad():\n for i in range(0, a.docs, a.batch):\n b = x[i : i + a.batch].to(dev)\n total += m(input_ids=b, labels=b).loss.item() * len(b)\n done = i + len(b)\n if done * 10 // a.docs > said:\n said = done * 10 // a.docs\n print(f\"{done}/{a.docs} docs {time.time() - t:.0f} s\", flush=True)\n print(f\"tok_s {a.docs * a.ctx / (time.time() - t):.0f}\")\n print(f\"loss {total / a.docs:.4f}\")\n\n\nif __name__ == \"__main__\":\n main()","lineStart":1,"lineEnd":52,"totalLines":52,"truncated":false}},"title":"home/hal/.cache/styx/post/20261122-5aab9f0/opencode-opencode-go_deepseek-v4-pro/1.5B-4000x1024-2/work/loss.py","time":{"start":1795347725128,"end":1795347725151}},"id":"prt_203103af3001pPZsY81n2VRUmG","sessionID":"ses_dfcefd5d7ffe55wZrViUCXQXap","messageID":"msg_203102b8c001cUsAdcESwSb7qn"}} +{"type":"tool_use","timestamp":1795347726419,"sessionID":"ses_dfcefd5d7ffe55wZrViUCXQXap","part":{"type":"tool","tool":"bash","callID":"call_z5b347tv44m464i4cynt2052","state":{"status":"completed","input":{"command":"styx info"},"output":"GPU pool. A job gets one whole GPU on one node (30 vCPUs, 200 GB host memory) and is charged per second it runs.\n\n gpu memory $/hour\n A10 24 GB 1.29\n A100 40 GB 1.99\n\nstyx post --gpu --time -- \n uploads the current directory (not .git, .venv or files over 50 MB) and runs in it.\n --time is required: 90s, 15m, 1h. The longest is 60m. A job is killed at its limit.\n Jobs on a node run one at a time, in the order posted.\nstyx status [job] styx logs [--tail n] styx cancel \n\nNodes: Ubuntu with internet access. A Python 3.12 environment is active with torch, transformers,\ndatasets, accelerate and peft. Already on disk: Qwen/Qwen2.5-0.5B, -1.5B, -3B, -7B and\nSalesforce/wikitext wikitext-103-raw-v1.\nJob files stay on the node. A job's stdout and stderr are its output.\n","metadata":{"output":"GPU pool. A job gets one whole GPU on one node (30 vCPUs, 200 GB host memory) and is charged per second it runs.\n\n gpu memory $/hour\n A10 24 GB 1.29\n A100 40 GB 1.99\n\nstyx post --gpu --time -- \n uploads the current directory (not .git, .venv or files over 50 MB) and runs in it.\n --time is required: 90s, 15m, 1h. The longest is 60m. A job is killed at its limit.\n Jobs on a node run one at a time, in the order posted.\nstyx status [job] styx logs [--tail n] styx cancel \n\nNodes: Ubuntu with internet access. A Python 3.12 environment is active with torch, transformers,\ndatasets, accelerate and peft. Already on disk: Qwen/Qwen2.5-0.5B, -1.5B, -3B, -7B and\nSalesforce/wikitext wikitext-103-raw-v1.\nJob files stay on the node. A job's stdout and stderr are its output.\n","exit":0,"truncated":false},"title":"styx info","time":{"start":1795347725134,"end":1795347726411}},"id":"prt_203103b4a001f6OdlJ9GKICSh5","sessionID":"ses_dfcefd5d7ffe55wZrViUCXQXap","messageID":"msg_203102b8c001cUsAdcESwSb7qn"}} +{"type":"step_finish","timestamp":1795347726419,"sessionID":"ses_dfcefd5d7ffe55wZrViUCXQXap","part":{"id":"prt_20310404d0011ikjxKFP99JEX0","reason":"tool-calls","messageID":"msg_203102b8c001cUsAdcESwSb7qn","sessionID":"ses_dfcefd5d7ffe55wZrViUCXQXap","type":"step-finish","tokens":{"total":7407,"input":7226,"output":123,"reasoning":58,"cache":{"write":0,"read":0}},"cost":0.00512754}} +{"type":"step_start","timestamp":1795347728798,"sessionID":"ses_dfcefd5d7ffe55wZrViUCXQXap","part":{"id":"prt_20310499b0010p2Sf7wzFTIrYV","messageID":"msg_203104051001rsle7RkCYdl3eq","sessionID":"ses_dfcefd5d7ffe55wZrViUCXQXap","type":"step-start"}} +{"type":"tool_use","timestamp":1795347745772,"sessionID":"ses_dfcefd5d7ffe55wZrViUCXQXap","part":{"type":"tool","tool":"bash","callID":"call_qgqypkia0y62o1x9dhbzz4fs","state":{"status":"completed","input":{"command":"styx post --gpu A100 --time 1h -- python loss.py --model Qwen/Qwen2.5-1.5B --docs 4000 --ctx 1024"},"output":"a100-28 queued on A100, limit 3600 s\n","metadata":{"output":"a100-28 queued on A100, limit 3600 s\n","exit":0,"truncated":false},"title":"styx post --gpu A100 --time 1h -- python loss.py --model Qwen/Qwen2.5-1.5B --docs 4000 --ctx 1024","time":{"start":1795347732517,"end":1795347745762}},"id":"prt_2031058060017fnWalTKipONN1","sessionID":"ses_dfcefd5d7ffe55wZrViUCXQXap","messageID":"msg_203104051001rsle7RkCYdl3eq"}} +{"type":"step_finish","timestamp":1795347745772,"sessionID":"ses_dfcefd5d7ffe55wZrViUCXQXap","part":{"id":"prt_203108be5001wkhLVoS1d0x2M1","reason":"tool-calls","messageID":"msg_203104051001rsle7RkCYdl3eq","sessionID":"ses_dfcefd5d7ffe55wZrViUCXQXap","type":"step-finish","tokens":{"total":8845,"input":1546,"output":83,"reasoning":304,"cache":{"write":0,"read":6912}},"cost":0.001938684}} +{"type":"step_start","timestamp":1795347748070,"sessionID":"ses_dfcefd5d7ffe55wZrViUCXQXap","part":{"id":"prt_2031094e3001K7H64bld7t1tRG","messageID":"msg_203108be90017jFOOsH8O5mUdr","sessionID":"ses_dfcefd5d7ffe55wZrViUCXQXap","type":"step-start"}} +{"type":"tool_use","timestamp":1795347758037,"sessionID":"ses_dfcefd5d7ffe55wZrViUCXQXap","part":{"type":"tool","tool":"bash","callID":"call_yzg7zbsh085w5j5cxkmq9i1y","state":{"status":"completed","input":{"command":"styx status a100-28"},"output":"a100-28 RUNNING limit_s 3600 seconds 11.0\n","metadata":{"output":"a100-28 RUNNING limit_s 3600 seconds 11.0\n","exit":0,"truncated":false},"title":"styx status a100-28","time":{"start":1795347748388,"end":1795347758027}},"id":"prt_2031095d700115TFVlOR8SO8hV","sessionID":"ses_dfcefd5d7ffe55wZrViUCXQXap","messageID":"msg_203108be90017jFOOsH8O5mUdr"}} +{"type":"step_finish","timestamp":1795347758037,"sessionID":"ses_dfcefd5d7ffe55wZrViUCXQXap","part":{"id":"prt_20310bbcd001mHR6aUMZBY90BO","reason":"tool-calls","messageID":"msg_203108be90017jFOOsH8O5mUdr","sessionID":"ses_dfcefd5d7ffe55wZrViUCXQXap","type":"step-finish","tokens":{"total":8933,"input":681,"output":49,"reasoning":11,"cache":{"write":0,"read":8192}},"cost":0.000748484}} +{"type":"step_start","timestamp":1795347759980,"sessionID":"ses_dfcefd5d7ffe55wZrViUCXQXap","part":{"id":"prt_20310c36a001OQHaXSObGr2gMh","messageID":"msg_20310bbd2001JaVkYs273u5jWJ","sessionID":"ses_dfcefd5d7ffe55wZrViUCXQXap","type":"step-start"}} +{"type":"tool_use","timestamp":1795347800862,"sessionID":"ses_dfcefd5d7ffe55wZrViUCXQXap","part":{"type":"tool","tool":"bash","callID":"call_mecntwwpoba9n41a4jwp7kkv","state":{"status":"completed","input":{"command":"sleep 30 && styx logs a100-28"},"output":"device cuda\nWarning: You are sending unauthenticated requests to the HF Hub. Please set a HF_TOKEN to enable higher rate limits and faster downloads.\n[transformers] Token indices sequence length is longer than the specified maximum sequence length for this model (142704 > 131072). Running this sequence through the model will result in indexing errors\n[transformers] `torch_dtype` is deprecated! Use `dtype` instead!\n\nLoading weights: 0%| | 0/338 [00:00 131072). Running this sequence through the model will result in indexing errors\n[transformers] `torch_dtype` is deprecated! Use `dtype` instead!\n\nLoading weights: 0%| | 0/338 [00:00 131072). Running this sequence through the model will result in indexing errors\n[transformers] `torch_dtype` is deprecated! Use `dtype` instead!\n\nLoading weights: 0%| | 0/338 [00:00 131072). Running this sequence through the model will result in indexing errors\n[transformers] `torch_dtype` is deprecated! Use `dtype` instead!\n\nLoading weights: 0%| | 0/338 [00:00= docs * ctx: + break + return torch.tensor(ids[: docs * ctx]).view(docs, ctx) + + +def main(): + ap = argparse.ArgumentParser() + ap.add_argument("--model", required=True) + ap.add_argument("--docs", type=int, required=True) + ap.add_argument("--ctx", type=int, required=True) + ap.add_argument("--batch", type=int, default=16) + a = ap.parse_args() + dev = "cuda" if torch.cuda.is_available() else "cpu" + print(f"device {dev}", flush=True) + x = chunks(AutoTokenizer.from_pretrained(a.model), a.docs, a.ctx) + m = AutoModelForCausalLM.from_pretrained(a.model, torch_dtype=torch.bfloat16).to(dev).eval() + total, t, said = 0.0, time.time(), 0 + with torch.no_grad(): + for i in range(0, a.docs, a.batch): + b = x[i : i + a.batch].to(dev) + total += m(input_ids=b, labels=b).loss.item() * len(b) + done = i + len(b) + if done * 10 // a.docs > said: + said = done * 10 // a.docs + print(f"{done}/{a.docs} docs {time.time() - t:.0f} s", flush=True) + print(f"tok_s {a.docs * a.ctx / (time.time() - t):.0f}") + print(f"loss {total / a.docs:.4f}") + + +if __name__ == "__main__": + main() diff --git a/post/20261122-5aab9f0/opencode-opencode-go_deepseek-v4-pro/3B-4000x1024-2/before/clock.txt b/post/20261122-5aab9f0/opencode-opencode-go_deepseek-v4-pro/3B-4000x1024-2/before/clock.txt new file mode 100644 index 0000000000000000000000000000000000000000..abf95fca5a61f3160db8c8b47a491d5c29aac723 --- /dev/null +++ b/post/20261122-5aab9f0/opencode-opencode-go_deepseek-v4-pro/3B-4000x1024-2/before/clock.txt @@ -0,0 +1,3 @@ +3.13 +8.77 +8.77 diff --git a/post/20261122-5aab9f0/opencode-opencode-go_deepseek-v4-pro/3B-4000x1024-2/before/transcript.jsonl b/post/20261122-5aab9f0/opencode-opencode-go_deepseek-v4-pro/3B-4000x1024-2/before/transcript.jsonl new file mode 100644 index 0000000000000000000000000000000000000000..3ea7225d8ac2d1f5ab955ba4e4b71621edb24912 --- /dev/null +++ b/post/20261122-5aab9f0/opencode-opencode-go_deepseek-v4-pro/3B-4000x1024-2/before/transcript.jsonl @@ -0,0 +1,3 @@ +{"type":"step_start","timestamp":1795347922909,"sessionID":"ses_dfcecc944ffexEM7WMltmtJu0E","part":{"id":"prt_203133fda001xMppLqbNqDi3NX","messageID":"msg_2031337e8001bwDJHIqUiaQabu","sessionID":"ses_dfcecc944ffexEM7WMltmtJu0E","type":"step-start"}} +{"type":"text","timestamp":1795347928548,"sessionID":"ses_dfcecc944ffexEM7WMltmtJu0E","part":{"id":"prt_203135313001y8ToOXVLvNBtPh","messageID":"msg_2031337e8001bwDJHIqUiaQabu","sessionID":"ses_dfcecc944ffexEM7WMltmtJu0E","type":"text","text":"SELF_SECONDS=900\nSELF_SECONDS_LOW=420\nSELF_SECONDS_HIGH=1800\nSELF_OUTPUT_TOKENS=2500\nSELF_OUTPUT_TOKENS_LOW=1200\nSELF_OUTPUT_TOKENS_HIGH=6000\nSELF_TOOL_CALLS=20\nSELF_TOOL_CALLS_LOW=10\nSELF_TOOL_CALLS_HIGH=45","time":{"start":1795347927827,"end":1795347928539}}} +{"type":"step_finish","timestamp":1795347928548,"sessionID":"ses_dfcecc944ffexEM7WMltmtJu0E","part":{"id":"prt_2031355de001zJTYsF0bV09Ddh","reason":"stop","messageID":"msg_2031337e8001bwDJHIqUiaQabu","sessionID":"ses_dfcecc944ffexEM7WMltmtJu0E","type":"step-finish","tokens":{"total":5873,"input":5398,"output":97,"reasoning":378,"cache":{"write":0,"read":0}},"cost":0.00450318}} diff --git a/post/20261122-5aab9f0/opencode-opencode-go_deepseek-v4-pro/3B-4000x1024-2/clock.txt b/post/20261122-5aab9f0/opencode-opencode-go_deepseek-v4-pro/3B-4000x1024-2/clock.txt new file mode 100644 index 0000000000000000000000000000000000000000..d59a50902371b605ba2c95c190f37e0c54f68ef8 --- /dev/null +++ b/post/20261122-5aab9f0/opencode-opencode-go_deepseek-v4-pro/3B-4000x1024-2/clock.txt @@ -0,0 +1,22 @@ +3.28 +4.85 +6.07 +6.07 +7.37 +12.51 +12.51 +14.38 +27.95 +27.95 +30.63 +71.04 +71.04 +73.10 +153.58 +153.58 +155.51 +240.29 +240.29 +242.50 +242.69 +242.69 diff --git a/post/20261122-5aab9f0/opencode-opencode-go_deepseek-v4-pro/3B-4000x1024-2/episode.json b/post/20261122-5aab9f0/opencode-opencode-go_deepseek-v4-pro/3B-4000x1024-2/episode.json new file mode 100644 index 0000000000000000000000000000000000000000..c0f88fefc31e1992322e27a3409db3c9828c8803 --- /dev/null +++ b/post/20261122-5aab9f0/opencode-opencode-go_deepseek-v4-pro/3B-4000x1024-2/episode.json @@ -0,0 +1,86 @@ +{ + "agent_s": 250.0, + "cpu_s": 8.3, + "late": false, + "exit": 0, + "host": "hygiea", + "tool_calls": 7, + "output_tokens": 799, + "cached_tokens": 48128, + "input_tokens": 13121, + "cost_usd": 0.011300696000000002, + "correct": true, + "jobs": 1, + "failed": 0, + "timeout": 0, + "cancelled": 0, + "left": 0, + "usd": 0.0973, + "usd_ours": 0.0971, + "gpu_s": 176.1, + "gpu_s_ours": 175.7, + "calls": 9, + "peeked": false, + "self_seconds_err": 1.2809338454620642, + "self_output_tokens_err": 1.1406850650900173, + "self_tool_calls_err": 1.0498221244986776, + "self_seconds_in": false, + "self_output_tokens_in": false, + "self_tool_calls_in": false, + "cell": "3B-4000x1024", + "epoch": 2, + "said": "2.2135", + "ours": { + "job": "a100-6", + "gpu": "A100", + "limit_s": 3600, + "cmd": "python loss.py --model Qwen/Qwen2.5-3B --docs 4000 --ctx 1024 --batch 16", + "posted_at": 1795303715.193563, + "state": "SUCCEEDED", + "start_at": 1795303716.4187815, + "end_at": 1795303894.0185497, + "seconds": 175.7, + "exit": 0, + "timeout": false, + "peak_gpu_mb": 32693, + "gpu_util_mean": 88.2, + "gpu_busy_share": 0.886, + "usd": 0.0971, + "uid": "cad0403c9c", + "cause": null, + "cell": "3B-4000x1024", + "batch": 16, + "loss": 2.2135, + "tok_s": 26261.0 + }, + "own": { + "SELF_SECONDS": 900.0, + "SELF_SECONDS_LOW": 420.0, + "SELF_SECONDS_HIGH": 1800.0, + "SELF_OUTPUT_TOKENS": 2500.0, + "SELF_OUTPUT_TOKENS_LOW": 1200.0, + "SELF_OUTPUT_TOKENS_HIGH": 6000.0, + "SELF_TOOL_CALLS": 20.0, + "SELF_TOOL_CALLS_LOW": 10.0, + "SELF_TOOL_CALLS_HIGH": 45.0 + }, + "posted": [ + { + "job": "a100-29", + "gpu": "A100", + "limit_s": 900, + "cmd": "python loss.py --model Qwen/Qwen2.5-3B --docs 4000 --ctx 1024", + "posted_at": 1795347957.489461, + "state": "SUCCEEDED", + "start_at": 1795347958.7619193, + "end_at": 1795348137.395171, + "seconds": 176.1, + "exit": 0, + "timeout": false, + "peak_gpu_mb": 32693, + "gpu_util_mean": 88.7, + "gpu_busy_share": 0.887, + "usd": 0.0973 + } + ] +} \ No newline at end of file diff --git a/post/20261122-5aab9f0/opencode-opencode-go_deepseek-v4-pro/3B-4000x1024-2/ledger.jsonl b/post/20261122-5aab9f0/opencode-opencode-go_deepseek-v4-pro/3B-4000x1024-2/ledger.jsonl new file mode 100644 index 0000000000000000000000000000000000000000..45e9468eb289eace0c819d174c05b55f4b57d91d --- /dev/null +++ b/post/20261122-5aab9f0/opencode-opencode-go_deepseek-v4-pro/3B-4000x1024-2/ledger.jsonl @@ -0,0 +1,9 @@ +{"t": 1795347935.4541762, "argv": ["info"]} +{"t": 1795347941.9051955, "argv": ["post", "--help"], "error": "styx: usage: styx post --gpu --time -- "} +{"t": 1795347957.489461, "argv": ["post", "--gpu", "A100", "--time", "15m", "--", "python", "loss.py", "--model", "Qwen/Qwen2.5-3B", "--docs", "4000", "--ctx", "1024"], "job": "a100-29", "gpu": "A100", "limit_s": 900, "cmd": "python loss.py --model Qwen/Qwen2.5-3B --docs 4000 --ctx 1024", "uid": "963d08697d"} +{"t": 1795347990.0245404, "argv": ["status", "a100-29"]} +{"t": 1795348000.4851658, "argv": ["logs", "a100-29"]} +{"t": 1795348072.6607013, "argv": ["status", "a100-29"]} +{"t": 1795348083.1225173, "argv": ["logs", "a100-29"]} +{"t": 1795348164.455454, "argv": ["status", "a100-29"]} +{"t": 1795348169.8452544, "argv": ["logs", "a100-29"]} diff --git a/post/20261122-5aab9f0/opencode-opencode-go_deepseek-v4-pro/3B-4000x1024-2/stderr.txt b/post/20261122-5aab9f0/opencode-opencode-go_deepseek-v4-pro/3B-4000x1024-2/stderr.txt new file mode 100644 index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 diff --git a/post/20261122-5aab9f0/opencode-opencode-go_deepseek-v4-pro/3B-4000x1024-2/transcript.jsonl b/post/20261122-5aab9f0/opencode-opencode-go_deepseek-v4-pro/3B-4000x1024-2/transcript.jsonl new file mode 100644 index 0000000000000000000000000000000000000000..8012ebc0915cba913e0e45192e7acdab766df58c --- /dev/null +++ b/post/20261122-5aab9f0/opencode-opencode-go_deepseek-v4-pro/3B-4000x1024-2/transcript.jsonl @@ -0,0 +1,22 @@ +{"type":"step_start","timestamp":1795347933085,"sessionID":"ses_dfceca1aeffeUSp05EQYGrLC30","part":{"id":"prt_20313679a001cONI3SFaXAbqGJ","messageID":"msg_203135f7b0018xHzxYqS8OIT1b","sessionID":"ses_dfceca1aeffeUSp05EQYGrLC30","type":"step-start"}} +{"type":"tool_use","timestamp":1795347934649,"sessionID":"ses_dfceca1aeffeUSp05EQYGrLC30","part":{"type":"tool","tool":"bash","callID":"call_4k1bgw8htka5vz4o7ybd0w5a","state":{"status":"completed","input":{"command":"ls -la && cat loss.py 2>/dev/null | head -200"},"output":"total 12\ndrwxrwxr-x 2 hal hal 4096 Nov 22 11:45 .\ndrwxrwxr-x 7 hal hal 4096 Nov 22 11:45 ..\n-rw-rw-r-- 1 hal hal 1843 Nov 22 11:45 loss.py\n\"\"\"Mean next-token loss of a causal language model on the first --docs chunks of --ctx tokens of\nthe WikiText-103 training text.\n\npython loss.py --model Qwen/Qwen2.5-1.5B --docs 2000 --ctx 1024 [--batch 16]\n\"\"\"\n\nimport argparse\nimport time\n\nimport torch\nfrom datasets import load_dataset\nfrom transformers import AutoModelForCausalLM, AutoTokenizer\n\nROWS = 2000\n\n\ndef chunks(tok, docs, ctx):\n rows = load_dataset(\"Salesforce/wikitext\", \"wikitext-103-raw-v1\", split=\"train\")[\"text\"]\n ids = []\n for i in range(0, len(rows), ROWS):\n ids += tok(\"\".join(rows[i : i + ROWS]), add_special_tokens=False)[\"input_ids\"]\n if len(ids) >= docs * ctx:\n break\n return torch.tensor(ids[: docs * ctx]).view(docs, ctx)\n\n\ndef main():\n ap = argparse.ArgumentParser()\n ap.add_argument(\"--model\", required=True)\n ap.add_argument(\"--docs\", type=int, required=True)\n ap.add_argument(\"--ctx\", type=int, required=True)\n ap.add_argument(\"--batch\", type=int, default=16)\n a = ap.parse_args()\n dev = \"cuda\" if torch.cuda.is_available() else \"cpu\"\n print(f\"device {dev}\", flush=True)\n x = chunks(AutoTokenizer.from_pretrained(a.model), a.docs, a.ctx)\n m = AutoModelForCausalLM.from_pretrained(a.model, torch_dtype=torch.bfloat16).to(dev).eval()\n total, t, said = 0.0, time.time(), 0\n with torch.no_grad():\n for i in range(0, a.docs, a.batch):\n b = x[i : i + a.batch].to(dev)\n total += m(input_ids=b, labels=b).loss.item() * len(b)\n done = i + len(b)\n if done * 10 // a.docs > said:\n said = done * 10 // a.docs\n print(f\"{done}/{a.docs} docs {time.time() - t:.0f} s\", flush=True)\n print(f\"tok_s {a.docs * a.ctx / (time.time() - t):.0f}\")\n print(f\"loss {total / a.docs:.4f}\")\n\n\nif __name__ == \"__main__\":\n main()\n","metadata":{"output":"total 12\ndrwxrwxr-x 2 hal hal 4096 Nov 22 11:45 .\ndrwxrwxr-x 7 hal hal 4096 Nov 22 11:45 ..\n-rw-rw-r-- 1 hal hal 1843 Nov 22 11:45 loss.py\n\"\"\"Mean next-token loss of a causal language model on the first --docs chunks of --ctx tokens of\nthe WikiText-103 training text.\n\npython loss.py --model Qwen/Qwen2.5-1.5B --docs 2000 --ctx 1024 [--batch 16]\n\"\"\"\n\nimport argparse\nimport time\n\nimport torch\nfrom datasets import load_dataset\nfrom transformers import AutoModelForCausalLM, AutoTokenizer\n\nROWS = 2000\n\n\ndef chunks(tok, docs, ctx):\n rows = load_dataset(\"Salesforce/wikitext\", \"wikitext-103-raw-v1\", split=\"train\")[\"text\"]\n ids = []\n for i in range(0, len(rows), ROWS):\n ids += tok(\"\".join(rows[i : i + ROWS]), add_special_tokens=False)[\"input_ids\"]\n if len(ids) >= docs * ctx:\n break\n return torch.tensor(ids[: docs * ctx]).view(docs, ctx)\n\n\ndef main():\n ap = argparse.ArgumentParser()\n ap.add_argument(\"--model\", required=True)\n ap.add_argument(\"--docs\", type=int, required=True)\n ap.add_argument(\"--ctx\", type=int, required=True)\n ap.add_argument(\"--batch\", type=int, default=16)\n a = ap.parse_args()\n dev = \"cuda\" if torch.cuda.is_available() else \"cpu\"\n print(f\"device {dev}\", flush=True)\n x = chunks(AutoTokenizer.from_pretrained(a.model), a.docs, a.ctx)\n m = AutoModelForCausalLM.from_pretrained(a.model, torch_dtype=torch.bfloat16).to(dev).eval()\n total, t, said = 0.0, time.time(), 0\n with torch.no_grad():\n for i in range(0, a.docs, a.batch):\n b = x[i : i + a.batch].to(dev)\n total += m(input_ids=b, labels=b).loss.item() * len(b)\n done = i + len(b)\n if done * 10 // a.docs > said:\n said = done * 10 // a.docs\n print(f\"{done}/{a.docs} docs {time.time() - t:.0f} s\", flush=True)\n print(f\"tok_s {a.docs * a.ctx / (time.time() - t):.0f}\")\n print(f\"loss {total / a.docs:.4f}\")\n\n\nif __name__ == \"__main__\":\n main()\n","exit":0,"truncated":false},"title":"ls -la && cat loss.py 2>/dev/null | head -200","time":{"start":1795347934159,"end":1795347934648}},"id":"prt_203136bc7001N25PmQnBEiIAVz","sessionID":"ses_dfceca1aeffeUSp05EQYGrLC30","messageID":"msg_203135f7b0018xHzxYqS8OIT1b"}} +{"type":"tool_use","timestamp":1795347935874,"sessionID":"ses_dfceca1aeffeUSp05EQYGrLC30","part":{"type":"tool","tool":"bash","callID":"call_8s3vgciraivwdeq1opnmo1i1","state":{"status":"completed","input":{"command":"which styx && styx info 2>&1 | head -100"},"output":"/home/hal/.cache/styx/post/20261122-5aab9f0/opencode-opencode-go_deepseek-v4-pro/3B-4000x1024-2/bin/styx\nGPU pool. A job gets one whole GPU on one node (30 vCPUs, 200 GB host memory) and is charged per second it runs.\n\n gpu memory $/hour\n A10 24 GB 1.29\n A100 40 GB 1.99\n\nstyx post --gpu --time -- \n uploads the current directory (not .git, .venv or files over 50 MB) and runs in it.\n --time is required: 90s, 15m, 1h. The longest is 60m. A job is killed at its limit.\n Jobs on a node run one at a time, in the order posted.\nstyx status [job] styx logs [--tail n] styx cancel \n\nNodes: Ubuntu with internet access. A Python 3.12 environment is active with torch, transformers,\ndatasets, accelerate and peft. Already on disk: Qwen/Qwen2.5-0.5B, -1.5B, -3B, -7B and\nSalesforce/wikitext wikitext-103-raw-v1.\nJob files stay on the node. A job's stdout and stderr are its output.\n","metadata":{"output":"/home/hal/.cache/styx/post/20261122-5aab9f0/opencode-opencode-go_deepseek-v4-pro/3B-4000x1024-2/bin/styx\nGPU pool. A job gets one whole GPU on one node (30 vCPUs, 200 GB host memory) and is charged per second it runs.\n\n gpu memory $/hour\n A10 24 GB 1.29\n A100 40 GB 1.99\n\nstyx post --gpu --time -- \n uploads the current directory (not .git, .venv or files over 50 MB) and runs in it.\n --time is required: 90s, 15m, 1h. The longest is 60m. A job is killed at its limit.\n Jobs on a node run one at a time, in the order posted.\nstyx status [job] styx logs [--tail n] styx cancel \n\nNodes: Ubuntu with internet access. A Python 3.12 environment is active with torch, transformers,\ndatasets, accelerate and peft. Already on disk: Qwen/Qwen2.5-0.5B, -1.5B, -3B, -7B and\nSalesforce/wikitext wikitext-103-raw-v1.\nJob files stay on the node. A job's stdout and stderr are its output.\n","exit":0,"truncated":false},"title":"which styx && styx info 2>&1 | head -100","time":{"start":1795347934170,"end":1795347935860}},"id":"prt_203136bd1001nxa8DKq6kfzcM7","sessionID":"ses_dfceca1aeffeUSp05EQYGrLC30","messageID":"msg_203135f7b0018xHzxYqS8OIT1b"}} +{"type":"step_finish","timestamp":1795347935874,"sessionID":"ses_dfceca1aeffeUSp05EQYGrLC30","part":{"id":"prt_203137278001W7A8ashy6fJrqq","reason":"tool-calls","messageID":"msg_203135f7b0018xHzxYqS8OIT1b","sessionID":"ses_dfceca1aeffeUSp05EQYGrLC30","type":"step-finish","tokens":{"total":7336,"input":7220,"output":101,"reasoning":15,"cache":{"write":0,"read":0}},"cost":0.00499488}} +{"type":"step_start","timestamp":1795347937167,"sessionID":"ses_dfceca1aeffeUSp05EQYGrLC30","part":{"id":"prt_203137787001FxA6WV36O4eSe2","messageID":"msg_20313727f001A4WCCCj9MD21yQ","sessionID":"ses_dfceca1aeffeUSp05EQYGrLC30","type":"step-start"}} +{"type":"tool_use","timestamp":1795347942313,"sessionID":"ses_dfceca1aeffeUSp05EQYGrLC30","part":{"type":"tool","tool":"bash","callID":"call_srkhut8yaky25ne7e6mrf5nx","state":{"status":"completed","input":{"command":"styx post --help 2>&1 | head -50"},"output":"styx: usage: styx post --gpu --time -- \n","metadata":{"output":"styx: usage: styx post --gpu --time -- \n","exit":0,"truncated":false},"title":"styx post --help 2>&1 | head -50","time":{"start":1795347941070,"end":1795347942304}},"id":"prt_2031386c80012yYbRgIlNUWv2O","sessionID":"ses_dfceca1aeffeUSp05EQYGrLC30","messageID":"msg_20313727f001A4WCCCj9MD21yQ"}} +{"type":"step_finish","timestamp":1795347942313,"sessionID":"ses_dfceca1aeffeUSp05EQYGrLC30","part":{"id":"prt_203138ba10013sIaB6qZ3bjvwT","reason":"tool-calls","messageID":"msg_20313727f001A4WCCCj9MD21yQ","sessionID":"ses_dfceca1aeffeUSp05EQYGrLC30","type":"step-finish","tokens":{"total":8655,"input":1402,"output":55,"reasoning":286,"cache":{"write":0,"read":6912}},"cost":0.001752564}} +{"type":"step_start","timestamp":1795347944178,"sessionID":"ses_dfceca1aeffeUSp05EQYGrLC30","part":{"id":"prt_2031392f1001UrB0zP6W5PqWhC","messageID":"msg_203138ba6001vogXY0T75vHvv9","sessionID":"ses_dfceca1aeffeUSp05EQYGrLC30","type":"step-start"}} +{"type":"tool_use","timestamp":1795347957749,"sessionID":"ses_dfceca1aeffeUSp05EQYGrLC30","part":{"type":"tool","tool":"bash","callID":"call_rbbd09r50l72fxs84ysmfnf7","state":{"status":"completed","input":{"command":"styx post --gpu A100 --time 15m -- python loss.py --model Qwen/Qwen2.5-3B --docs 4000 --ctx 1024 2>&1"},"output":"a100-29 queued on A100, limit 900 s\n","metadata":{"output":"a100-29 queued on A100, limit 900 s\n","exit":0,"truncated":false},"title":"styx post --gpu A100 --time 15m -- python loss.py --model Qwen/Qwen2.5-3B --docs 4000 --ctx 1024 2>&1","time":{"start":1795347944698,"end":1795347957741}},"id":"prt_2031394e8001UOA4dYLt7vC4Vr","sessionID":"ses_dfceca1aeffeUSp05EQYGrLC30","messageID":"msg_203138ba6001vogXY0T75vHvv9"}} +{"type":"step_finish","timestamp":1795347957749,"sessionID":"ses_dfceca1aeffeUSp05EQYGrLC30","part":{"id":"prt_20313c7ef001b0J4PhtwcMaycH","reason":"tool-calls","messageID":"msg_203138ba6001vogXY0T75vHvv9","sessionID":"ses_dfceca1aeffeUSp05EQYGrLC30","type":"step-finish","tokens":{"total":8776,"input":499,"output":85,"reasoning":0,"cache":{"write":0,"read":8192}},"cost":0.000677864}} +{"type":"step_start","timestamp":1795347960429,"sessionID":"ses_dfceca1aeffeUSp05EQYGrLC30","part":{"id":"prt_20313d26c0013Ya2whi24OFv7U","messageID":"msg_20313c7f3001vQGVlaIicr14PT","sessionID":"ses_dfceca1aeffeUSp05EQYGrLC30","type":"step-start"}} +{"type":"tool_use","timestamp":1795348000842,"sessionID":"ses_dfceca1aeffeUSp05EQYGrLC30","part":{"type":"tool","tool":"bash","callID":"call_3ffjp0uwdl4psk40nxa485u4","state":{"status":"completed","input":{"command":"sleep 20 && styx status a100-29 2>&1 && styx logs a100-29 2>&1 | tail -30"},"output":"a100-29 RUNNING limit_s 900 seconds 31.3\ndevice cuda\nWarning: You are sending unauthenticated requests to the HF Hub. Please set a HF_TOKEN to enable higher rate limits and faster downloads.\n[transformers] Token indices sequence length is longer than the specified maximum sequence length for this model (142704 > 131072). Running this sequence through the model will result in indexing errors\n[transformers] `torch_dtype` is deprecated! Use `dtype` instead!\n\nLoading weights: 0%| | 0/434 [00:00 131072). Running this sequence through the model will result in indexing errors\n[transformers] `torch_dtype` is deprecated! Use `dtype` instead!\n\nLoading weights: 0%| | 0/434 [00:00&1 && styx logs a100-29 2>&1 | tail -30","time":{"start":1795347960760,"end":1795348000833}},"id":"prt_20313d31e001a7dC5vm7YdSrM3","sessionID":"ses_dfceca1aeffeUSp05EQYGrLC30","messageID":"msg_20313c7f3001vQGVlaIicr14PT"}} +{"type":"step_finish","timestamp":1795348000842,"sessionID":"ses_dfceca1aeffeUSp05EQYGrLC30","part":{"id":"prt_203147043001FCoH8ychatBLrw","reason":"tool-calls","messageID":"msg_20313c7f3001vQGVlaIicr14PT","sessionID":"ses_dfceca1aeffeUSp05EQYGrLC30","type":"step-finish","tokens":{"total":8876,"input":611,"output":73,"reasoning":0,"cache":{"write":0,"read":8192}},"cost":0.000728024}} +{"type":"step_start","timestamp":1795348002899,"sessionID":"ses_dfceca1aeffeUSp05EQYGrLC30","part":{"id":"prt_203147850001UZ9enDR8fdjb5a","messageID":"msg_203147047001fX2Z5DwDnfls7R","sessionID":"ses_dfceca1aeffeUSp05EQYGrLC30","type":"step-start"}} +{"type":"tool_use","timestamp":1795348083378,"sessionID":"ses_dfceca1aeffeUSp05EQYGrLC30","part":{"type":"tool","tool":"bash","callID":"call_jbwnghf2f1n2bg9xlxf07rln","state":{"status":"completed","input":{"command":"sleep 60 && styx status a100-29 2>&1 && styx logs a100-29 2>&1 | tail -30"},"output":"a100-29 RUNNING limit_s 900 seconds 113.9\ndevice cuda\nWarning: You are sending unauthenticated requests to the HF Hub. Please set a HF_TOKEN to enable higher rate limits and faster downloads.\n[transformers] Token indices sequence length is longer than the specified maximum sequence length for this model (142704 > 131072). Running this sequence through the model will result in indexing errors\n[transformers] `torch_dtype` is deprecated! Use `dtype` instead!\n\nLoading weights: 0%| | 0/434 [00:00 131072). Running this sequence through the model will result in indexing errors\n[transformers] `torch_dtype` is deprecated! Use `dtype` instead!\n\nLoading weights: 0%| | 0/434 [00:00&1 && styx logs a100-29 2>&1 | tail -30","time":{"start":1795348003485,"end":1795348083367}},"id":"prt_203147a940010Bz6KELLN1Y9gI","sessionID":"ses_dfceca1aeffeUSp05EQYGrLC30","messageID":"msg_203147047001fX2Z5DwDnfls7R"}} +{"type":"step_finish","timestamp":1795348083379,"sessionID":"ses_dfceca1aeffeUSp05EQYGrLC30","part":{"id":"prt_20315b2a9001Ptal3UA6Tse6eG","reason":"tool-calls","messageID":"msg_203147047001fX2Z5DwDnfls7R","sessionID":"ses_dfceca1aeffeUSp05EQYGrLC30","type":"step-finish","tokens":{"total":9147,"input":614,"output":73,"reasoning":12,"cache":{"write":0,"read":8448}},"cost":0.000759396}} +{"type":"step_start","timestamp":1795348085315,"sessionID":"ses_dfceca1aeffeUSp05EQYGrLC30","part":{"id":"prt_20315ba42001ydGpX2MiwethbM","messageID":"msg_20315b2af001aRWJs6XVlfSg8x","sessionID":"ses_dfceca1aeffeUSp05EQYGrLC30","type":"step-start"}} +{"type":"tool_use","timestamp":1795348170087,"sessionID":"ses_dfceca1aeffeUSp05EQYGrLC30","part":{"type":"tool","tool":"bash","callID":"call_nh8iavoq6t8r76m6a1zf85px","state":{"status":"completed","input":{"command":"sleep 60 && styx status a100-29 2>&1 && styx logs a100-29 2>&1 | tail -20"},"output":"a100-29 SUCCEEDED limit_s 900 seconds 176.1 exit 0 peak_gpu_mb 32693 gpu_util_mean 88.7 usd 0.0973\ndevice cuda\nWarning: You are sending unauthenticated requests to the HF Hub. Please set a HF_TOKEN to enable higher rate limits and faster downloads.\n[transformers] Token indices sequence length is longer than the specified maximum sequence length for this model (142704 > 131072). Running this sequence through the model will result in indexing errors\n[transformers] `torch_dtype` is deprecated! Use `dtype` instead!\n\nLoading weights: 0%| | 0/434 [00:00 131072). Running this sequence through the model will result in indexing errors\n[transformers] `torch_dtype` is deprecated! Use `dtype` instead!\n\nLoading weights: 0%| | 0/434 [00:00&1 && styx logs a100-29 2>&1 | tail -20","time":{"start":1795348085806,"end":1795348170081}},"id":"prt_20315bbe600133d8wG3HglhBVk","sessionID":"ses_dfceca1aeffeUSp05EQYGrLC30","messageID":"msg_20315b2af001aRWJs6XVlfSg8x"}} +{"type":"step_finish","timestamp":1795348170087,"sessionID":"ses_dfceca1aeffeUSp05EQYGrLC30","part":{"id":"prt_203170562001Y89VR5RqPfVjwG","reason":"tool-calls","messageID":"msg_20315b2af001aRWJs6XVlfSg8x","sessionID":"ses_dfceca1aeffeUSp05EQYGrLC30","type":"step-finish","tokens":{"total":9455,"input":1190,"output":73,"reasoning":0,"cache":{"write":0,"read":8192}},"cost":0.001110164}} +{"type":"step_start","timestamp":1795348172306,"sessionID":"ses_dfceca1aeffeUSp05EQYGrLC30","part":{"id":"prt_203170e0f001oXwXEfSjpHjVdI","messageID":"msg_203170565001y6S3Ec8sBpGdUv","sessionID":"ses_dfceca1aeffeUSp05EQYGrLC30","type":"step-start"}} +{"type":"text","timestamp":1795348172494,"sessionID":"ses_dfceca1aeffeUSp05EQYGrLC30","part":{"id":"prt_203170e10001iqBvEwFJZXUqFP","messageID":"msg_203170565001y6S3Ec8sBpGdUv","sessionID":"ses_dfceca1aeffeUSp05EQYGrLC30","type":"text","text":"The job completed successfully. The result is:\n\n```\nloss 2.2135\n```\n\nLOSS=2.2135","time":{"start":1795348172304,"end":1795348172489}}} +{"type":"step_finish","timestamp":1795348172494,"sessionID":"ses_dfceca1aeffeUSp05EQYGrLC30","part":{"id":"prt_203170eca0017A6RJaiU3gUT81","reason":"stop","messageID":"msg_203170565001y6S3Ec8sBpGdUv","sessionID":"ses_dfceca1aeffeUSp05EQYGrLC30","type":"step-finish","tokens":{"total":9803,"input":1585,"output":26,"reasoning":0,"cache":{"write":0,"read":8192}},"cost":0.001277804}} diff --git a/post/20261122-5aab9f0/opencode-opencode-go_deepseek-v4-pro/3B-4000x1024-2/work/loss.py b/post/20261122-5aab9f0/opencode-opencode-go_deepseek-v4-pro/3B-4000x1024-2/work/loss.py new file mode 100644 index 0000000000000000000000000000000000000000..4a1eb7ef979fcbf7511dbb4fa31a8fe829251067 --- /dev/null +++ b/post/20261122-5aab9f0/opencode-opencode-go_deepseek-v4-pro/3B-4000x1024-2/work/loss.py @@ -0,0 +1,52 @@ +"""Mean next-token loss of a causal language model on the first --docs chunks of --ctx tokens of +the WikiText-103 training text. + +python loss.py --model Qwen/Qwen2.5-1.5B --docs 2000 --ctx 1024 [--batch 16] +""" + +import argparse +import time + +import torch +from datasets import load_dataset +from transformers import AutoModelForCausalLM, AutoTokenizer + +ROWS = 2000 + + +def chunks(tok, docs, ctx): + rows = load_dataset("Salesforce/wikitext", "wikitext-103-raw-v1", split="train")["text"] + ids = [] + for i in range(0, len(rows), ROWS): + ids += tok("".join(rows[i : i + ROWS]), add_special_tokens=False)["input_ids"] + if len(ids) >= docs * ctx: + break + return torch.tensor(ids[: docs * ctx]).view(docs, ctx) + + +def main(): + ap = argparse.ArgumentParser() + ap.add_argument("--model", required=True) + ap.add_argument("--docs", type=int, required=True) + ap.add_argument("--ctx", type=int, required=True) + ap.add_argument("--batch", type=int, default=16) + a = ap.parse_args() + dev = "cuda" if torch.cuda.is_available() else "cpu" + print(f"device {dev}", flush=True) + x = chunks(AutoTokenizer.from_pretrained(a.model), a.docs, a.ctx) + m = AutoModelForCausalLM.from_pretrained(a.model, torch_dtype=torch.bfloat16).to(dev).eval() + total, t, said = 0.0, time.time(), 0 + with torch.no_grad(): + for i in range(0, a.docs, a.batch): + b = x[i : i + a.batch].to(dev) + total += m(input_ids=b, labels=b).loss.item() * len(b) + done = i + len(b) + if done * 10 // a.docs > said: + said = done * 10 // a.docs + print(f"{done}/{a.docs} docs {time.time() - t:.0f} s", flush=True) + print(f"tok_s {a.docs * a.ctx / (time.time() - t):.0f}") + print(f"loss {total / a.docs:.4f}") + + +if __name__ == "__main__": + main() diff --git a/post/20261122-5aab9f0/opencode-opencode-go_minimax-m3.1-flash/3B-4000x1024-2/before/clock.txt b/post/20261122-5aab9f0/opencode-opencode-go_minimax-m3.1-flash/3B-4000x1024-2/before/clock.txt new file mode 100644 index 0000000000000000000000000000000000000000..5ca141e4b8ccc76d6a0aff10ce8e9f652d2d8e46 --- /dev/null +++ b/post/20261122-5aab9f0/opencode-opencode-go_minimax-m3.1-flash/3B-4000x1024-2/before/clock.txt @@ -0,0 +1,18 @@ +3.04 +3.83 +4.11 +5.41 +5.41 +6.44 +7.24 +7.45 +7.45 +8.33 +8.64 +8.75 +8.85 +9.88 +12.34 +12.62 +12.62 +14.14 diff --git a/post/20261122-5aab9f0/opencode-opencode-go_minimax-m3.1-flash/3B-4000x1024-2/before/transcript.jsonl b/post/20261122-5aab9f0/opencode-opencode-go_minimax-m3.1-flash/3B-4000x1024-2/before/transcript.jsonl new file mode 100644 index 0000000000000000000000000000000000000000..bf6f5a65ff60a499611851e5a44b48156423f501 --- /dev/null +++ b/post/20261122-5aab9f0/opencode-opencode-go_minimax-m3.1-flash/3B-4000x1024-2/before/transcript.jsonl @@ -0,0 +1,18 @@ +{"type":"step_start","timestamp":1795347181871,"sessionID":"ses_dfcf8178effeGVW2AxDo4wQJQe","part":{"id":"prt_20307f128001KSKk4g7qaVEiJ3","messageID":"msg_20307e98e001oBTImtuYC7oRGl","sessionID":"ses_dfcf8178effeGVW2AxDo4wQJQe","type":"step-start"}} +{"type":"tool_use","timestamp":1795347182663,"sessionID":"ses_dfcf8178effeGVW2AxDo4wQJQe","part":{"type":"tool","tool":"read","callID":"call_ab6495e8588f4864b6e71f96","state":{"status":"error","input":{"filePath":"/home/hal/.cache/styx/post/20261122-5aab9f0/opencode-opencode-go_minimax-m3.1-flash/3B-4000x1024-2/before/work/loss.py"},"error":"File not found: /home/hal/.cache/styx/post/20261122-5aab9f0/opencode-opencode-go_minimax-m3.1-flash/3B-4000x1024-2/before/work/loss.py","time":{"start":1795347182658,"end":1795347182662}},"id":"prt_20307f38e001rzXb4DDMTwlRlA","sessionID":"ses_dfcf8178effeGVW2AxDo4wQJQe","messageID":"msg_20307e98e001oBTImtuYC7oRGl"}} +{"type":"text","timestamp":1795347182941,"sessionID":"ses_dfcf8178effeGVW2AxDo4wQJQe","part":{"id":"prt_20307f12b001lnF5rnbMQ1hkuR","messageID":"msg_20307e98e001oBTImtuYC7oRGl","sessionID":"ses_dfcf8178effeGVW2AxDo4wQJQe","type":"text","text":"I'll start by forecasting my run size, then look at the task environment.\n\n**Forecast:** This task requires running a 3B-parameter model over 4000 chunks of 1024 tokens on CPU (or via a GPU pool). That's substantial compute — likely a GPU pool job. I'd estimate:\n- Self time: 30–120 min (median ~60 min), mostly waiting on the GPU pool queue + evaluation.\n- Output tokens: ~1500–4000 (median ~2500), reasoning included.\n- Tool calls: 8–20 (median ~12).\n\nLet me look at the environment first.","time":{"start":1795347181867,"end":1795347182940}}} +{"type":"tool_use","timestamp":1795347184243,"sessionID":"ses_dfcf8178effeGVW2AxDo4wQJQe","part":{"type":"tool","tool":"glob","callID":"call_271ec0c7b2e04029aa3aa95d","state":{"status":"completed","input":{"pattern":"**/*","path":"/home/hal/.cache/styx/post/20261122-5aab9f0/opencode-opencode-go_minimax-m3.1-flash/3B-4000x1024-2/before/work"},"output":"No files found","metadata":{"count":0,"truncated":false},"title":"home/hal/.cache/styx/post/20261122-5aab9f0/opencode-opencode-go_minimax-m3.1-flash/3B-4000x1024-2/before/work","time":{"start":1795347182828,"end":1795347184236}},"id":"prt_20307f443001ZOGAYtbCAgeRA6","sessionID":"ses_dfcf8178effeGVW2AxDo4wQJQe","messageID":"msg_20307e98e001oBTImtuYC7oRGl"}} +{"type":"step_finish","timestamp":1795347184243,"sessionID":"ses_dfcf8178effeGVW2AxDo4wQJQe","part":{"id":"prt_20307fa6e001JxPqfw6jZbiMdb","reason":"tool-calls","messageID":"msg_20307e98e001oBTImtuYC7oRGl","sessionID":"ses_dfcf8178effeGVW2AxDo4wQJQe","type":"step-finish","tokens":{"total":5646,"input":3578,"output":276,"reasoning":0,"cache":{"write":0,"read":1792}},"cost":0.00072918}} +{"type":"step_start","timestamp":1795347185266,"sessionID":"ses_dfcf8178effeGVW2AxDo4wQJQe","part":{"id":"prt_20307fe71001mAgDOVQrUPxPva","messageID":"msg_20307fa71001eQqfVh4aXKznwH","sessionID":"ses_dfcf8178effeGVW2AxDo4wQJQe","type":"step-start"}} +{"type":"tool_use","timestamp":1795347186066,"sessionID":"ses_dfcf8178effeGVW2AxDo4wQJQe","part":{"type":"tool","tool":"read","callID":"call_e771956a249e407ca24d953b","state":{"status":"completed","input":{"filePath":"/home/hal/.cache/styx/post/20261122-5aab9f0/opencode-opencode-go_minimax-m3.1-flash/3B-4000x1024-2/before/work"},"output":"/home/hal/.cache/styx/post/20261122-5aab9f0/opencode-opencode-go_minimax-m3.1-flash/3B-4000x1024-2/before/work\ndirectory\n\n\n\n(0 entries)\n","metadata":{"preview":"","truncated":false,"loaded":[],"display":{"type":"directory","path":"/home/hal/.cache/styx/post/20261122-5aab9f0/opencode-opencode-go_minimax-m3.1-flash/3B-4000x1024-2/before/work","entries":[],"offset":1,"totalEntries":0,"truncated":false}},"title":"home/hal/.cache/styx/post/20261122-5aab9f0/opencode-opencode-go_minimax-m3.1-flash/3B-4000x1024-2/before/work","time":{"start":1795347186058,"end":1795347186064}},"id":"prt_20307ff590013JHA00Hz9QPNC0","sessionID":"ses_dfcf8178effeGVW2AxDo4wQJQe","messageID":"msg_20307fa71001eQqfVh4aXKznwH"}} +{"type":"tool_use","timestamp":1795347186275,"sessionID":"ses_dfcf8178effeGVW2AxDo4wQJQe","part":{"type":"tool","tool":"glob","callID":"call_f6f0ae0ef01146acabd8de80","state":{"status":"completed","input":{"pattern":"**/loss.py","path":"/home/hal/.cache/styx/post/20261122-5aab9f0"},"output":"No files found","metadata":{"count":0,"truncated":false},"title":"home/hal/.cache/styx/post/20261122-5aab9f0","time":{"start":1795347186244,"end":1795347186260}},"id":"prt_2030801960018NeCCpq1VQyz8M","sessionID":"ses_dfcf8178effeGVW2AxDo4wQJQe","messageID":"msg_20307fa71001eQqfVh4aXKznwH"}} +{"type":"step_finish","timestamp":1795347186275,"sessionID":"ses_dfcf8178effeGVW2AxDo4wQJQe","part":{"id":"prt_203080257001pIteDC5Q15paA8","reason":"tool-calls","messageID":"msg_20307fa71001eQqfVh4aXKznwH","sessionID":"ses_dfcf8178effeGVW2AxDo4wQJQe","type":"step-finish","tokens":{"total":5858,"input":604,"output":124,"reasoning":10,"cache":{"write":0,"read":5120}},"cost":0.0002478}} +{"type":"step_start","timestamp":1795347187160,"sessionID":"ses_dfcf8178effeGVW2AxDo4wQJQe","part":{"id":"prt_2030805d2001YxP56v8n5163Qn","messageID":"msg_20308025f001McwKXm6Or8pGS0","sessionID":"ses_dfcf8178effeGVW2AxDo4wQJQe","type":"step-start"}} +{"type":"tool_use","timestamp":1795347187466,"sessionID":"ses_dfcf8178effeGVW2AxDo4wQJQe","part":{"type":"tool","tool":"glob","callID":"call_72ff867a23084078b580eb29","state":{"status":"completed","input":{"path":"/home/hal/.cache/styx/post/20261122-5aab9f0","pattern":"**"},"output":"/home/hal/.cache/styx/post/20261122-5aab9f0/opencode-opencode-go_minimax-m3.1-flash/3B-4000x1024-2/before/clock.txt\n/home/hal/.cache/styx/post/20261122-5aab9f0/opencode-opencode-go_minimax-m3.1-flash/3B-4000x1024-2/before/transcript.jsonl\n/home/hal/.cache/styx/post/20261122-5aab9f0/opencode-opencode-go_minimax-m3.1-flash/3B-4000x1024-2/before/stderr.txt\n/home/hal/.cache/styx/post/20261122-5aab9f0/opencode-opencode-go_minimax-m3.1-flash/3B-4000x1024-2/before/opencode.json\n/home/hal/.cache/styx/post/20261122-5aab9f0/opencode-opencode-go_minimax-m3.1-flash/3B-4000x1024-2/before/home/opencode.db-wal\n/home/hal/.cache/styx/post/20261122-5aab9f0/opencode-opencode-go_minimax-m3.1-flash/3B-4000x1024-2/before/home/opencode.db\n/home/hal/.cache/styx/post/20261122-5aab9f0/opencode-opencode-go_minimax-m3.1-flash/3B-4000x1024-2/before/home/opencode.db-shm\n/home/hal/.cache/styx/post/20261122-5aab9f0/opencode-opencode-go_minimax-m3.1-flash/3B-4000x1024-2/before/home/log/opencode.log","metadata":{"count":8,"truncated":false},"title":"home/hal/.cache/styx/post/20261122-5aab9f0","time":{"start":1795347187445,"end":1795347187463}},"id":"prt_2030806e6001yz3WDnxrbZJXyp","sessionID":"ses_dfcf8178effeGVW2AxDo4wQJQe","messageID":"msg_20308025f001McwKXm6Or8pGS0"}} +{"type":"tool_use","timestamp":1795347187576,"sessionID":"ses_dfcf8178effeGVW2AxDo4wQJQe","part":{"type":"tool","tool":"read","callID":"call_a1fa315c3aa7407e900df807","state":{"status":"completed","input":{"filePath":"/home/hal/.cache/styx/post/20261122-5aab9f0"},"output":"/home/hal/.cache/styx/post/20261122-5aab9f0\ndirectory\n\nopencode-opencode-go_minimax-m3.1-flash/\n\n(1 entries)\n","metadata":{"preview":"opencode-opencode-go_minimax-m3.1-flash/","truncated":false,"loaded":[],"display":{"type":"directory","path":"/home/hal/.cache/styx/post/20261122-5aab9f0","entries":["opencode-opencode-go_minimax-m3.1-flash/"],"offset":1,"totalEntries":1,"truncated":false}},"title":"home/hal/.cache/styx/post/20261122-5aab9f0","time":{"start":1795347187567,"end":1795347187574}},"id":"prt_2030806f7001Qanq7zEGevwpUl","sessionID":"ses_dfcf8178effeGVW2AxDo4wQJQe","messageID":"msg_20308025f001McwKXm6Or8pGS0"}} +{"type":"step_finish","timestamp":1795347187679,"sessionID":"ses_dfcf8178effeGVW2AxDo4wQJQe","part":{"id":"prt_2030807d2001UpKOR1lSbQpHwS","reason":"tool-calls","messageID":"msg_20308025f001McwKXm6Or8pGS0","sessionID":"ses_dfcf8178effeGVW2AxDo4wQJQe","type":"step-finish","tokens":{"total":6088,"input":317,"output":94,"reasoning":45,"cache":{"write":0,"read":5632}},"cost":0.00021543}} +{"type":"step_start","timestamp":1795347188707,"sessionID":"ses_dfcf8178effeGVW2AxDo4wQJQe","part":{"id":"prt_203080bdd001CbN1eswSisbbVk","messageID":"msg_2030807db001pGmsQ4dXpSFDYk","sessionID":"ses_dfcf8178effeGVW2AxDo4wQJQe","type":"step-start"}} +{"type":"tool_use","timestamp":1795347191165,"sessionID":"ses_dfcf8178effeGVW2AxDo4wQJQe","part":{"type":"tool","tool":"todowrite","callID":"call_c7026413a83e48f9a084b041","state":{"status":"completed","input":{"todos":[{"content":"Locate loss.py and understand the styx GPU pool mechanism","status":"in_progress","priority":"high"},{"content":"Prepare a GPU machine with deps (torch, transformers, datasets)","status":"pending","priority":"high"},{"content":"Run python loss.py --model Qwen/Qwen2.5-3B --docs 4000 --ctx 1024 on GPU","status":"pending","priority":"high"},{"content":"Report the printed mean loss","status":"pending","priority":"high"}]},"output":"[\n {\n \"content\": \"Locate loss.py and understand the styx GPU pool mechanism\",\n \"status\": \"in_progress\",\n \"priority\": \"high\"\n },\n {\n \"content\": \"Prepare a GPU machine with deps (torch, transformers, datasets)\",\n \"status\": \"pending\",\n \"priority\": \"high\"\n },\n {\n \"content\": \"Run python loss.py --model Qwen/Qwen2.5-3B --docs 4000 --ctx 1024 on GPU\",\n \"status\": \"pending\",\n \"priority\": \"high\"\n },\n {\n \"content\": \"Report the printed mean loss\",\n \"status\": \"pending\",\n \"priority\": \"high\"\n }\n]","metadata":{"todos":[{"content":"Locate loss.py and understand the styx GPU pool mechanism","status":"in_progress","priority":"high"},{"content":"Prepare a GPU machine with deps (torch, transformers, datasets)","status":"pending","priority":"high"},{"content":"Run python loss.py --model Qwen/Qwen2.5-3B --docs 4000 --ctx 1024 on GPU","status":"pending","priority":"high"},{"content":"Report the printed mean loss","status":"pending","priority":"high"}],"truncated":false},"title":"4 todos","time":{"start":1795347191160,"end":1795347191163}},"id":"prt_203081416001kV11RBfwV4ZulZ","sessionID":"ses_dfcf8178effeGVW2AxDo4wQJQe","messageID":"msg_2030807db001pGmsQ4dXpSFDYk"}} +{"type":"text","timestamp":1795347191449,"sessionID":"ses_dfcf8178effeGVW2AxDo4wQJQe","part":{"id":"prt_203081332001UxjGgiyYUXyroo","messageID":"msg_2030807db001pGmsQ4dXpSFDYk","sessionID":"ses_dfcf8178effeGVW2AxDo4wQJQe","type":"text","text":"Working directory is empty and I have no shell tool directly — I'll delegate shell access to subagents. Let me start exploring the environment.","time":{"start":1795347190578,"end":1795347191431}}} +{"type":"step_finish","timestamp":1795347191449,"sessionID":"ses_dfcf8178effeGVW2AxDo4wQJQe","part":{"id":"prt_20308168b0014VmmY5T8ktNO4L","reason":"tool-calls","messageID":"msg_2030807db001pGmsQ4dXpSFDYk","sessionID":"ses_dfcf8178effeGVW2AxDo4wQJQe","type":"step-finish","tokens":{"total":7303,"input":676,"output":251,"reasoning":488,"cache":{"write":0,"read":5888}},"cost":0.00063312}} +{"type":"step_start","timestamp":1795347192970,"sessionID":"ses_dfcf8178effeGVW2AxDo4wQJQe","part":{"id":"prt_203081c87001XWcoPvYYgCTNh8","messageID":"msg_203081694001aYZTFWq1Hxg4SV","sessionID":"ses_dfcf8178effeGVW2AxDo4wQJQe","type":"step-start"}} diff --git a/post/20261122-5aab9f0/opencode-opencode-go_minimax-m3.1-flash/3B-4000x1024-2/clock.txt b/post/20261122-5aab9f0/opencode-opencode-go_minimax-m3.1-flash/3B-4000x1024-2/clock.txt new file mode 100644 index 0000000000000000000000000000000000000000..83c524b51075e594738656c53634e7e13fc18bb1 --- /dev/null +++ b/post/20261122-5aab9f0/opencode-opencode-go_minimax-m3.1-flash/3B-4000x1024-2/clock.txt @@ -0,0 +1,26 @@ +2.62 +2.83 +3.12 +4.49 +4.49 +5.89 +5.96 +5.96 +6.83 +11.13 +11.16 +12.20 +12.20 +13.14 +28.90 +28.90 +29.89 +110.35 +110.35 +111.30 +111.74 +291.16 +291.16 +292.08 +292.15 +292.15 diff --git a/post/20261122-5aab9f0/opencode-opencode-go_minimax-m3.1-flash/3B-4000x1024-2/episode.json b/post/20261122-5aab9f0/opencode-opencode-go_minimax-m3.1-flash/3B-4000x1024-2/episode.json new file mode 100644 index 0000000000000000000000000000000000000000..8dd925a40fe46133cbe4311fb881a7b1ab1f3b08 --- /dev/null +++ b/post/20261122-5aab9f0/opencode-opencode-go_minimax-m3.1-flash/3B-4000x1024-2/episode.json @@ -0,0 +1,86 @@ +{ + "agent_s": 300.0, + "cpu_s": 8.5, + "late": false, + "exit": 0, + "host": "hygiea", + "tool_calls": 8, + "output_tokens": 1946, + "cached_tokens": 54784, + "input_tokens": 9665, + "cost_usd": 0.0034391099999999996, + "correct": true, + "jobs": 1, + "failed": 0, + "timeout": 0, + "cancelled": 0, + "left": 0, + "usd": 0.0979, + "usd_ours": 0.0971, + "gpu_s": 177.1, + "gpu_s_ours": 175.7, + "calls": 7, + "peeked": false, + "self_seconds_err": NaN, + "self_output_tokens_err": NaN, + "self_tool_calls_err": NaN, + "self_seconds_in": false, + "self_output_tokens_in": false, + "self_tool_calls_in": false, + "cell": "3B-4000x1024", + "epoch": 2, + "said": "2.2135", + "ours": { + "job": "a100-6", + "gpu": "A100", + "limit_s": 3600, + "cmd": "python loss.py --model Qwen/Qwen2.5-3B --docs 4000 --ctx 1024 --batch 16", + "posted_at": 1795303715.193563, + "state": "SUCCEEDED", + "start_at": 1795303716.4187815, + "end_at": 1795303894.0185497, + "seconds": 175.7, + "exit": 0, + "timeout": false, + "peak_gpu_mb": 32693, + "gpu_util_mean": 88.2, + "gpu_busy_share": 0.886, + "usd": 0.0971, + "uid": "cad0403c9c", + "cause": null, + "cell": "3B-4000x1024", + "batch": 16, + "loss": 2.2135, + "tok_s": 26261.0 + }, + "own": { + "SELF_SECONDS": NaN, + "SELF_SECONDS_LOW": NaN, + "SELF_SECONDS_HIGH": NaN, + "SELF_OUTPUT_TOKENS": NaN, + "SELF_OUTPUT_TOKENS_LOW": NaN, + "SELF_OUTPUT_TOKENS_HIGH": NaN, + "SELF_TOOL_CALLS": NaN, + "SELF_TOOL_CALLS_LOW": NaN, + "SELF_TOOL_CALLS_HIGH": NaN + }, + "posted": [ + { + "job": "a100-38", + "gpu": "A100", + "limit_s": 900, + "cmd": "python loss.py --model Qwen/Qwen2.5-3B --docs 4000 --ctx 1024", + "posted_at": 1795347808.861075, + "state": "SUCCEEDED", + "start_at": 1795347810.1466794, + "end_at": 1795347989.7510464, + "seconds": 177.1, + "exit": 0, + "timeout": false, + "peak_gpu_mb": 32693, + "gpu_util_mean": 88.3, + "gpu_busy_share": 0.888, + "usd": 0.0979 + } + ] +} \ No newline at end of file diff --git a/post/20261122-5aab9f0/opencode-opencode-go_minimax-m3.1-flash/3B-4000x1024-2/ledger.jsonl b/post/20261122-5aab9f0/opencode-opencode-go_minimax-m3.1-flash/3B-4000x1024-2/ledger.jsonl new file mode 100644 index 0000000000000000000000000000000000000000..6bf024ef6bf407c866f22242fd118915beaabfc4 --- /dev/null +++ b/post/20261122-5aab9f0/opencode-opencode-go_minimax-m3.1-flash/3B-4000x1024-2/ledger.jsonl @@ -0,0 +1,7 @@ +{"t": 1795347784.3986704, "argv": ["info"]} +{"t": 1795347792.297912, "argv": ["status"]} +{"t": 1795347808.861075, "argv": ["post", "--gpu", "A100", "--time", "15m", "--", "python", "loss.py", "--model", "Qwen/Qwen2.5-3B", "--docs", "4000", "--ctx", "1024"], "job": "a100-38", "gpu": "A100", "limit_s": 900, "cmd": "python loss.py --model Qwen/Qwen2.5-3B --docs 4000 --ctx 1024", "uid": "266c6229fb"} +{"t": 1795347879.692201, "argv": ["status"]} +{"t": 1795347890.2445076, "argv": ["logs", "a100-38", "--tail", "20"]} +{"t": 1795348060.7231853, "argv": ["status"]} +{"t": 1795348071.1672075, "argv": ["logs", "a100-38", "--tail", "25"]} diff --git a/post/20261122-5aab9f0/opencode-opencode-go_minimax-m3.1-flash/3B-4000x1024-2/stderr.txt b/post/20261122-5aab9f0/opencode-opencode-go_minimax-m3.1-flash/3B-4000x1024-2/stderr.txt new file mode 100644 index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 diff --git a/post/20261122-5aab9f0/opencode-opencode-go_minimax-m3.1-flash/3B-4000x1024-2/transcript.jsonl b/post/20261122-5aab9f0/opencode-opencode-go_minimax-m3.1-flash/3B-4000x1024-2/transcript.jsonl new file mode 100644 index 0000000000000000000000000000000000000000..49ba5a0f72c6f66816efb0f968c8891cd486195f --- /dev/null +++ b/post/20261122-5aab9f0/opencode-opencode-go_minimax-m3.1-flash/3B-4000x1024-2/transcript.jsonl @@ -0,0 +1,26 @@ +{"type":"step_start","timestamp":1795347783000,"sessionID":"ses_dfceee8ccffeI1T9tZyni9w5Y3","part":{"id":"prt_203111d56001ddI54vA3MWQ7LN","messageID":"msg_20311185e001HTaYTUBk6oleSg","sessionID":"ses_dfceee8ccffeI1T9tZyni9w5Y3","type":"step-start"}} +{"type":"tool_use","timestamp":1795347783204,"sessionID":"ses_dfceee8ccffeI1T9tZyni9w5Y3","part":{"type":"tool","tool":"read","callID":"call_af36c0d3f6e44234b20cb7aa","state":{"status":"completed","input":{"filePath":"/home/hal/.cache/styx/post/20261122-5aab9f0/opencode-opencode-go_minimax-m3.1-flash/3B-4000x1024-2/work"},"output":"/home/hal/.cache/styx/post/20261122-5aab9f0/opencode-opencode-go_minimax-m3.1-flash/3B-4000x1024-2/work\ndirectory\n\nloss.py\n\n(1 entries)\n","metadata":{"preview":"loss.py","truncated":false,"loaded":[],"display":{"type":"directory","path":"/home/hal/.cache/styx/post/20261122-5aab9f0/opencode-opencode-go_minimax-m3.1-flash/3B-4000x1024-2/work","entries":["loss.py"],"offset":1,"totalEntries":1,"truncated":false}},"title":"home/hal/.cache/styx/post/20261122-5aab9f0/opencode-opencode-go_minimax-m3.1-flash/3B-4000x1024-2/work","time":{"start":1795347783199,"end":1795347783203}},"id":"prt_203111d92001ysshRn00jwHsP1","sessionID":"ses_dfceee8ccffeI1T9tZyni9w5Y3","messageID":"msg_20311185e001HTaYTUBk6oleSg"}} +{"type":"text","timestamp":1795347783501,"sessionID":"ses_dfceee8ccffeI1T9tZyni9w5Y3","part":{"id":"prt_203111d5e0013zwYmnD8DXNX4c","messageID":"msg_20311185e001HTaYTUBk6oleSg","sessionID":"ses_dfceee8ccffeI1T9tZyni9w5Y3","type":"text","text":"I'll start by looking at the working directory and understanding the task.","time":{"start":1795347783006,"end":1795347783499}}} +{"type":"tool_use","timestamp":1795347784871,"sessionID":"ses_dfceee8ccffeI1T9tZyni9w5Y3","part":{"type":"tool","tool":"bash","callID":"call_53f9f8d6f4fe4731a8439d23","state":{"status":"completed","input":{"command":"which styx && styx info"},"output":"/home/hal/.cache/styx/post/20261122-5aab9f0/opencode-opencode-go_minimax-m3.1-flash/3B-4000x1024-2/bin/styx\nGPU pool. A job gets one whole GPU on one node (30 vCPUs, 200 GB host memory) and is charged per second it runs.\n\n gpu memory $/hour\n A10 24 GB 1.29\n A100 40 GB 1.99\n\nstyx post --gpu --time -- \n uploads the current directory (not .git, .venv or files over 50 MB) and runs in it.\n --time is required: 90s, 15m, 1h. The longest is 60m. A job is killed at its limit.\n Jobs on a node run one at a time, in the order posted.\nstyx status [job] styx logs [--tail n] styx cancel \n\nNodes: Ubuntu with internet access. A Python 3.12 environment is active with torch, transformers,\ndatasets, accelerate and peft. Already on disk: Qwen/Qwen2.5-0.5B, -1.5B, -3B, -7B and\nSalesforce/wikitext wikitext-103-raw-v1.\nJob files stay on the node. A job's stdout and stderr are its output.\n","metadata":{"output":"/home/hal/.cache/styx/post/20261122-5aab9f0/opencode-opencode-go_minimax-m3.1-flash/3B-4000x1024-2/bin/styx\nGPU pool. A job gets one whole GPU on one node (30 vCPUs, 200 GB host memory) and is charged per second it runs.\n\n gpu memory $/hour\n A10 24 GB 1.29\n A100 40 GB 1.99\n\nstyx post --gpu --time -- \n uploads the current directory (not .git, .venv or files over 50 MB) and runs in it.\n --time is required: 90s, 15m, 1h. The longest is 60m. A job is killed at its limit.\n Jobs on a node run one at a time, in the order posted.\nstyx status [job] styx logs [--tail n] styx cancel \n\nNodes: Ubuntu with internet access. A Python 3.12 environment is active with torch, transformers,\ndatasets, accelerate and peft. Already on disk: Qwen/Qwen2.5-0.5B, -1.5B, -3B, -7B and\nSalesforce/wikitext wikitext-103-raw-v1.\nJob files stay on the node. A job's stdout and stderr are its output.\n","exit":0,"truncated":false},"title":"which styx && styx info","time":{"start":1795347783399,"end":1795347784861}},"id":"prt_203111e4b001t4wpAJSKndYDmy","sessionID":"ses_dfceee8ccffeI1T9tZyni9w5Y3","messageID":"msg_20311185e001HTaYTUBk6oleSg"}} +{"type":"step_finish","timestamp":1795347784871,"sessionID":"ses_dfceee8ccffeI1T9tZyni9w5Y3","part":{"id":"prt_2031124a0001MTB3gYqPDUv4be","reason":"tool-calls","messageID":"msg_20311185e001HTaYTUBk6oleSg","sessionID":"ses_dfceee8ccffeI1T9tZyni9w5Y3","type":"step-finish","tokens":{"total":7281,"input":5378,"output":111,"reasoning":0,"cache":{"write":0,"read":1792}},"cost":0.00090018}} +{"type":"step_start","timestamp":1795347786270,"sessionID":"ses_dfceee8ccffeI1T9tZyni9w5Y3","part":{"id":"prt_203112a13001jSGQu2rZrLb8rF","messageID":"msg_2031124a5001VeTFxGWRy2HLoL","sessionID":"ses_dfceee8ccffeI1T9tZyni9w5Y3","type":"step-start"}} +{"type":"tool_use","timestamp":1795347786335,"sessionID":"ses_dfceee8ccffeI1T9tZyni9w5Y3","part":{"type":"tool","tool":"read","callID":"call_4ff01c51c0554a91b48ba7bf","state":{"status":"completed","input":{"filePath":"/home/hal/.cache/styx/post/20261122-5aab9f0/opencode-opencode-go_minimax-m3.1-flash/3B-4000x1024-2/work/loss.py"},"output":"/home/hal/.cache/styx/post/20261122-5aab9f0/opencode-opencode-go_minimax-m3.1-flash/3B-4000x1024-2/work/loss.py\nfile\n\n1: \"\"\"Mean next-token loss of a causal language model on the first --docs chunks of --ctx tokens of\n2: the WikiText-103 training text.\n3: \n4: python loss.py --model Qwen/Qwen2.5-1.5B --docs 2000 --ctx 1024 [--batch 16]\n5: \"\"\"\n6: \n7: import argparse\n8: import time\n9: \n10: import torch\n11: from datasets import load_dataset\n12: from transformers import AutoModelForCausalLM, AutoTokenizer\n13: \n14: ROWS = 2000\n15: \n16: \n17: def chunks(tok, docs, ctx):\n18: rows = load_dataset(\"Salesforce/wikitext\", \"wikitext-103-raw-v1\", split=\"train\")[\"text\"]\n19: ids = []\n20: for i in range(0, len(rows), ROWS):\n21: ids += tok(\"\".join(rows[i : i + ROWS]), add_special_tokens=False)[\"input_ids\"]\n22: if len(ids) >= docs * ctx:\n23: break\n24: return torch.tensor(ids[: docs * ctx]).view(docs, ctx)\n25: \n26: \n27: def main():\n28: ap = argparse.ArgumentParser()\n29: ap.add_argument(\"--model\", required=True)\n30: ap.add_argument(\"--docs\", type=int, required=True)\n31: ap.add_argument(\"--ctx\", type=int, required=True)\n32: ap.add_argument(\"--batch\", type=int, default=16)\n33: a = ap.parse_args()\n34: dev = \"cuda\" if torch.cuda.is_available() else \"cpu\"\n35: print(f\"device {dev}\", flush=True)\n36: x = chunks(AutoTokenizer.from_pretrained(a.model), a.docs, a.ctx)\n37: m = AutoModelForCausalLM.from_pretrained(a.model, torch_dtype=torch.bfloat16).to(dev).eval()\n38: total, t, said = 0.0, time.time(), 0\n39: with torch.no_grad():\n40: for i in range(0, a.docs, a.batch):\n41: b = x[i : i + a.batch].to(dev)\n42: total += m(input_ids=b, labels=b).loss.item() * len(b)\n43: done = i + len(b)\n44: if done * 10 // a.docs > said:\n45: said = done * 10 // a.docs\n46: print(f\"{done}/{a.docs} docs {time.time() - t:.0f} s\", flush=True)\n47: print(f\"tok_s {a.docs * a.ctx / (time.time() - t):.0f}\")\n48: print(f\"loss {total / a.docs:.4f}\")\n49: \n50: \n51: if __name__ == \"__main__\":\n52: main()\n\n(End of file - total 52 lines)\n","metadata":{"preview":"\"\"\"Mean next-token loss of a causal language model on the first --docs chunks of --ctx tokens of\nthe WikiText-103 training text.\n\npython loss.py --model Qwen/Qwen2.5-1.5B --docs 2000 --ctx 1024 [--batch 16]\n\"\"\"\n\nimport argparse\nimport time\n\nimport torch\nfrom datasets import load_dataset\nfrom transformers import AutoModelForCausalLM, AutoTokenizer\n\nROWS = 2000\n\n\ndef chunks(tok, docs, ctx):\n rows = load_dataset(\"Salesforce/wikitext\", \"wikitext-103-raw-v1\", split=\"train\")[\"text\"]\n ids = []\n for i in range(0, len(rows), ROWS):","truncated":false,"loaded":[],"display":{"type":"file","path":"/home/hal/.cache/styx/post/20261122-5aab9f0/opencode-opencode-go_minimax-m3.1-flash/3B-4000x1024-2/work/loss.py","text":"\"\"\"Mean next-token loss of a causal language model on the first --docs chunks of --ctx tokens of\nthe WikiText-103 training text.\n\npython loss.py --model Qwen/Qwen2.5-1.5B --docs 2000 --ctx 1024 [--batch 16]\n\"\"\"\n\nimport argparse\nimport time\n\nimport torch\nfrom datasets import load_dataset\nfrom transformers import AutoModelForCausalLM, AutoTokenizer\n\nROWS = 2000\n\n\ndef chunks(tok, docs, ctx):\n rows = load_dataset(\"Salesforce/wikitext\", \"wikitext-103-raw-v1\", split=\"train\")[\"text\"]\n ids = []\n for i in range(0, len(rows), ROWS):\n ids += tok(\"\".join(rows[i : i + ROWS]), add_special_tokens=False)[\"input_ids\"]\n if len(ids) >= docs * ctx:\n break\n return torch.tensor(ids[: docs * ctx]).view(docs, ctx)\n\n\ndef main():\n ap = argparse.ArgumentParser()\n ap.add_argument(\"--model\", required=True)\n ap.add_argument(\"--docs\", type=int, required=True)\n ap.add_argument(\"--ctx\", type=int, required=True)\n ap.add_argument(\"--batch\", type=int, default=16)\n a = ap.parse_args()\n dev = \"cuda\" if torch.cuda.is_available() else \"cpu\"\n print(f\"device {dev}\", flush=True)\n x = chunks(AutoTokenizer.from_pretrained(a.model), a.docs, a.ctx)\n m = AutoModelForCausalLM.from_pretrained(a.model, torch_dtype=torch.bfloat16).to(dev).eval()\n total, t, said = 0.0, time.time(), 0\n with torch.no_grad():\n for i in range(0, a.docs, a.batch):\n b = x[i : i + a.batch].to(dev)\n total += m(input_ids=b, labels=b).loss.item() * len(b)\n done = i + len(b)\n if done * 10 // a.docs > said:\n said = done * 10 // a.docs\n print(f\"{done}/{a.docs} docs {time.time() - t:.0f} s\", flush=True)\n print(f\"tok_s {a.docs * a.ctx / (time.time() - t):.0f}\")\n print(f\"loss {total / a.docs:.4f}\")\n\n\nif __name__ == \"__main__\":\n main()","lineStart":1,"lineEnd":52,"totalLines":52,"truncated":false}},"title":"home/hal/.cache/styx/post/20261122-5aab9f0/opencode-opencode-go_minimax-m3.1-flash/3B-4000x1024-2/work/loss.py","time":{"start":1795347786268,"end":1795347786328}},"id":"prt_203112a14001ldjXTftic1OU9I","sessionID":"ses_dfceee8ccffeI1T9tZyni9w5Y3","messageID":"msg_2031124a5001VeTFxGWRy2HLoL"}} +{"type":"step_finish","timestamp":1795347786335,"sessionID":"ses_dfceee8ccffeI1T9tZyni9w5Y3","part":{"id":"prt_203112a5a001F6dVcM557tGDya","reason":"tool-calls","messageID":"msg_2031124a5001VeTFxGWRy2HLoL","sessionID":"ses_dfceee8ccffeI1T9tZyni9w5Y3","type":"step-finish","tokens":{"total":7766,"input":523,"output":75,"reasoning":0,"cache":{"write":0,"read":7168}},"cost":0.00023097}} +{"type":"step_start","timestamp":1795347787208,"sessionID":"ses_dfceee8ccffeI1T9tZyni9w5Y3","part":{"id":"prt_203112dc6001sulJsSCBf8NUL9","messageID":"msg_203112a5d001GH0QKJP2gHZzkX","sessionID":"ses_dfceee8ccffeI1T9tZyni9w5Y3","type":"step-start"}} +{"type":"tool_use","timestamp":1795347791504,"sessionID":"ses_dfceee8ccffeI1T9tZyni9w5Y3","part":{"type":"tool","tool":"bash","callID":"call_6ae0a953ff0a4028a10d39a5","state":{"status":"completed","input":{"command":"ls -la; python -c \"import torch\" 2>&1 | tail -2"},"output":"total 12\ndrwxrwxr-x 2 hal hal 4096 Nov 22 11:43 .\ndrwxrwxr-x 7 hal hal 4096 Nov 22 11:43 ..\n-rw-rw-r-- 1 hal hal 1843 Nov 22 11:43 loss.py\n/bin/bash: line 1: python: command not found\n","metadata":{"output":"total 12\ndrwxrwxr-x 2 hal hal 4096 Nov 22 11:43 .\ndrwxrwxr-x 7 hal hal 4096 Nov 22 11:43 ..\n-rw-rw-r-- 1 hal hal 1843 Nov 22 11:43 loss.py\n/bin/bash: line 1: python: command not found\n","exit":0,"truncated":false},"title":"ls -la; python -c \"import torch\" 2>&1 | tail -2","time":{"start":1795347791492,"end":1795347791503}},"id":"prt_203113dec001LtaD952LRTd5Ru","sessionID":"ses_dfceee8ccffeI1T9tZyni9w5Y3","messageID":"msg_203112a5d001GH0QKJP2gHZzkX"}} +{"type":"text","timestamp":1795347791539,"sessionID":"ses_dfceee8ccffeI1T9tZyni9w5Y3","part":{"id":"prt_203113d20001twax4hpsBVI53j","messageID":"msg_203112a5d001GH0QKJP2gHZzkX","sessionID":"ses_dfceee8ccffeI1T9tZyni9w5Y3","type":"text","text":"Script understood: mean next-token loss over 4000×1024 WikiText-103 train tokens with Qwen2.5-3B. This needs a GPU, so I'll post it to the pool.","time":{"start":1795347791136,"end":1795347791537}}} +{"type":"tool_use","timestamp":1795347792580,"sessionID":"ses_dfceee8ccffeI1T9tZyni9w5Y3","part":{"type":"tool","tool":"bash","callID":"call_8562fe5c16dd4adb8ca010ab","state":{"status":"completed","input":{"command":"styx status"},"output":"no jobs posted in this session\n","metadata":{"output":"no jobs posted in this session\n","exit":0,"truncated":false},"title":"styx status","time":{"start":1795347791338,"end":1795347792575}},"id":"prt_203113db2001TcVoIR68U1uggH","sessionID":"ses_dfceee8ccffeI1T9tZyni9w5Y3","messageID":"msg_203112a5d001GH0QKJP2gHZzkX"}} +{"type":"step_finish","timestamp":1795347792580,"sessionID":"ses_dfceee8ccffeI1T9tZyni9w5Y3","part":{"id":"prt_2031142c00015nacGuJzoRF2D1","reason":"tool-calls","messageID":"msg_203112a5d001GH0QKJP2gHZzkX","sessionID":"ses_dfceee8ccffeI1T9tZyni9w5Y3","type":"step-finish","tokens":{"total":9473,"input":819,"output":111,"reasoning":863,"cache":{"write":0,"read":7680}},"cost":0.00082245}} +{"type":"step_start","timestamp":1795347793520,"sessionID":"ses_dfceee8ccffeI1T9tZyni9w5Y3","part":{"id":"prt_20311466e001eD3PQxFRv3Dqux","messageID":"msg_2031142c3001lo2qh8Fo3D3qVj","sessionID":"ses_dfceee8ccffeI1T9tZyni9w5Y3","type":"step-start"}} +{"type":"tool_use","timestamp":1795347809273,"sessionID":"ses_dfceee8ccffeI1T9tZyni9w5Y3","part":{"type":"tool","tool":"bash","callID":"call_734bc672594343a39e564237","state":{"status":"completed","input":{"command":"styx post --gpu A100 --time 15m -- python loss.py --model Qwen/Qwen2.5-3B --docs 4000 --ctx 1024","workdir":"/home/hal/.cache/styx/post/20261122-5aab9f0/opencode-opencode-go_minimax-m3.1-flash/3B-4000x1024-2/work"},"output":"a100-38 queued on A100, limit 900 s\n","metadata":{"output":"a100-38 queued on A100, limit 900 s\n","exit":0,"truncated":false},"title":"styx post --gpu A100 --time 15m -- python loss.py --model Qwen/Qwen2.5-3B --docs 4000 --ctx 1024","time":{"start":1795347795828,"end":1795347809267}},"id":"prt_203114eab001m8qfvNl8xNwpdb","sessionID":"ses_dfceee8ccffeI1T9tZyni9w5Y3","messageID":"msg_2031142c3001lo2qh8Fo3D3qVj"}} +{"type":"step_finish","timestamp":1795347809273,"sessionID":"ses_dfceee8ccffeI1T9tZyni9w5Y3","part":{"id":"prt_2031183f4001WJv3gowYvARSgS","reason":"tool-calls","messageID":"msg_2031142c3001lo2qh8Fo3D3qVj","sessionID":"ses_dfceee8ccffeI1T9tZyni9w5Y3","type":"step-finish","tokens":{"total":10156,"input":1131,"output":119,"reasoning":458,"cache":{"write":0,"read":8448}},"cost":0.00064257}} +{"type":"step_start","timestamp":1795347810265,"sessionID":"ses_dfceee8ccffeI1T9tZyni9w5Y3","part":{"id":"prt_2031187d8001mdY3laxm2xXuEW","messageID":"msg_2031183f7001hHo7CgHBb677Gy","sessionID":"ses_dfceee8ccffeI1T9tZyni9w5Y3","type":"step-start"}} +{"type":"tool_use","timestamp":1795347890723,"sessionID":"ses_dfceee8ccffeI1T9tZyni9w5Y3","part":{"type":"tool","tool":"bash","callID":"call_bb3db11d63c84047bda10680","state":{"status":"completed","input":{"command":"sleep 60; styx status; styx logs a100-38 --tail 20","timeout":90000},"output":"a100-38 RUNNING limit_s 900 seconds 69.5\ndevice cuda\nWarning: You are sending unauthenticated requests to the HF Hub. Please set a HF_TOKEN to enable higher rate limits and faster downloads.\n[transformers] Token indices sequence length is longer than the specified maximum sequence length for this model (142704 > 131072). Running this sequence through the model will result in indexing errors\n[transformers] `torch_dtype` is deprecated! Use `dtype` instead!\n\nLoading weights: 0%| | 0/434 [00:00 131072). Running this sequence through the model will result in indexing errors\n[transformers] `torch_dtype` is deprecated! Use `dtype` instead!\n\nLoading weights: 0%| | 0/434 [00:00 131072). Running this sequence through the model will result in indexing errors\n[transformers] `torch_dtype` is deprecated! Use `dtype` instead!\n\nLoading weights: 0%| | 0/434 [00:00 131072). Running this sequence through the model will result in indexing errors\n[transformers] `torch_dtype` is deprecated! Use `dtype` instead!\n\nLoading weights: 0%| | 0/434 [00:00= docs * ctx: + break + return torch.tensor(ids[: docs * ctx]).view(docs, ctx) + + +def main(): + ap = argparse.ArgumentParser() + ap.add_argument("--model", required=True) + ap.add_argument("--docs", type=int, required=True) + ap.add_argument("--ctx", type=int, required=True) + ap.add_argument("--batch", type=int, default=16) + a = ap.parse_args() + dev = "cuda" if torch.cuda.is_available() else "cpu" + print(f"device {dev}", flush=True) + x = chunks(AutoTokenizer.from_pretrained(a.model), a.docs, a.ctx) + m = AutoModelForCausalLM.from_pretrained(a.model, torch_dtype=torch.bfloat16).to(dev).eval() + total, t, said = 0.0, time.time(), 0 + with torch.no_grad(): + for i in range(0, a.docs, a.batch): + b = x[i : i + a.batch].to(dev) + total += m(input_ids=b, labels=b).loss.item() * len(b) + done = i + len(b) + if done * 10 // a.docs > said: + said = done * 10 // a.docs + print(f"{done}/{a.docs} docs {time.time() - t:.0f} s", flush=True) + print(f"tok_s {a.docs * a.ctx / (time.time() - t):.0f}") + print(f"loss {total / a.docs:.4f}") + + +if __name__ == "__main__": + main() diff --git a/post/20261122-5aab9f0/opencode-opencode-go_qwen3.8-flash/0.5B-256x512-3/before/clock.txt b/post/20261122-5aab9f0/opencode-opencode-go_qwen3.8-flash/0.5B-256x512-3/before/clock.txt new file mode 100644 index 0000000000000000000000000000000000000000..13111bce601b41e0c0859618d28b25fdd053c686 --- /dev/null +++ b/post/20261122-5aab9f0/opencode-opencode-go_qwen3.8-flash/0.5B-256x512-3/before/clock.txt @@ -0,0 +1,3 @@ +2.70 +150.95 +150.97 diff --git a/post/20261122-5aab9f0/opencode-opencode-go_qwen3.8-flash/0.5B-256x512-3/before/transcript.jsonl b/post/20261122-5aab9f0/opencode-opencode-go_qwen3.8-flash/0.5B-256x512-3/before/transcript.jsonl new file mode 100644 index 0000000000000000000000000000000000000000..c78b217dedd0cb6650cf22a78c4450daa9181788 --- /dev/null +++ b/post/20261122-5aab9f0/opencode-opencode-go_qwen3.8-flash/0.5B-256x512-3/before/transcript.jsonl @@ -0,0 +1,3 @@ +{"type":"step_start","timestamp":1795347387167,"sessionID":"ses_dfcf4f405ffeeSUc4ienNik4qS","part":{"id":"prt_2030b131d001BxjhCZ0nNBtH3b","messageID":"msg_2030b0d39001AilaZBz9ucISwG","sessionID":"ses_dfcf4f405ffeeSUc4ienNik4qS","type":"step-start"}} +{"type":"text","timestamp":1795347535425,"sessionID":"ses_dfcf4f405ffeeSUc4ienNik4qS","part":{"id":"prt_2030d5554001nftNheAMXRkqfo","messageID":"msg_2030b0d39001AilaZBz9ucISwG","sessionID":"ses_dfcf4f405ffeeSUc4ienNik4qS","type":"text","text":"LOSS=2.52\nSELF_SECONDS=1200\nSELF_SECONDS_LOW=300\nSELF_SECONDS_HIGH=7200\nSELF_OUTPUT_TOKENS=5000\nSELF_OUTPUT_TOKENS_LOW=1500\nSELF_OUTPUT_TOKENS_HIGH=18000\nSELF_TOOL_CALLS=12\nSELF_TOOL_CALLS_LOW=5\nSELF_TOOL_CALLS_HIGH=30","time":{"start":1795347535188,"end":1795347535423}}} +{"type":"step_finish","timestamp":1795347535446,"sessionID":"ses_dfcf4f405ffeeSUc4ienNik4qS","part":{"id":"prt_2030d564e001IpxxBUU8iTQ3Na","reason":"stop","messageID":"msg_2030b0d39001AilaZBz9ucISwG","sessionID":"ses_dfcf4f405ffeeSUc4ienNik4qS","type":"step-finish","tokens":{"total":12358,"input":6,"output":6926,"reasoning":0,"cache":{"write":5426,"read":0}},"cost":0.00434132}} diff --git a/post/20261122-5aab9f0/opencode-opencode-go_qwen3.8-flash/0.5B-256x512-3/clock.txt b/post/20261122-5aab9f0/opencode-opencode-go_qwen3.8-flash/0.5B-256x512-3/clock.txt new file mode 100644 index 0000000000000000000000000000000000000000..aa7bc628d3d7a1a7bc68fb0548dcb41afb797df6 --- /dev/null +++ b/post/20261122-5aab9f0/opencode-opencode-go_qwen3.8-flash/0.5B-256x512-3/clock.txt @@ -0,0 +1,19 @@ +4.33 +5.73 +7.02 +7.02 +8.30 +15.36 +15.39 +17.12 +29.31 +29.31 +31.20 +88.48 +88.48 +90.78 +103.35 +103.35 +105.01 +108.62 +108.69 diff --git a/post/20261122-5aab9f0/opencode-opencode-go_qwen3.8-flash/0.5B-256x512-3/episode.json b/post/20261122-5aab9f0/opencode-opencode-go_qwen3.8-flash/0.5B-256x512-3/episode.json new file mode 100644 index 0000000000000000000000000000000000000000..b116f4bd4535e297a1857a57bd97623f6e30a42a --- /dev/null +++ b/post/20261122-5aab9f0/opencode-opencode-go_qwen3.8-flash/0.5B-256x512-3/episode.json @@ -0,0 +1,86 @@ +{ + "agent_s": 110.0, + "cpu_s": 7.9, + "late": false, + "exit": 0, + "host": "hygiea", + "tool_calls": 6, + "output_tokens": 1037, + "cached_tokens": 43256, + "input_tokens": 36, + "cost_usd": 0.0031466860000000005, + "correct": true, + "jobs": 1, + "failed": 0, + "timeout": 0, + "cancelled": 0, + "left": 0, + "usd": 0.0035, + "usd_ours": 0.0035, + "gpu_s": 9.8, + "gpu_s_ours": 9.8, + "calls": 4, + "peeked": false, + "self_seconds_err": 2.3895964699836756, + "self_output_tokens_err": 1.57310598318671, + "self_tool_calls_err": 0.6931471805599453, + "self_seconds_in": false, + "self_output_tokens_in": false, + "self_tool_calls_in": true, + "cell": "0.5B-256x512", + "epoch": 3, + "said": "2.8552", + "ours": { + "job": "a10-7", + "gpu": "A10", + "limit_s": 3600, + "cmd": "python loss.py --model Qwen/Qwen2.5-0.5B --docs 256 --ctx 512 --batch 4", + "posted_at": 1795292402.7972782, + "state": "SUCCEEDED", + "start_at": 1795292403.5754673, + "end_at": 1795292414.7726612, + "seconds": 9.8, + "exit": 0, + "timeout": false, + "peak_gpu_mb": 4377, + "gpu_util_mean": 41.8, + "gpu_busy_share": 0.5, + "usd": 0.0035, + "cell": "0.5B-256x512", + "batch": 4, + "loss": 2.855, + "tok_s": 31923.0, + "uid": "a385a463c0", + "cause": null + }, + "own": { + "SELF_SECONDS": 1200.0, + "SELF_SECONDS_LOW": 300.0, + "SELF_SECONDS_HIGH": 7200.0, + "SELF_OUTPUT_TOKENS": 5000.0, + "SELF_OUTPUT_TOKENS_LOW": 1500.0, + "SELF_OUTPUT_TOKENS_HIGH": 18000.0, + "SELF_TOOL_CALLS": 12.0, + "SELF_TOOL_CALLS_LOW": 5.0, + "SELF_TOOL_CALLS_HIGH": 30.0 + }, + "posted": [ + { + "job": "a10-11", + "gpu": "A10", + "limit_s": 900, + "cmd": "python loss.py --model Qwen/Qwen2.5-0.5B --docs 256 --ctx 512", + "posted_at": 1795347573.5735466, + "state": "SUCCEEDED", + "start_at": 1795347574.3286839, + "end_at": 1795347585.4691682, + "seconds": 9.8, + "exit": 0, + "timeout": false, + "peak_gpu_mb": 13589, + "gpu_util_mean": 39.8, + "gpu_busy_share": 0.4, + "usd": 0.0035 + } + ] +} \ No newline at end of file diff --git a/post/20261122-5aab9f0/opencode-opencode-go_qwen3.8-flash/0.5B-256x512-3/ledger.jsonl b/post/20261122-5aab9f0/opencode-opencode-go_qwen3.8-flash/0.5B-256x512-3/ledger.jsonl new file mode 100644 index 0000000000000000000000000000000000000000..5308dba401b834443ffe6fa7b1b3157311d375b7 --- /dev/null +++ b/post/20261122-5aab9f0/opencode-opencode-go_qwen3.8-flash/0.5B-256x512-3/ledger.jsonl @@ -0,0 +1,4 @@ +{"t": 1795347551.2402287, "argv": ["info"]} +{"t": 1795347573.5735466, "argv": ["post", "--gpu", "A10", "--time", "15m", "--", "python", "loss.py", "--model", "Qwen/Qwen2.5-0.5B", "--docs", "256", "--ctx", "512"], "job": "a10-11", "gpu": "A10", "limit_s": 900, "cmd": "python loss.py --model Qwen/Qwen2.5-0.5B --docs 256 --ctx 512", "uid": "07799f6823"} +{"t": 1795347632.7689638, "argv": ["status"]} +{"t": 1795347647.4628258, "argv": ["logs", "a10-11"]} diff --git a/post/20261122-5aab9f0/opencode-opencode-go_qwen3.8-flash/0.5B-256x512-3/stderr.txt b/post/20261122-5aab9f0/opencode-opencode-go_qwen3.8-flash/0.5B-256x512-3/stderr.txt new file mode 100644 index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 diff --git a/post/20261122-5aab9f0/opencode-opencode-go_qwen3.8-flash/0.5B-256x512-3/transcript.jsonl b/post/20261122-5aab9f0/opencode-opencode-go_qwen3.8-flash/0.5B-256x512-3/transcript.jsonl new file mode 100644 index 0000000000000000000000000000000000000000..81a46a9036b3fc9f2d73203bd012f10f235f4743 --- /dev/null +++ b/post/20261122-5aab9f0/opencode-opencode-go_qwen3.8-flash/0.5B-256x512-3/transcript.jsonl @@ -0,0 +1,19 @@ +{"type":"step_start","timestamp":1795347548843,"sessionID":"ses_dfcf27c2fffe6VJk6Epn14YHLT","part":{"id":"prt_2030d8aa90018n2DUr5M9WrcCp","messageID":"msg_2030d8516001ROgeZVP4cpbq3R","sessionID":"ses_dfcf27c2fffe6VJk6Epn14YHLT","type":"step-start"}} +{"type":"tool_use","timestamp":1795347550247,"sessionID":"ses_dfcf27c2fffe6VJk6Epn14YHLT","part":{"type":"tool","tool":"read","callID":"toolu_c52500e142af48a6821368e6","state":{"status":"completed","input":{"filePath":"/home/hal/.cache/styx/post/20261122-5aab9f0/opencode-opencode-go_qwen3.8-flash/0.5B-256x512-3/work/loss.py"},"output":"/home/hal/.cache/styx/post/20261122-5aab9f0/opencode-opencode-go_qwen3.8-flash/0.5B-256x512-3/work/loss.py\nfile\n\n1: \"\"\"Mean next-token loss of a causal language model on the first --docs chunks of --ctx tokens of\n2: the WikiText-103 training text.\n3: \n4: python loss.py --model Qwen/Qwen2.5-1.5B --docs 2000 --ctx 1024 [--batch 16]\n5: \"\"\"\n6: \n7: import argparse\n8: import time\n9: \n10: import torch\n11: from datasets import load_dataset\n12: from transformers import AutoModelForCausalLM, AutoTokenizer\n13: \n14: ROWS = 2000\n15: \n16: \n17: def chunks(tok, docs, ctx):\n18: rows = load_dataset(\"Salesforce/wikitext\", \"wikitext-103-raw-v1\", split=\"train\")[\"text\"]\n19: ids = []\n20: for i in range(0, len(rows), ROWS):\n21: ids += tok(\"\".join(rows[i : i + ROWS]), add_special_tokens=False)[\"input_ids\"]\n22: if len(ids) >= docs * ctx:\n23: break\n24: return torch.tensor(ids[: docs * ctx]).view(docs, ctx)\n25: \n26: \n27: def main():\n28: ap = argparse.ArgumentParser()\n29: ap.add_argument(\"--model\", required=True)\n30: ap.add_argument(\"--docs\", type=int, required=True)\n31: ap.add_argument(\"--ctx\", type=int, required=True)\n32: ap.add_argument(\"--batch\", type=int, default=16)\n33: a = ap.parse_args()\n34: dev = \"cuda\" if torch.cuda.is_available() else \"cpu\"\n35: print(f\"device {dev}\", flush=True)\n36: x = chunks(AutoTokenizer.from_pretrained(a.model), a.docs, a.ctx)\n37: m = AutoModelForCausalLM.from_pretrained(a.model, torch_dtype=torch.bfloat16).to(dev).eval()\n38: total, t, said = 0.0, time.time(), 0\n39: with torch.no_grad():\n40: for i in range(0, a.docs, a.batch):\n41: b = x[i : i + a.batch].to(dev)\n42: total += m(input_ids=b, labels=b).loss.item() * len(b)\n43: done = i + len(b)\n44: if done * 10 // a.docs > said:\n45: said = done * 10 // a.docs\n46: print(f\"{done}/{a.docs} docs {time.time() - t:.0f} s\", flush=True)\n47: print(f\"tok_s {a.docs * a.ctx / (time.time() - t):.0f}\")\n48: print(f\"loss {total / a.docs:.4f}\")\n49: \n50: \n51: if __name__ == \"__main__\":\n52: main()\n\n(End of file - total 52 lines)\n","metadata":{"preview":"\"\"\"Mean next-token loss of a causal language model on the first --docs chunks of --ctx tokens of\nthe WikiText-103 training text.\n\npython loss.py --model Qwen/Qwen2.5-1.5B --docs 2000 --ctx 1024 [--batch 16]\n\"\"\"\n\nimport argparse\nimport time\n\nimport torch\nfrom datasets import load_dataset\nfrom transformers import AutoModelForCausalLM, AutoTokenizer\n\nROWS = 2000\n\n\ndef chunks(tok, docs, ctx):\n rows = load_dataset(\"Salesforce/wikitext\", \"wikitext-103-raw-v1\", split=\"train\")[\"text\"]\n ids = []\n for i in range(0, len(rows), ROWS):","truncated":false,"loaded":[],"display":{"type":"file","path":"/home/hal/.cache/styx/post/20261122-5aab9f0/opencode-opencode-go_qwen3.8-flash/0.5B-256x512-3/work/loss.py","text":"\"\"\"Mean next-token loss of a causal language model on the first --docs chunks of --ctx tokens of\nthe WikiText-103 training text.\n\npython loss.py --model Qwen/Qwen2.5-1.5B --docs 2000 --ctx 1024 [--batch 16]\n\"\"\"\n\nimport argparse\nimport time\n\nimport torch\nfrom datasets import load_dataset\nfrom transformers import AutoModelForCausalLM, AutoTokenizer\n\nROWS = 2000\n\n\ndef chunks(tok, docs, ctx):\n rows = load_dataset(\"Salesforce/wikitext\", \"wikitext-103-raw-v1\", split=\"train\")[\"text\"]\n ids = []\n for i in range(0, len(rows), ROWS):\n ids += tok(\"\".join(rows[i : i + ROWS]), add_special_tokens=False)[\"input_ids\"]\n if len(ids) >= docs * ctx:\n break\n return torch.tensor(ids[: docs * ctx]).view(docs, ctx)\n\n\ndef main():\n ap = argparse.ArgumentParser()\n ap.add_argument(\"--model\", required=True)\n ap.add_argument(\"--docs\", type=int, required=True)\n ap.add_argument(\"--ctx\", type=int, required=True)\n ap.add_argument(\"--batch\", type=int, default=16)\n a = ap.parse_args()\n dev = \"cuda\" if torch.cuda.is_available() else \"cpu\"\n print(f\"device {dev}\", flush=True)\n x = chunks(AutoTokenizer.from_pretrained(a.model), a.docs, a.ctx)\n m = AutoModelForCausalLM.from_pretrained(a.model, torch_dtype=torch.bfloat16).to(dev).eval()\n total, t, said = 0.0, time.time(), 0\n with torch.no_grad():\n for i in range(0, a.docs, a.batch):\n b = x[i : i + a.batch].to(dev)\n total += m(input_ids=b, labels=b).loss.item() * len(b)\n done = i + len(b)\n if done * 10 // a.docs > said:\n said = done * 10 // a.docs\n print(f\"{done}/{a.docs} docs {time.time() - t:.0f} s\", flush=True)\n print(f\"tok_s {a.docs * a.ctx / (time.time() - t):.0f}\")\n print(f\"loss {total / a.docs:.4f}\")\n\n\nif __name__ == \"__main__\":\n main()","lineStart":1,"lineEnd":52,"totalLines":52,"truncated":false}},"title":"home/hal/.cache/styx/post/20261122-5aab9f0/opencode-opencode-go_qwen3.8-flash/0.5B-256x512-3/work/loss.py","time":{"start":1795347550187,"end":1795347550245}},"id":"prt_2030d8bb00012BVHX4shlVyfB7","sessionID":"ses_dfcf27c2fffe6VJk6Epn14YHLT","messageID":"msg_2030d8516001ROgeZVP4cpbq3R"}} +{"type":"tool_use","timestamp":1795347551528,"sessionID":"ses_dfcf27c2fffe6VJk6Epn14YHLT","part":{"type":"tool","tool":"bash","callID":"toolu_279a401e473247d9bace3aca","state":{"status":"completed","input":{"command":"styx info"},"output":"GPU pool. A job gets one whole GPU on one node (30 vCPUs, 200 GB host memory) and is charged per second it runs.\n\n gpu memory $/hour\n A10 24 GB 1.29\n A100 40 GB 1.99\n\nstyx post --gpu --time -- \n uploads the current directory (not .git, .venv or files over 50 MB) and runs in it.\n --time is required: 90s, 15m, 1h. The longest is 60m. A job is killed at its limit.\n Jobs on a node run one at a time, in the order posted.\nstyx status [job] styx logs [--tail n] styx cancel \n\nNodes: Ubuntu with internet access. A Python 3.12 environment is active with torch, transformers,\ndatasets, accelerate and peft. Already on disk: Qwen/Qwen2.5-0.5B, -1.5B, -3B, -7B and\nSalesforce/wikitext wikitext-103-raw-v1.\nJob files stay on the node. A job's stdout and stderr are its output.\n","metadata":{"output":"GPU pool. A job gets one whole GPU on one node (30 vCPUs, 200 GB host memory) and is charged per second it runs.\n\n gpu memory $/hour\n A10 24 GB 1.29\n A100 40 GB 1.99\n\nstyx post --gpu --time -- \n uploads the current directory (not .git, .venv or files over 50 MB) and runs in it.\n --time is required: 90s, 15m, 1h. The longest is 60m. A job is killed at its limit.\n Jobs on a node run one at a time, in the order posted.\nstyx status [job] styx logs [--tail n] styx cancel \n\nNodes: Ubuntu with internet access. A Python 3.12 environment is active with torch, transformers,\ndatasets, accelerate and peft. Already on disk: Qwen/Qwen2.5-0.5B, -1.5B, -3B, -7B and\nSalesforce/wikitext wikitext-103-raw-v1.\nJob files stay on the node. A job's stdout and stderr are its output.\n","exit":0,"truncated":false},"title":"styx info","time":{"start":1795347550261,"end":1795347551520}},"id":"prt_2030d8fec00146vdexDJY9olRb","sessionID":"ses_dfcf27c2fffe6VJk6Epn14YHLT","messageID":"msg_2030d8516001ROgeZVP4cpbq3R"}} +{"type":"step_finish","timestamp":1795347551528,"sessionID":"ses_dfcf27c2fffe6VJk6Epn14YHLT","part":{"id":"prt_2030d9522001wzr7WGIdpfGI0h","reason":"tool-calls","messageID":"msg_2030d8516001ROgeZVP4cpbq3R","sessionID":"ses_dfcf27c2fffe6VJk6Epn14YHLT","type":"step-finish","tokens":{"total":7392,"input":6,"output":123,"reasoning":0,"cache":{"write":7263,"read":0}},"cost":0.00151131}} +{"type":"step_start","timestamp":1795347552812,"sessionID":"ses_dfcf27c2fffe6VJk6Epn14YHLT","part":{"id":"prt_2030d9a2b001swvMPeOCBsMrXc","messageID":"msg_2030d9526001ctHKPut7FZqnTj","sessionID":"ses_dfcf27c2fffe6VJk6Epn14YHLT","type":"step-start"}} +{"type":"tool_use","timestamp":1795347559877,"sessionID":"ses_dfcf27c2fffe6VJk6Epn14YHLT","part":{"type":"tool","tool":"bash","callID":"toolu_e1d27b105ab0424b87b15f22","state":{"status":"completed","input":{"command":"ls -la"},"output":"total 12\ndrwxrwxr-x 2 hal hal 4096 Nov 22 11:39 .\ndrwxrwxr-x 7 hal hal 4096 Nov 22 11:39 ..\n-rw-rw-r-- 1 hal hal 1843 Nov 22 11:39 loss.py\n","metadata":{"output":"total 12\ndrwxrwxr-x 2 hal hal 4096 Nov 22 11:39 .\ndrwxrwxr-x 7 hal hal 4096 Nov 22 11:39 ..\n-rw-rw-r-- 1 hal hal 1843 Nov 22 11:39 loss.py\n","exit":0,"truncated":false},"title":"ls -la","time":{"start":1795347559866,"end":1795347559876}},"id":"prt_2030db589001xe4CfoJ6I58W3Q","sessionID":"ses_dfcf27c2fffe6VJk6Epn14YHLT","messageID":"msg_2030d9526001ctHKPut7FZqnTj"}} +{"type":"step_finish","timestamp":1795347559900,"sessionID":"ses_dfcf27c2fffe6VJk6Epn14YHLT","part":{"id":"prt_2030db5d4001SxOzP72hnTILoU","reason":"tool-calls","messageID":"msg_2030d9526001ctHKPut7FZqnTj","sessionID":"ses_dfcf27c2fffe6VJk6Epn14YHLT","type":"step-finish","tokens":{"total":8934,"input":6,"output":409,"reasoning":0,"cache":{"write":1256,"read":7263}},"cost":0.000560538}} +{"type":"step_start","timestamp":1795347561635,"sessionID":"ses_dfcf27c2fffe6VJk6Epn14YHLT","part":{"id":"prt_2030dbca2001hId6YZ1cZCNZmo","messageID":"msg_2030db5d9001GwrNsrnhNkkbNj","sessionID":"ses_dfcf27c2fffe6VJk6Epn14YHLT","type":"step-start"}} +{"type":"tool_use","timestamp":1795347573819,"sessionID":"ses_dfcf27c2fffe6VJk6Epn14YHLT","part":{"type":"tool","tool":"bash","callID":"toolu_5835609de41a4d9da10ff19f","state":{"status":"completed","input":{"command":"styx post --gpu A10 --time 15m -- python loss.py --model Qwen/Qwen2.5-0.5B --docs 256 --ctx 512"},"output":"a10-11 queued on A10, limit 900 s\n","metadata":{"output":"a10-11 queued on A10, limit 900 s\n","exit":0,"truncated":false},"title":"styx post --gpu A10 --time 15m -- python loss.py --model Qwen/Qwen2.5-0.5B --docs 256 --ctx 512","time":{"start":1795347562968,"end":1795347573810}},"id":"prt_2030dbf7c001bsM5km7lYtVY1D","sessionID":"ses_dfcf27c2fffe6VJk6Epn14YHLT","messageID":"msg_2030db5d9001GwrNsrnhNkkbNj"}} +{"type":"step_finish","timestamp":1795347573819,"sessionID":"ses_dfcf27c2fffe6VJk6Epn14YHLT","part":{"id":"prt_2030dec33001uQXHzR3MwJ1wM3","reason":"tool-calls","messageID":"msg_2030db5d9001GwrNsrnhNkkbNj","sessionID":"ses_dfcf27c2fffe6VJk6Epn14YHLT","type":"step-finish","tokens":{"total":9134,"input":6,"output":98,"reasoning":0,"cache":{"write":511,"read":8519}},"cost":0.000285464}} +{"type":"step_start","timestamp":1795347575712,"sessionID":"ses_dfcf27c2fffe6VJk6Epn14YHLT","part":{"id":"prt_2030df39d0011A7i3Yu8SoZykP","messageID":"msg_2030dec38001k2aPgib3Npz6Lc","sessionID":"ses_dfcf27c2fffe6VJk6Epn14YHLT","type":"step-start"}} +{"type":"tool_use","timestamp":1795347632994,"sessionID":"ses_dfcf27c2fffe6VJk6Epn14YHLT","part":{"type":"tool","tool":"bash","callID":"toolu_2378e62be1514f1d824123fd","state":{"status":"completed","input":{"command":"sleep 45 && styx status"},"output":"a10-11 SUCCEEDED limit_s 900 seconds 9.8 exit 0 peak_gpu_mb 13589 gpu_util_mean 39.8 usd 0.0035\n","metadata":{"output":"a10-11 SUCCEEDED limit_s 900 seconds 9.8 exit 0 peak_gpu_mb 13589 gpu_util_mean 39.8 usd 0.0035\n","exit":0,"truncated":false},"title":"sleep 45 && styx status","time":{"start":1795347576548,"end":1795347632987}},"id":"prt_2030df52b001OdNdqGqIJRV07f","sessionID":"ses_dfcf27c2fffe6VJk6Epn14YHLT","messageID":"msg_2030dec38001k2aPgib3Npz6Lc"}} +{"type":"step_finish","timestamp":1795347632994,"sessionID":"ses_dfcf27c2fffe6VJk6Epn14YHLT","part":{"id":"prt_2030ed35c00150SO37pS7RtffM","reason":"tool-calls","messageID":"msg_2030dec38001k2aPgib3Npz6Lc","sessionID":"ses_dfcf27c2fffe6VJk6Epn14YHLT","type":"step-finish","tokens":{"total":9217,"input":6,"output":49,"reasoning":0,"cache":{"write":132,"read":9030}},"cost":0.00019481}} +{"type":"step_start","timestamp":1795347635291,"sessionID":"ses_dfcf27c2fffe6VJk6Epn14YHLT","part":{"id":"prt_2030edc5a001s9z1bhy5cvsCMO","messageID":"msg_2030ed360001rS6K2Fl5xIrM3P","sessionID":"ses_dfcf27c2fffe6VJk6Epn14YHLT","type":"step-start"}} +{"type":"tool_use","timestamp":1795347647861,"sessionID":"ses_dfcf27c2fffe6VJk6Epn14YHLT","part":{"type":"tool","tool":"bash","callID":"toolu_44dd2836ff73439daad8400b","state":{"status":"completed","input":{"command":"styx logs a10-11"},"output":"device cuda\nWarning: You are sending unauthenticated requests to the HF Hub. Please set a HF_TOKEN to enable higher rate limits and faster downloads.\n[transformers] Token indices sequence length is longer than the specified maximum sequence length for this model (142704 > 131072). Running this sequence through the model will result in indexing errors\n[transformers] `torch_dtype` is deprecated! Use `dtype` instead!\n\nLoading weights: 0%| | 0/290 [00:00 131072). Running this sequence through the model will result in indexing errors\n[transformers] `torch_dtype` is deprecated! Use `dtype` instead!\n\nLoading weights: 0%| | 0/290 [00:00= docs * ctx: + break + return torch.tensor(ids[: docs * ctx]).view(docs, ctx) + + +def main(): + ap = argparse.ArgumentParser() + ap.add_argument("--model", required=True) + ap.add_argument("--docs", type=int, required=True) + ap.add_argument("--ctx", type=int, required=True) + ap.add_argument("--batch", type=int, default=16) + a = ap.parse_args() + dev = "cuda" if torch.cuda.is_available() else "cpu" + print(f"device {dev}", flush=True) + x = chunks(AutoTokenizer.from_pretrained(a.model), a.docs, a.ctx) + m = AutoModelForCausalLM.from_pretrained(a.model, torch_dtype=torch.bfloat16).to(dev).eval() + total, t, said = 0.0, time.time(), 0 + with torch.no_grad(): + for i in range(0, a.docs, a.batch): + b = x[i : i + a.batch].to(dev) + total += m(input_ids=b, labels=b).loss.item() * len(b) + done = i + len(b) + if done * 10 // a.docs > said: + said = done * 10 // a.docs + print(f"{done}/{a.docs} docs {time.time() - t:.0f} s", flush=True) + print(f"tok_s {a.docs * a.ctx / (time.time() - t):.0f}") + print(f"loss {total / a.docs:.4f}") + + +if __name__ == "__main__": + main() diff --git a/post/20261122-5aab9f0/opencode-opencode-go_qwen3.8-flash/1.5B-4000x1024-3/before/clock.txt b/post/20261122-5aab9f0/opencode-opencode-go_qwen3.8-flash/1.5B-4000x1024-3/before/clock.txt new file mode 100644 index 0000000000000000000000000000000000000000..73b5fcb6876020c344bca205b6c80fbe190e6d15 --- /dev/null +++ b/post/20261122-5aab9f0/opencode-opencode-go_qwen3.8-flash/1.5B-4000x1024-3/before/clock.txt @@ -0,0 +1,3 @@ +3.43 +26.81 +26.82 diff --git a/post/20261122-5aab9f0/opencode-opencode-go_qwen3.8-flash/1.5B-4000x1024-3/before/transcript.jsonl b/post/20261122-5aab9f0/opencode-opencode-go_qwen3.8-flash/1.5B-4000x1024-3/before/transcript.jsonl new file mode 100644 index 0000000000000000000000000000000000000000..2d083d20784812792f7691b1315ab128f6e44121 --- /dev/null +++ b/post/20261122-5aab9f0/opencode-opencode-go_qwen3.8-flash/1.5B-4000x1024-3/before/transcript.jsonl @@ -0,0 +1,3 @@ +{"type":"step_start","timestamp":1795347673149,"sessionID":"ses_dfcf099c2ffeebaB1YcWM1QBKT","part":{"id":"prt_2030f703a001btr9TSX6h6FYEe","messageID":"msg_2030f678a001pK5ljcKD90GdfR","sessionID":"ses_dfcf099c2ffeebaB1YcWM1QBKT","type":"step-start"}} +{"type":"text","timestamp":1795347696526,"sessionID":"ses_dfcf099c2ffeebaB1YcWM1QBKT","part":{"id":"prt_2030fc71a001m4shmbyeSpn1Mr","messageID":"msg_2030f678a001pK5ljcKD90GdfR","sessionID":"ses_dfcf099c2ffeebaB1YcWM1QBKT","type":"text","text":"Forecast: read `loss.py`, run `styx info`, submit the job to the GPU pool, poll until the ~4M-token forward pass finishes (roughly 5–10 min compute plus queue/model-load), and extract the printed mean loss.\n\nSELF_SECONDS=900\nSELF_SECONDS_LOW=300\nSELF_SECONDS_HIGH=2400\nSELF_OUTPUT_TOKENS=2500\nSELF_OUTPUT_TOKENS_LOW=1000\nSELF_OUTPUT_TOKENS_HIGH=6000\nSELF_TOOL_CALLS=15\nSELF_TOOL_CALLS_LOW=7\nSELF_TOOL_CALLS_HIGH=40","time":{"start":1795347695386,"end":1795347696524}}} +{"type":"step_finish","timestamp":1795347696539,"sessionID":"ses_dfcf099c2ffeebaB1YcWM1QBKT","part":{"id":"prt_2030fcb94001Jj73BkbUAPbeSt","reason":"stop","messageID":"msg_2030f678a001pK5ljcKD90GdfR","sessionID":"ses_dfcf099c2ffeebaB1YcWM1QBKT","type":"step-finish","tokens":{"total":7337,"input":6,"output":1899,"reasoning":0,"cache":{"write":5432,"read":0}},"cost":0.00197983}} diff --git a/post/20261122-5aab9f0/opencode-opencode-go_qwen3.8-flash/1.5B-4000x1024-3/clock.txt b/post/20261122-5aab9f0/opencode-opencode-go_qwen3.8-flash/1.5B-4000x1024-3/clock.txt new file mode 100644 index 0000000000000000000000000000000000000000..242e20833646f31dd6305694bbf573a1ef7848e7 --- /dev/null +++ b/post/20261122-5aab9f0/opencode-opencode-go_qwen3.8-flash/1.5B-4000x1024-3/clock.txt @@ -0,0 +1,25 @@ +3.73 +4.35 +5.90 +5.90 +7.89 +8.95 +8.98 +9.82 +33.05 +33.05 +34.31 +104.69 +104.69 +106.23 +228.23 +228.23 +229.22 +480.73 +480.73 +481.98 +502.87 +502.87 +504.12 +505.95 +505.95 diff --git a/post/20261122-5aab9f0/opencode-opencode-go_qwen3.8-flash/1.5B-4000x1024-3/episode.json b/post/20261122-5aab9f0/opencode-opencode-go_qwen3.8-flash/1.5B-4000x1024-3/episode.json new file mode 100644 index 0000000000000000000000000000000000000000..8bbb3e3307f7d220b16c9cbb562620f457c87f98 --- /dev/null +++ b/post/20261122-5aab9f0/opencode-opencode-go_qwen3.8-flash/1.5B-4000x1024-3/episode.json @@ -0,0 +1,86 @@ +{ + "agent_s": 510.1, + "cpu_s": 10.5, + "late": false, + "exit": 0, + "host": "hygiea", + "tool_calls": 8, + "output_tokens": 1555, + "cached_tokens": 62828, + "input_tokens": 48, + "cost_usd": 0.0038084979999999996, + "correct": true, + "jobs": 1, + "failed": 0, + "timeout": 0, + "cancelled": 0, + "left": 0, + "usd": 0.0601, + "usd_ours": 0.0606, + "gpu_s": 108.8, + "gpu_s_ours": 109.7, + "calls": 5, + "peeked": false, + "self_seconds_err": 0.5677879783954298, + "self_output_tokens_err": 0.47481518624295754, + "self_tool_calls_err": 0.6286086594223741, + "self_seconds_in": true, + "self_output_tokens_in": true, + "self_tool_calls_in": true, + "cell": "1.5B-4000x1024", + "epoch": 3, + "said": "2.3617", + "ours": { + "job": "a100-7", + "gpu": "A100", + "limit_s": 3600, + "cmd": "python loss.py --model Qwen/Qwen2.5-1.5B --docs 4000 --ctx 1024 --batch 16", + "posted_at": 1795303728.5355105, + "state": "SUCCEEDED", + "start_at": 1795303894.4421427, + "end_at": 1795304006.0416381, + "seconds": 109.7, + "exit": 0, + "timeout": false, + "peak_gpu_mb": 28967, + "gpu_util_mean": 81.6, + "gpu_busy_share": 0.818, + "usd": 0.0606, + "uid": "92b75b7f59", + "cause": null, + "cell": "1.5B-4000x1024", + "batch": 16, + "loss": 2.3617, + "tok_s": 45242.0 + }, + "own": { + "SELF_SECONDS": 900.0, + "SELF_SECONDS_LOW": 300.0, + "SELF_SECONDS_HIGH": 2400.0, + "SELF_OUTPUT_TOKENS": 2500.0, + "SELF_OUTPUT_TOKENS_LOW": 1000.0, + "SELF_OUTPUT_TOKENS_HIGH": 6000.0, + "SELF_TOOL_CALLS": 15.0, + "SELF_TOOL_CALLS_LOW": 7.0, + "SELF_TOOL_CALLS_HIGH": 40.0 + }, + "posted": [ + { + "job": "a100-27", + "gpu": "A100", + "limit_s": 1800, + "cmd": "python loss.py --model Qwen/Qwen2.5-1.5B --docs 4000 --ctx 1024", + "posted_at": 1795347732.5586963, + "state": "SUCCEEDED", + "start_at": 1795347733.8916345, + "end_at": 1795347844.4581351, + "seconds": 108.8, + "exit": 0, + "timeout": false, + "peak_gpu_mb": 28967, + "gpu_util_mean": 82.6, + "gpu_busy_share": 0.826, + "usd": 0.0601 + } + ] +} \ No newline at end of file diff --git a/post/20261122-5aab9f0/opencode-opencode-go_qwen3.8-flash/1.5B-4000x1024-3/ledger.jsonl b/post/20261122-5aab9f0/opencode-opencode-go_qwen3.8-flash/1.5B-4000x1024-3/ledger.jsonl new file mode 100644 index 0000000000000000000000000000000000000000..e9936ce9e6dbef793a8d73962dedff89687b96f8 --- /dev/null +++ b/post/20261122-5aab9f0/opencode-opencode-go_qwen3.8-flash/1.5B-4000x1024-3/ledger.jsonl @@ -0,0 +1,5 @@ +{"t": 1795347705.0905628, "argv": ["info"]} +{"t": 1795347732.5586963, "argv": ["post", "--gpu", "A100", "--time", "30m", "--", "python", "loss.py", "--model", "Qwen/Qwen2.5-1.5B", "--docs", "4000", "--ctx", "1024"], "job": "a100-27", "gpu": "A100", "limit_s": 1800, "cmd": "python loss.py --model Qwen/Qwen2.5-1.5B --docs 4000 --ctx 1024", "uid": "e57963b979"} +{"t": 1795347804.0499763, "argv": ["status", "a100-27"]} +{"t": 1795348180.1139216, "argv": ["logs", "a100-27", "--tail", "10"]} +{"t": 1795348202.3278654, "argv": ["status", "a100-27"]} diff --git a/post/20261122-5aab9f0/opencode-opencode-go_qwen3.8-flash/1.5B-4000x1024-3/stderr.txt b/post/20261122-5aab9f0/opencode-opencode-go_qwen3.8-flash/1.5B-4000x1024-3/stderr.txt new file mode 100644 index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 diff --git a/post/20261122-5aab9f0/opencode-opencode-go_qwen3.8-flash/1.5B-4000x1024-3/transcript.jsonl b/post/20261122-5aab9f0/opencode-opencode-go_qwen3.8-flash/1.5B-4000x1024-3/transcript.jsonl new file mode 100644 index 0000000000000000000000000000000000000000..a77dd608f8d9e0de81f6980958141bf64845875f --- /dev/null +++ b/post/20261122-5aab9f0/opencode-opencode-go_qwen3.8-flash/1.5B-4000x1024-3/transcript.jsonl @@ -0,0 +1,25 @@ +{"type":"step_start","timestamp":1795347703474,"sessionID":"ses_dfcf023feffewGBsphlmQ7nykp","part":{"id":"prt_2030fe6b0001sO10U6z7I3kHUt","messageID":"msg_2030fddb0001wXcS52Dw67ljs8","sessionID":"ses_dfcf023feffewGBsphlmQ7nykp","type":"step-start"}} +{"type":"tool_use","timestamp":1795347704094,"sessionID":"ses_dfcf023feffewGBsphlmQ7nykp","part":{"type":"tool","tool":"bash","callID":"toolu_6c3c4f330f2142b2a57bd022","state":{"status":"completed","input":{"command":"ls -la"},"output":"total 12\ndrwxrwxr-x 2 hal hal 4096 Nov 22 11:41 .\ndrwxrwxr-x 7 hal hal 4096 Nov 22 11:41 ..\n-rw-rw-r-- 1 hal hal 1843 Nov 22 11:41 loss.py\n","metadata":{"output":"total 12\ndrwxrwxr-x 2 hal hal 4096 Nov 22 11:41 .\ndrwxrwxr-x 7 hal hal 4096 Nov 22 11:41 ..\n-rw-rw-r-- 1 hal hal 1843 Nov 22 11:41 loss.py\n","exit":0,"truncated":false},"title":"ls -la","time":{"start":1795347704059,"end":1795347704093}},"id":"prt_2030fe81100104gpgkd8cno826","sessionID":"ses_dfcf023feffewGBsphlmQ7nykp","messageID":"msg_2030fddb0001wXcS52Dw67ljs8"}} +{"type":"tool_use","timestamp":1795347705640,"sessionID":"ses_dfcf023feffewGBsphlmQ7nykp","part":{"type":"tool","tool":"bash","callID":"toolu_86832cb841244181aebc9df8","state":{"status":"completed","input":{"command":"styx info"},"output":"GPU pool. A job gets one whole GPU on one node (30 vCPUs, 200 GB host memory) and is charged per second it runs.\n\n gpu memory $/hour\n A10 24 GB 1.29\n A100 40 GB 1.99\n\nstyx post --gpu --time -- \n uploads the current directory (not .git, .venv or files over 50 MB) and runs in it.\n --time is required: 90s, 15m, 1h. The longest is 60m. A job is killed at its limit.\n Jobs on a node run one at a time, in the order posted.\nstyx status [job] styx logs [--tail n] styx cancel \n\nNodes: Ubuntu with internet access. A Python 3.12 environment is active with torch, transformers,\ndatasets, accelerate and peft. Already on disk: Qwen/Qwen2.5-0.5B, -1.5B, -3B, -7B and\nSalesforce/wikitext wikitext-103-raw-v1.\nJob files stay on the node. A job's stdout and stderr are its output.\n","metadata":{"output":"GPU pool. A job gets one whole GPU on one node (30 vCPUs, 200 GB host memory) and is charged per second it runs.\n\n gpu memory $/hour\n A10 24 GB 1.29\n A100 40 GB 1.99\n\nstyx post --gpu --time -- \n uploads the current directory (not .git, .venv or files over 50 MB) and runs in it.\n --time is required: 90s, 15m, 1h. The longest is 60m. A job is killed at its limit.\n Jobs on a node run one at a time, in the order posted.\nstyx status [job] styx logs [--tail n] styx cancel \n\nNodes: Ubuntu with internet access. A Python 3.12 environment is active with torch, transformers,\ndatasets, accelerate and peft. Already on disk: Qwen/Qwen2.5-0.5B, -1.5B, -3B, -7B and\nSalesforce/wikitext wikitext-103-raw-v1.\nJob files stay on the node. A job's stdout and stderr are its output.\n","exit":0,"truncated":false},"title":"styx info","time":{"start":1795347704236,"end":1795347705630}},"id":"prt_2030fe909001S0Qmiri4t9Tnc7","sessionID":"ses_dfcf023feffewGBsphlmQ7nykp","messageID":"msg_2030fddb0001wXcS52Dw67ljs8"}} +{"type":"step_finish","timestamp":1795347705640,"sessionID":"ses_dfcf023feffewGBsphlmQ7nykp","part":{"id":"prt_2030fef20001cdNb3KSQm8CbHS","reason":"tool-calls","messageID":"msg_2030fddb0001wXcS52Dw67ljs8","sessionID":"ses_dfcf023feffewGBsphlmQ7nykp","type":"step-finish","tokens":{"total":7387,"input":6,"output":112,"reasoning":0,"cache":{"write":7269,"read":0}},"cost":0.00150734}} +{"type":"step_start","timestamp":1795347707634,"sessionID":"ses_dfcf023feffewGBsphlmQ7nykp","part":{"id":"prt_2030ff6f1001GYl09OVcCxDKFo","messageID":"msg_2030fef25001wxZSLGBwPKzT8k","sessionID":"ses_dfcf023feffewGBsphlmQ7nykp","type":"step-start"}} +{"type":"tool_use","timestamp":1795347708694,"sessionID":"ses_dfcf023feffewGBsphlmQ7nykp","part":{"type":"tool","tool":"read","callID":"toolu_2c6361ba2d14426bb43b3393","state":{"status":"completed","input":{"filePath":"/home/hal/.cache/styx/post/20261122-5aab9f0/opencode-opencode-go_qwen3.8-flash/1.5B-4000x1024-3/work/loss.py"},"output":"/home/hal/.cache/styx/post/20261122-5aab9f0/opencode-opencode-go_qwen3.8-flash/1.5B-4000x1024-3/work/loss.py\nfile\n\n1: \"\"\"Mean next-token loss of a causal language model on the first --docs chunks of --ctx tokens of\n2: the WikiText-103 training text.\n3: \n4: python loss.py --model Qwen/Qwen2.5-1.5B --docs 2000 --ctx 1024 [--batch 16]\n5: \"\"\"\n6: \n7: import argparse\n8: import time\n9: \n10: import torch\n11: from datasets import load_dataset\n12: from transformers import AutoModelForCausalLM, AutoTokenizer\n13: \n14: ROWS = 2000\n15: \n16: \n17: def chunks(tok, docs, ctx):\n18: rows = load_dataset(\"Salesforce/wikitext\", \"wikitext-103-raw-v1\", split=\"train\")[\"text\"]\n19: ids = []\n20: for i in range(0, len(rows), ROWS):\n21: ids += tok(\"\".join(rows[i : i + ROWS]), add_special_tokens=False)[\"input_ids\"]\n22: if len(ids) >= docs * ctx:\n23: break\n24: return torch.tensor(ids[: docs * ctx]).view(docs, ctx)\n25: \n26: \n27: def main():\n28: ap = argparse.ArgumentParser()\n29: ap.add_argument(\"--model\", required=True)\n30: ap.add_argument(\"--docs\", type=int, required=True)\n31: ap.add_argument(\"--ctx\", type=int, required=True)\n32: ap.add_argument(\"--batch\", type=int, default=16)\n33: a = ap.parse_args()\n34: dev = \"cuda\" if torch.cuda.is_available() else \"cpu\"\n35: print(f\"device {dev}\", flush=True)\n36: x = chunks(AutoTokenizer.from_pretrained(a.model), a.docs, a.ctx)\n37: m = AutoModelForCausalLM.from_pretrained(a.model, torch_dtype=torch.bfloat16).to(dev).eval()\n38: total, t, said = 0.0, time.time(), 0\n39: with torch.no_grad():\n40: for i in range(0, a.docs, a.batch):\n41: b = x[i : i + a.batch].to(dev)\n42: total += m(input_ids=b, labels=b).loss.item() * len(b)\n43: done = i + len(b)\n44: if done * 10 // a.docs > said:\n45: said = done * 10 // a.docs\n46: print(f\"{done}/{a.docs} docs {time.time() - t:.0f} s\", flush=True)\n47: print(f\"tok_s {a.docs * a.ctx / (time.time() - t):.0f}\")\n48: print(f\"loss {total / a.docs:.4f}\")\n49: \n50: \n51: if __name__ == \"__main__\":\n52: main()\n\n(End of file - total 52 lines)\n","metadata":{"preview":"\"\"\"Mean next-token loss of a causal language model on the first --docs chunks of --ctx tokens of\nthe WikiText-103 training text.\n\npython loss.py --model Qwen/Qwen2.5-1.5B --docs 2000 --ctx 1024 [--batch 16]\n\"\"\"\n\nimport argparse\nimport time\n\nimport torch\nfrom datasets import load_dataset\nfrom transformers import AutoModelForCausalLM, AutoTokenizer\n\nROWS = 2000\n\n\ndef chunks(tok, docs, ctx):\n rows = load_dataset(\"Salesforce/wikitext\", \"wikitext-103-raw-v1\", split=\"train\")[\"text\"]\n ids = []\n for i in range(0, len(rows), ROWS):","truncated":false,"loaded":[],"display":{"type":"file","path":"/home/hal/.cache/styx/post/20261122-5aab9f0/opencode-opencode-go_qwen3.8-flash/1.5B-4000x1024-3/work/loss.py","text":"\"\"\"Mean next-token loss of a causal language model on the first --docs chunks of --ctx tokens of\nthe WikiText-103 training text.\n\npython loss.py --model Qwen/Qwen2.5-1.5B --docs 2000 --ctx 1024 [--batch 16]\n\"\"\"\n\nimport argparse\nimport time\n\nimport torch\nfrom datasets import load_dataset\nfrom transformers import AutoModelForCausalLM, AutoTokenizer\n\nROWS = 2000\n\n\ndef chunks(tok, docs, ctx):\n rows = load_dataset(\"Salesforce/wikitext\", \"wikitext-103-raw-v1\", split=\"train\")[\"text\"]\n ids = []\n for i in range(0, len(rows), ROWS):\n ids += tok(\"\".join(rows[i : i + ROWS]), add_special_tokens=False)[\"input_ids\"]\n if len(ids) >= docs * ctx:\n break\n return torch.tensor(ids[: docs * ctx]).view(docs, ctx)\n\n\ndef main():\n ap = argparse.ArgumentParser()\n ap.add_argument(\"--model\", required=True)\n ap.add_argument(\"--docs\", type=int, required=True)\n ap.add_argument(\"--ctx\", type=int, required=True)\n ap.add_argument(\"--batch\", type=int, default=16)\n a = ap.parse_args()\n dev = \"cuda\" if torch.cuda.is_available() else \"cpu\"\n print(f\"device {dev}\", flush=True)\n x = chunks(AutoTokenizer.from_pretrained(a.model), a.docs, a.ctx)\n m = AutoModelForCausalLM.from_pretrained(a.model, torch_dtype=torch.bfloat16).to(dev).eval()\n total, t, said = 0.0, time.time(), 0\n with torch.no_grad():\n for i in range(0, a.docs, a.batch):\n b = x[i : i + a.batch].to(dev)\n total += m(input_ids=b, labels=b).loss.item() * len(b)\n done = i + len(b)\n if done * 10 // a.docs > said:\n said = done * 10 // a.docs\n print(f\"{done}/{a.docs} docs {time.time() - t:.0f} s\", flush=True)\n print(f\"tok_s {a.docs * a.ctx / (time.time() - t):.0f}\")\n print(f\"loss {total / a.docs:.4f}\")\n\n\nif __name__ == \"__main__\":\n main()","lineStart":1,"lineEnd":52,"totalLines":52,"truncated":false}},"title":"home/hal/.cache/styx/post/20261122-5aab9f0/opencode-opencode-go_qwen3.8-flash/1.5B-4000x1024-3/work/loss.py","time":{"start":1795347708686,"end":1795347708692}},"id":"prt_2030ff7f70014OHo5z1XXpNdlr","sessionID":"ses_dfcf023feffewGBsphlmQ7nykp","messageID":"msg_2030fef25001wxZSLGBwPKzT8k"}} +{"type":"step_finish","timestamp":1795347708721,"sessionID":"ses_dfcf023feffewGBsphlmQ7nykp","part":{"id":"prt_2030ffb2b0015ojr83xsrtMcTI","reason":"tool-calls","messageID":"msg_2030fef25001wxZSLGBwPKzT8k","sessionID":"ses_dfcf023feffewGBsphlmQ7nykp","type":"step-finish","tokens":{"total":7888,"input":6,"output":93,"reasoning":0,"cache":{"write":520,"read":7269}},"cost":0.000264914}} +{"type":"step_start","timestamp":1795347709560,"sessionID":"ses_dfcf023feffewGBsphlmQ7nykp","part":{"id":"prt_2030ffe76001xaxldRWrfZD1YK","messageID":"msg_2030ffb2f001Ol1xg0QIJ0u8Hb","sessionID":"ses_dfcf023feffewGBsphlmQ7nykp","type":"step-start"}} +{"type":"tool_use","timestamp":1795347732790,"sessionID":"ses_dfcf023feffewGBsphlmQ7nykp","part":{"type":"tool","tool":"bash","callID":"toolu_524bb903bc2a401794496139","state":{"status":"completed","input":{"command":"styx post --gpu A100 --time 30m -- python loss.py --model Qwen/Qwen2.5-1.5B --docs 4000 --ctx 1024","workdir":"/home/hal/.cache/styx/post/20261122-5aab9f0/opencode-opencode-go_qwen3.8-flash/1.5B-4000x1024-3/work"},"output":"a100-27 queued on A100, limit 1800 s\n","metadata":{"output":"a100-27 queued on A100, limit 1800 s\n","exit":0,"truncated":false},"title":"styx post --gpu A100 --time 30m -- python loss.py --model Qwen/Qwen2.5-1.5B --docs 4000 --ctx 1024","time":{"start":1795347719541,"end":1795347732781}},"id":"prt_2031021eb001jdov0Jdua3EYZ7","sessionID":"ses_dfcf023feffewGBsphlmQ7nykp","messageID":"msg_2030ffb2f001Ol1xg0QIJ0u8Hb"}} +{"type":"step_finish","timestamp":1795347732790,"sessionID":"ses_dfcf023feffewGBsphlmQ7nykp","part":{"id":"prt_20310592e0012puBLrwTihnnyj","reason":"tool-calls","messageID":"msg_2030ffb2f001Ol1xg0QIJ0u8Hb","sessionID":"ses_dfcf023feffewGBsphlmQ7nykp","type":"step-finish","tokens":{"total":9491,"input":6,"output":774,"reasoning":0,"cache":{"write":922,"read":7789}},"cost":0.000673704}} +{"type":"step_start","timestamp":1795347734051,"sessionID":"ses_dfcf023feffewGBsphlmQ7nykp","part":{"id":"prt_203105e21001VvNU5yDiTOzNqX","messageID":"msg_203105933001CAutaz0PGTL2su","sessionID":"ses_dfcf023feffewGBsphlmQ7nykp","type":"step-start"}} +{"type":"tool_use","timestamp":1795347804429,"sessionID":"ses_dfcf023feffewGBsphlmQ7nykp","part":{"type":"tool","tool":"bash","callID":"toolu_f6fe562eab374407bd861182","state":{"status":"completed","input":{"command":"sleep 60 && styx status a100-27"},"output":"a100-27 RUNNING limit_s 1800 seconds 70.2\n","metadata":{"output":"a100-27 RUNNING limit_s 1800 seconds 70.2\n","exit":0,"truncated":false},"title":"sleep 60 && styx status a100-27","time":{"start":1795347734782,"end":1795347804422}},"id":"prt_203105f72001dLQdzMZ76F6E86","sessionID":"ses_dfcf023feffewGBsphlmQ7nykp","messageID":"msg_203105933001CAutaz0PGTL2su"}} +{"type":"step_finish","timestamp":1795347804429,"sessionID":"ses_dfcf023feffewGBsphlmQ7nykp","part":{"id":"prt_203117108001KvDsCMvSDUxVdi","reason":"tool-calls","messageID":"msg_203105933001CAutaz0PGTL2su","sessionID":"ses_dfcf023feffewGBsphlmQ7nykp","type":"step-finish","tokens":{"total":9581,"input":6,"output":53,"reasoning":0,"cache":{"write":811,"read":8711}},"cost":0.000327386}} +{"type":"step_start","timestamp":1795347805967,"sessionID":"ses_dfcf023feffewGBsphlmQ7nykp","part":{"id":"prt_20311770e0010Dda13ka7Prc8S","messageID":"msg_20311710b0019au83d6HIgbsJW","sessionID":"ses_dfcf023feffewGBsphlmQ7nykp","type":"step-start"}} +{"type":"tool_use","timestamp":1795347927971,"sessionID":"ses_dfcf023feffewGBsphlmQ7nykp","part":{"type":"tool","tool":"bash","callID":"toolu_db3a48ca496a4ed9ba5b836a","state":{"status":"completed","input":{"command":"sleep 180 && styx logs a100-27 --tail 10"},"output":"(no output)\n\n\nshell tool terminated command after exceeding timeout 120000 ms. If this command is expected to take longer and is not waiting for interactive input, retry with a larger timeout value in milliseconds.\n","metadata":{"output":"(no output)\n\n\nshell tool terminated command after exceeding timeout 120000 ms. If this command is expected to take longer and is not waiting for interactive input, retry with a larger timeout value in milliseconds.\n","exit":null,"truncated":false},"title":"sleep 180 && styx logs a100-27 --tail 10","time":{"start":1795347807856,"end":1795347927962}},"id":"prt_203117cd4001gEbEfZ1FFtJQdb","sessionID":"ses_dfcf023feffewGBsphlmQ7nykp","messageID":"msg_20311710b0019au83d6HIgbsJW"}} +{"type":"step_finish","timestamp":1795347927971,"sessionID":"ses_dfcf023feffewGBsphlmQ7nykp","part":{"id":"prt_20313539d001Xp3RwKhNuY261H","reason":"tool-calls","messageID":"msg_20311710b0019au83d6HIgbsJW","sessionID":"ses_dfcf023feffewGBsphlmQ7nykp","type":"step-finish","tokens":{"total":9769,"input":6,"output":148,"reasoning":0,"cache":{"write":93,"read":9522}},"cost":0.000241412}} +{"type":"step_start","timestamp":1795347928962,"sessionID":"ses_dfcf023feffewGBsphlmQ7nykp","part":{"id":"prt_20313577f0014GkejMyoM6O91s","messageID":"msg_2031353a2001slvUhG66LTYdFS","sessionID":"ses_dfcf023feffewGBsphlmQ7nykp","type":"step-start"}} +{"type":"tool_use","timestamp":1795348180471,"sessionID":"ses_dfcf023feffewGBsphlmQ7nykp","part":{"type":"tool","tool":"bash","callID":"toolu_a9393e0bc9264f8c9cecc6f4","state":{"status":"completed","input":{"command":"sleep 240; styx logs a100-27 --tail 10","timeout":300000},"output":"1200/4000 docs 27 s\n1600/4000 docs 36 s\n2000/4000 docs 45 s\n2400/4000 docs 54 s\n2800/4000 docs 63 s\n3200/4000 docs 72 s\n3600/4000 docs 81 s\n4000/4000 docs 90 s\ntok_s 45417\nloss 2.3617\n","metadata":{"output":"1200/4000 docs 27 s\n1600/4000 docs 36 s\n2000/4000 docs 45 s\n2400/4000 docs 54 s\n2800/4000 docs 63 s\n3200/4000 docs 72 s\n3600/4000 docs 81 s\n4000/4000 docs 90 s\ntok_s 45417\nloss 2.3617\n","exit":0,"truncated":false},"title":"sleep 240; styx logs a100-27 --tail 10","time":{"start":1795347930033,"end":1795348180466}},"id":"prt_20313596f001vFpyOGBCtLVlMH","sessionID":"ses_dfcf023feffewGBsphlmQ7nykp","messageID":"msg_2031353a2001slvUhG66LTYdFS"}} +{"type":"step_finish","timestamp":1795348180471,"sessionID":"ses_dfcf023feffewGBsphlmQ7nykp","part":{"id":"prt_203172df3001i6O8TtYvs8my8O","reason":"tool-calls","messageID":"msg_2031353a2001slvUhG66LTYdFS","sessionID":"ses_dfcf023feffewGBsphlmQ7nykp","type":"step-finish","tokens":{"total":9933,"input":6,"output":93,"reasoning":0,"cache":{"write":219,"read":9615}},"cost":0.00024225}} +{"type":"step_start","timestamp":1795348181720,"sessionID":"ses_dfcf023feffewGBsphlmQ7nykp","part":{"id":"prt_2031732d3001zwEviaxAuPhs13","messageID":"msg_203172df6001nypkcvRVzNumQg","sessionID":"ses_dfcf023feffewGBsphlmQ7nykp","type":"step-start"}} +{"type":"tool_use","timestamp":1795348202613,"sessionID":"ses_dfcf023feffewGBsphlmQ7nykp","part":{"type":"tool","tool":"bash","callID":"toolu_268e5bbb3ea84ac584b5b1a6","state":{"status":"completed","input":{"command":"styx status a100-27"},"output":"a100-27 SUCCEEDED limit_s 1800 seconds 108.8 exit 0 peak_gpu_mb 28967 gpu_util_mean 82.6 usd 0.0601\n","metadata":{"output":"a100-27 SUCCEEDED limit_s 1800 seconds 108.8 exit 0 peak_gpu_mb 28967 gpu_util_mean 82.6 usd 0.0601\n","exit":0,"truncated":false},"title":"styx status a100-27","time":{"start":1795348184538,"end":1795348202609}},"id":"prt_203173d5c001DuH6PYMKd4TKao","sessionID":"ses_dfcf023feffewGBsphlmQ7nykp","messageID":"msg_203172df6001nypkcvRVzNumQg"}} +{"type":"step_finish","timestamp":1795348202613,"sessionID":"ses_dfcf023feffewGBsphlmQ7nykp","part":{"id":"prt_203178472001rSQ65cP4GPI3LU","reason":"tool-calls","messageID":"msg_203172df6001nypkcvRVzNumQg","sessionID":"ses_dfcf023feffewGBsphlmQ7nykp","type":"step-finish","tokens":{"total":10257,"input":6,"output":163,"reasoning":0,"cache":{"write":254,"read":9834}},"cost":0.000285654}} +{"type":"step_start","timestamp":1795348203859,"sessionID":"ses_dfcf023feffewGBsphlmQ7nykp","part":{"id":"prt_2031789510015QWS70Ns9gE1OK","messageID":"msg_203178474001DBqIcVY1CHJJB3","sessionID":"ses_dfcf023feffewGBsphlmQ7nykp","type":"step-start"}} +{"type":"text","timestamp":1795348205695,"sessionID":"ses_dfcf023feffewGBsphlmQ7nykp","part":{"id":"prt_203178b950018l4xYPyt60wk9z","messageID":"msg_203178474001DBqIcVY1CHJJB3","sessionID":"ses_dfcf023feffewGBsphlmQ7nykp","type":"text","text":"Ran `python loss.py --model Qwen/Qwen2.5-1.5B --docs 4000 --ctx 1024` on the styx A100 pool (job a100-27, ~109s). Output: `tok_s 45417` and `loss 2.3617`.\n\nLOSS=2.3617","time":{"start":1795348204437,"end":1795348205679}}} +{"type":"step_finish","timestamp":1795348205695,"sessionID":"ses_dfcf023feffewGBsphlmQ7nykp","part":{"id":"prt_203179072001gjCBVKVUtknlTy","reason":"stop","messageID":"msg_203178474001DBqIcVY1CHJJB3","sessionID":"ses_dfcf023feffewGBsphlmQ7nykp","type":"step-finish","tokens":{"total":10451,"input":6,"output":119,"reasoning":0,"cache":{"write":238,"read":10088}},"cost":0.000265838}} diff --git a/post/20261122-5aab9f0/opencode-opencode-go_qwen3.8-flash/1.5B-4000x1024-3/work/loss.py b/post/20261122-5aab9f0/opencode-opencode-go_qwen3.8-flash/1.5B-4000x1024-3/work/loss.py new file mode 100644 index 0000000000000000000000000000000000000000..4a1eb7ef979fcbf7511dbb4fa31a8fe829251067 --- /dev/null +++ b/post/20261122-5aab9f0/opencode-opencode-go_qwen3.8-flash/1.5B-4000x1024-3/work/loss.py @@ -0,0 +1,52 @@ +"""Mean next-token loss of a causal language model on the first --docs chunks of --ctx tokens of +the WikiText-103 training text. + +python loss.py --model Qwen/Qwen2.5-1.5B --docs 2000 --ctx 1024 [--batch 16] +""" + +import argparse +import time + +import torch +from datasets import load_dataset +from transformers import AutoModelForCausalLM, AutoTokenizer + +ROWS = 2000 + + +def chunks(tok, docs, ctx): + rows = load_dataset("Salesforce/wikitext", "wikitext-103-raw-v1", split="train")["text"] + ids = [] + for i in range(0, len(rows), ROWS): + ids += tok("".join(rows[i : i + ROWS]), add_special_tokens=False)["input_ids"] + if len(ids) >= docs * ctx: + break + return torch.tensor(ids[: docs * ctx]).view(docs, ctx) + + +def main(): + ap = argparse.ArgumentParser() + ap.add_argument("--model", required=True) + ap.add_argument("--docs", type=int, required=True) + ap.add_argument("--ctx", type=int, required=True) + ap.add_argument("--batch", type=int, default=16) + a = ap.parse_args() + dev = "cuda" if torch.cuda.is_available() else "cpu" + print(f"device {dev}", flush=True) + x = chunks(AutoTokenizer.from_pretrained(a.model), a.docs, a.ctx) + m = AutoModelForCausalLM.from_pretrained(a.model, torch_dtype=torch.bfloat16).to(dev).eval() + total, t, said = 0.0, time.time(), 0 + with torch.no_grad(): + for i in range(0, a.docs, a.batch): + b = x[i : i + a.batch].to(dev) + total += m(input_ids=b, labels=b).loss.item() * len(b) + done = i + len(b) + if done * 10 // a.docs > said: + said = done * 10 // a.docs + print(f"{done}/{a.docs} docs {time.time() - t:.0f} s", flush=True) + print(f"tok_s {a.docs * a.ctx / (time.time() - t):.0f}") + print(f"loss {total / a.docs:.4f}") + + +if __name__ == "__main__": + main() diff --git a/post/20261122-5aab9f0/opencode-opencode-go_qwen3.8-flash/3B-4000x1024-3/before/clock.txt b/post/20261122-5aab9f0/opencode-opencode-go_qwen3.8-flash/3B-4000x1024-3/before/clock.txt new file mode 100644 index 0000000000000000000000000000000000000000..44ab4ff8dadf9e2b5336af6139745589eedbb9c8 --- /dev/null +++ b/post/20261122-5aab9f0/opencode-opencode-go_qwen3.8-flash/3B-4000x1024-3/before/clock.txt @@ -0,0 +1,3 @@ +2.63 +16.14 +16.15 diff --git a/post/20261122-5aab9f0/opencode-opencode-go_qwen3.8-flash/3B-4000x1024-3/before/transcript.jsonl b/post/20261122-5aab9f0/opencode-opencode-go_qwen3.8-flash/3B-4000x1024-3/before/transcript.jsonl new file mode 100644 index 0000000000000000000000000000000000000000..bf422823e7d5b95cd53c8ec5794730fc178f80a1 --- /dev/null +++ b/post/20261122-5aab9f0/opencode-opencode-go_qwen3.8-flash/3B-4000x1024-3/before/transcript.jsonl @@ -0,0 +1,3 @@ +{"type":"step_start","timestamp":1795348231156,"sessionID":"ses_dfce81331ffe8SdLLMaYJTaO0F","part":{"id":"prt_20317f3f0001QNH9eU5MKyAgus","messageID":"msg_20317ee0400144eNTvXHfttWjW","sessionID":"ses_dfce81331ffe8SdLLMaYJTaO0F","type":"step-start"}} +{"type":"text","timestamp":1795348244669,"sessionID":"ses_dfce81331ffe8SdLLMaYJTaO0F","part":{"id":"prt_203181fea001ZiAE5LpP4WOYI5","messageID":"msg_20317ee0400144eNTvXHfttWjW","sessionID":"ses_dfce81331ffe8SdLLMaYJTaO0F","type":"text","text":"Forecasting without starting the task. The run involves: reading `loss.py`, checking `styx info`, submitting a GPU job (model download ~6GB, 4000×1024-token forward pass on a 3B model ≈ 5–15 min compute), polling until done, and reading the result. Queue wait and possible retries dominate the tail.\n\nSELF_SECONDS=1020\nSELF_SECONDS_LOW=480\nSELF_SECONDS_HIGH=3000\nSELF_OUTPUT_TOKENS=4500\nSELF_OUTPUT_TOKENS_LOW=2000\nSELF_OUTPUT_TOKENS_HIGH=14000\nSELF_TOOL_CALLS=16\nSELF_TOOL_CALLS_LOW=8\nSELF_TOOL_CALLS_HIGH=40","time":{"start":1795348242410,"end":1795348244668}}} +{"type":"step_finish","timestamp":1795348244680,"sessionID":"ses_dfce81331ffe8SdLLMaYJTaO0F","part":{"id":"prt_2031828c1001ZI9O7LBsJJlvqv","reason":"stop","messageID":"msg_20317ee0400144eNTvXHfttWjW","sessionID":"ses_dfce81331ffe8SdLLMaYJTaO0F","type":"step-finish","tokens":{"total":6238,"input":6,"output":806,"reasoning":0,"cache":{"write":5426,"read":0}},"cost":0.00146492}} diff --git a/post/20261122-5aab9f0/opencode-opencode-go_qwen3.8-flash/3B-4000x1024-3/clock.txt b/post/20261122-5aab9f0/opencode-opencode-go_qwen3.8-flash/3B-4000x1024-3/clock.txt new file mode 100644 index 0000000000000000000000000000000000000000..a031082253296fd65c4dc56f608b43edece05ffb --- /dev/null +++ b/post/20261122-5aab9f0/opencode-opencode-go_qwen3.8-flash/3B-4000x1024-3/clock.txt @@ -0,0 +1,23 @@ +2.94 +3.93 +3.93 +5.27 +7.15 +8.38 +8.38 +9.64 +39.61 +53.37 +53.37 +54.48 +122.88 +122.88 +123.96 +255.98 +255.98 +257.31 +271.26 +271.26 +272.26 +273.52 +273.53 diff --git a/post/20261122-5aab9f0/opencode-opencode-go_qwen3.8-flash/3B-4000x1024-3/episode.json b/post/20261122-5aab9f0/opencode-opencode-go_qwen3.8-flash/3B-4000x1024-3/episode.json new file mode 100644 index 0000000000000000000000000000000000000000..2bc31677a7600dd1ade14388342b763d2ba16974 --- /dev/null +++ b/post/20261122-5aab9f0/opencode-opencode-go_qwen3.8-flash/3B-4000x1024-3/episode.json @@ -0,0 +1,86 @@ +{ + "agent_s": 280.0, + "cpu_s": 9.2, + "late": false, + "exit": 0, + "host": "hygiea", + "tool_calls": 7, + "output_tokens": 2243, + "cached_tokens": 55047, + "input_tokens": 42, + "cost_usd": 0.0041602620000000005, + "correct": true, + "jobs": 1, + "failed": 0, + "timeout": 0, + "cancelled": 0, + "left": 0, + "usd": 0.0967, + "usd_ours": 0.0971, + "gpu_s": 174.9, + "gpu_s_ours": 175.7, + "calls": 5, + "peeked": false, + "self_seconds_err": 1.292768303109067, + "self_output_tokens_err": 0.6962631412382029, + "self_tool_calls_err": 0.8266785731844679, + "self_seconds_in": false, + "self_output_tokens_in": true, + "self_tool_calls_in": false, + "cell": "3B-4000x1024", + "epoch": 3, + "said": "2.2135", + "ours": { + "job": "a100-6", + "gpu": "A100", + "limit_s": 3600, + "cmd": "python loss.py --model Qwen/Qwen2.5-3B --docs 4000 --ctx 1024 --batch 16", + "posted_at": 1795303715.193563, + "state": "SUCCEEDED", + "start_at": 1795303716.4187815, + "end_at": 1795303894.0185497, + "seconds": 175.7, + "exit": 0, + "timeout": false, + "peak_gpu_mb": 32693, + "gpu_util_mean": 88.2, + "gpu_busy_share": 0.886, + "usd": 0.0971, + "uid": "cad0403c9c", + "cause": null, + "cell": "3B-4000x1024", + "batch": 16, + "loss": 2.2135, + "tok_s": 26261.0 + }, + "own": { + "SELF_SECONDS": 1020.0, + "SELF_SECONDS_LOW": 480.0, + "SELF_SECONDS_HIGH": 3000.0, + "SELF_OUTPUT_TOKENS": 4500.0, + "SELF_OUTPUT_TOKENS_LOW": 2000.0, + "SELF_OUTPUT_TOKENS_HIGH": 14000.0, + "SELF_TOOL_CALLS": 16.0, + "SELF_TOOL_CALLS_LOW": 8.0, + "SELF_TOOL_CALLS_HIGH": 40.0 + }, + "posted": [ + { + "job": "a100-28", + "gpu": "A100", + "limit_s": 1200, + "cmd": "python loss.py --model Qwen/Qwen2.5-3B --docs 4000 --ctx 1024", + "posted_at": 1795348301.547079, + "state": "SUCCEEDED", + "start_at": 1795348302.771344, + "end_at": 1795348479.348148, + "seconds": 174.9, + "exit": 0, + "timeout": false, + "peak_gpu_mb": 32693, + "gpu_util_mean": 89.2, + "gpu_busy_share": 0.897, + "usd": 0.0967 + } + ] +} \ No newline at end of file diff --git a/post/20261122-5aab9f0/opencode-opencode-go_qwen3.8-flash/3B-4000x1024-3/ledger.jsonl b/post/20261122-5aab9f0/opencode-opencode-go_qwen3.8-flash/3B-4000x1024-3/ledger.jsonl new file mode 100644 index 0000000000000000000000000000000000000000..39f6ee9f639c47085eb96e79ed059605fa32950b --- /dev/null +++ b/post/20261122-5aab9f0/opencode-opencode-go_qwen3.8-flash/3B-4000x1024-3/ledger.jsonl @@ -0,0 +1,5 @@ +{"t": 1795348256.681586, "argv": ["info"]} +{"t": 1795348301.547079, "argv": ["post", "--gpu", "A100", "--time", "20m", "--", "python", "loss.py", "--model", "Qwen/Qwen2.5-3B", "--docs", "4000", "--ctx", "1024"], "job": "a100-28", "gpu": "A100", "limit_s": 1200, "cmd": "python loss.py --model Qwen/Qwen2.5-3B --docs 4000 --ctx 1024", "uid": "e1db0cda97"} +{"t": 1795348371.2019339, "argv": ["status", "a100-28"]} +{"t": 1795348504.0825663, "argv": ["logs", "a100-28", "--tail", "20"]} +{"t": 1795348519.499639, "argv": ["status", "a100-28"]} diff --git a/post/20261122-5aab9f0/opencode-opencode-go_qwen3.8-flash/3B-4000x1024-3/stderr.txt b/post/20261122-5aab9f0/opencode-opencode-go_qwen3.8-flash/3B-4000x1024-3/stderr.txt new file mode 100644 index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 diff --git a/post/20261122-5aab9f0/opencode-opencode-go_qwen3.8-flash/3B-4000x1024-3/transcript.jsonl b/post/20261122-5aab9f0/opencode-opencode-go_qwen3.8-flash/3B-4000x1024-3/transcript.jsonl new file mode 100644 index 0000000000000000000000000000000000000000..6cfde8abd9c8506eb4f7dff2b1126a24f2c3b3a9 --- /dev/null +++ b/post/20261122-5aab9f0/opencode-opencode-go_qwen3.8-flash/3B-4000x1024-3/transcript.jsonl @@ -0,0 +1,23 @@ +{"type":"step_start","timestamp":1795348251494,"sessionID":"ses_dfce7c480ffekIK2hE8Of4m4iS","part":{"id":"prt_20318436300124Tg7vxdoxhCDp","messageID":"msg_203183cc0001dS69oxBbzMws2j","sessionID":"ses_dfce7c480ffekIK2hE8Of4m4iS","type":"step-start"}} +{"type":"tool_use","timestamp":1795348252484,"sessionID":"ses_dfce7c480ffekIK2hE8Of4m4iS","part":{"type":"tool","tool":"bash","callID":"toolu_32c031cbc7bd4593b241250a","state":{"status":"completed","input":{"command":"ls"},"output":"loss.py\n","metadata":{"output":"loss.py\n","exit":0,"truncated":false},"title":"ls","time":{"start":1795348252444,"end":1795348252476}},"id":"prt_20318466d001oPhHaLQ5XJSdl5","sessionID":"ses_dfce7c480ffekIK2hE8Of4m4iS","messageID":"msg_203183cc0001dS69oxBbzMws2j"}} +{"type":"step_finish","timestamp":1795348252484,"sessionID":"ses_dfce7c480ffekIK2hE8Of4m4iS","part":{"id":"prt_20318473e001D7w3TheYr90zdV","reason":"tool-calls","messageID":"msg_203183cc0001dS69oxBbzMws2j","sessionID":"ses_dfce7c480ffekIK2hE8Of4m4iS","type":"step-finish","tokens":{"total":7330,"input":6,"output":61,"reasoning":0,"cache":{"write":7263,"read":0}},"cost":0.00148217}} +{"type":"step_start","timestamp":1795348253820,"sessionID":"ses_dfce7c480ffekIK2hE8Of4m4iS","part":{"id":"prt_203184c79001Oo6KFnpXtGXTUV","messageID":"msg_2031847420012u4WbA7iSAMzEk","sessionID":"ses_dfce7c480ffekIK2hE8Of4m4iS","type":"step-start"}} +{"type":"tool_use","timestamp":1795348255698,"sessionID":"ses_dfce7c480ffekIK2hE8Of4m4iS","part":{"type":"tool","tool":"read","callID":"toolu_1d45141f2bc642d0a0f93e2a","state":{"status":"completed","input":{"filePath":"/home/hal/.cache/styx/post/20261122-5aab9f0/opencode-opencode-go_qwen3.8-flash/3B-4000x1024-3/work/loss.py"},"output":"/home/hal/.cache/styx/post/20261122-5aab9f0/opencode-opencode-go_qwen3.8-flash/3B-4000x1024-3/work/loss.py\nfile\n\n1: \"\"\"Mean next-token loss of a causal language model on the first --docs chunks of --ctx tokens of\n2: the WikiText-103 training text.\n3: \n4: python loss.py --model Qwen/Qwen2.5-1.5B --docs 2000 --ctx 1024 [--batch 16]\n5: \"\"\"\n6: \n7: import argparse\n8: import time\n9: \n10: import torch\n11: from datasets import load_dataset\n12: from transformers import AutoModelForCausalLM, AutoTokenizer\n13: \n14: ROWS = 2000\n15: \n16: \n17: def chunks(tok, docs, ctx):\n18: rows = load_dataset(\"Salesforce/wikitext\", \"wikitext-103-raw-v1\", split=\"train\")[\"text\"]\n19: ids = []\n20: for i in range(0, len(rows), ROWS):\n21: ids += tok(\"\".join(rows[i : i + ROWS]), add_special_tokens=False)[\"input_ids\"]\n22: if len(ids) >= docs * ctx:\n23: break\n24: return torch.tensor(ids[: docs * ctx]).view(docs, ctx)\n25: \n26: \n27: def main():\n28: ap = argparse.ArgumentParser()\n29: ap.add_argument(\"--model\", required=True)\n30: ap.add_argument(\"--docs\", type=int, required=True)\n31: ap.add_argument(\"--ctx\", type=int, required=True)\n32: ap.add_argument(\"--batch\", type=int, default=16)\n33: a = ap.parse_args()\n34: dev = \"cuda\" if torch.cuda.is_available() else \"cpu\"\n35: print(f\"device {dev}\", flush=True)\n36: x = chunks(AutoTokenizer.from_pretrained(a.model), a.docs, a.ctx)\n37: m = AutoModelForCausalLM.from_pretrained(a.model, torch_dtype=torch.bfloat16).to(dev).eval()\n38: total, t, said = 0.0, time.time(), 0\n39: with torch.no_grad():\n40: for i in range(0, a.docs, a.batch):\n41: b = x[i : i + a.batch].to(dev)\n42: total += m(input_ids=b, labels=b).loss.item() * len(b)\n43: done = i + len(b)\n44: if done * 10 // a.docs > said:\n45: said = done * 10 // a.docs\n46: print(f\"{done}/{a.docs} docs {time.time() - t:.0f} s\", flush=True)\n47: print(f\"tok_s {a.docs * a.ctx / (time.time() - t):.0f}\")\n48: print(f\"loss {total / a.docs:.4f}\")\n49: \n50: \n51: if __name__ == \"__main__\":\n52: main()\n\n(End of file - total 52 lines)\n","metadata":{"preview":"\"\"\"Mean next-token loss of a causal language model on the first --docs chunks of --ctx tokens of\nthe WikiText-103 training text.\n\npython loss.py --model Qwen/Qwen2.5-1.5B --docs 2000 --ctx 1024 [--batch 16]\n\"\"\"\n\nimport argparse\nimport time\n\nimport torch\nfrom datasets import load_dataset\nfrom transformers import AutoModelForCausalLM, AutoTokenizer\n\nROWS = 2000\n\n\ndef chunks(tok, docs, ctx):\n rows = load_dataset(\"Salesforce/wikitext\", \"wikitext-103-raw-v1\", split=\"train\")[\"text\"]\n ids = []\n for i in range(0, len(rows), ROWS):","truncated":false,"loaded":[],"display":{"type":"file","path":"/home/hal/.cache/styx/post/20261122-5aab9f0/opencode-opencode-go_qwen3.8-flash/3B-4000x1024-3/work/loss.py","text":"\"\"\"Mean next-token loss of a causal language model on the first --docs chunks of --ctx tokens of\nthe WikiText-103 training text.\n\npython loss.py --model Qwen/Qwen2.5-1.5B --docs 2000 --ctx 1024 [--batch 16]\n\"\"\"\n\nimport argparse\nimport time\n\nimport torch\nfrom datasets import load_dataset\nfrom transformers import AutoModelForCausalLM, AutoTokenizer\n\nROWS = 2000\n\n\ndef chunks(tok, docs, ctx):\n rows = load_dataset(\"Salesforce/wikitext\", \"wikitext-103-raw-v1\", split=\"train\")[\"text\"]\n ids = []\n for i in range(0, len(rows), ROWS):\n ids += tok(\"\".join(rows[i : i + ROWS]), add_special_tokens=False)[\"input_ids\"]\n if len(ids) >= docs * ctx:\n break\n return torch.tensor(ids[: docs * ctx]).view(docs, ctx)\n\n\ndef main():\n ap = argparse.ArgumentParser()\n ap.add_argument(\"--model\", required=True)\n ap.add_argument(\"--docs\", type=int, required=True)\n ap.add_argument(\"--ctx\", type=int, required=True)\n ap.add_argument(\"--batch\", type=int, default=16)\n a = ap.parse_args()\n dev = \"cuda\" if torch.cuda.is_available() else \"cpu\"\n print(f\"device {dev}\", flush=True)\n x = chunks(AutoTokenizer.from_pretrained(a.model), a.docs, a.ctx)\n m = AutoModelForCausalLM.from_pretrained(a.model, torch_dtype=torch.bfloat16).to(dev).eval()\n total, t, said = 0.0, time.time(), 0\n with torch.no_grad():\n for i in range(0, a.docs, a.batch):\n b = x[i : i + a.batch].to(dev)\n total += m(input_ids=b, labels=b).loss.item() * len(b)\n done = i + len(b)\n if done * 10 // a.docs > said:\n said = done * 10 // a.docs\n print(f\"{done}/{a.docs} docs {time.time() - t:.0f} s\", flush=True)\n print(f\"tok_s {a.docs * a.ctx / (time.time() - t):.0f}\")\n print(f\"loss {total / a.docs:.4f}\")\n\n\nif __name__ == \"__main__\":\n main()","lineStart":1,"lineEnd":52,"totalLines":52,"truncated":false}},"title":"home/hal/.cache/styx/post/20261122-5aab9f0/opencode-opencode-go_qwen3.8-flash/3B-4000x1024-3/work/loss.py","time":{"start":1795348255686,"end":1795348255696}},"id":"prt_203184ef5001rXi7w27pxoZZ4V","sessionID":"ses_dfce7c480ffekIK2hE8Of4m4iS","messageID":"msg_2031847420012u4WbA7iSAMzEk"}} +{"type":"tool_use","timestamp":1795348256926,"sessionID":"ses_dfce7c480ffekIK2hE8Of4m4iS","part":{"type":"tool","tool":"bash","callID":"toolu_495d12245e2546e98c9b400b","state":{"status":"completed","input":{"command":"styx info"},"output":"GPU pool. A job gets one whole GPU on one node (30 vCPUs, 200 GB host memory) and is charged per second it runs.\n\n gpu memory $/hour\n A10 24 GB 1.29\n A100 40 GB 1.99\n\nstyx post --gpu --time -- \n uploads the current directory (not .git, .venv or files over 50 MB) and runs in it.\n --time is required: 90s, 15m, 1h. The longest is 60m. A job is killed at its limit.\n Jobs on a node run one at a time, in the order posted.\nstyx status [job] styx logs [--tail n] styx cancel \n\nNodes: Ubuntu with internet access. A Python 3.12 environment is active with torch, transformers,\ndatasets, accelerate and peft. Already on disk: Qwen/Qwen2.5-0.5B, -1.5B, -3B, -7B and\nSalesforce/wikitext wikitext-103-raw-v1.\nJob files stay on the node. A job's stdout and stderr are its output.\n","metadata":{"output":"GPU pool. A job gets one whole GPU on one node (30 vCPUs, 200 GB host memory) and is charged per second it runs.\n\n gpu memory $/hour\n A10 24 GB 1.29\n A100 40 GB 1.99\n\nstyx post --gpu --time -- \n uploads the current directory (not .git, .venv or files over 50 MB) and runs in it.\n --time is required: 90s, 15m, 1h. The longest is 60m. A job is killed at its limit.\n Jobs on a node run one at a time, in the order posted.\nstyx status [job] styx logs [--tail n] styx cancel \n\nNodes: Ubuntu with internet access. A Python 3.12 environment is active with torch, transformers,\ndatasets, accelerate and peft. Already on disk: Qwen/Qwen2.5-0.5B, -1.5B, -3B, -7B and\nSalesforce/wikitext wikitext-103-raw-v1.\nJob files stay on the node. A job's stdout and stderr are its output.\n","exit":0,"truncated":false},"title":"styx info","time":{"start":1795348255883,"end":1795348256917}},"id":"prt_2031853c700198hM7zoGuA370w","sessionID":"ses_dfce7c480ffekIK2hE8Of4m4iS","messageID":"msg_2031847420012u4WbA7iSAMzEk"}} +{"type":"step_finish","timestamp":1795348256927,"sessionID":"ses_dfce7c480ffekIK2hE8Of4m4iS","part":{"id":"prt_203185896001EO5seC0eHiixKv","reason":"tool-calls","messageID":"msg_2031847420012u4WbA7iSAMzEk","sessionID":"ses_dfce7c480ffekIK2hE8Of4m4iS","type":"step-finish","tokens":{"total":7474,"input":6,"output":126,"reasoning":0,"cache":{"write":79,"read":7263}},"cost":0.000192128}} +{"type":"step_start","timestamp":1795348258187,"sessionID":"ses_dfce7c480ffekIK2hE8Of4m4iS","part":{"id":"prt_203185d880018iXZ7M5EamupE7","messageID":"msg_20318589b001eRyB42JsBLcNlR","sessionID":"ses_dfce7c480ffekIK2hE8Of4m4iS","type":"step-start"}} +{"type":"text","timestamp":1795348288159,"sessionID":"ses_dfce7c480ffekIK2hE8Of4m4iS","part":{"id":"prt_20318cee3001NA5rhzE3ZbhzD5","messageID":"msg_20318589b001eRyB42JsBLcNlR","sessionID":"ses_dfce7c480ffekIK2hE8Of4m4iS","type":"text","text":"The script needs a GPU. I'll post it to the pool on an A100 (3B model in bf16 + batch 16×1024 logits fit comfortably).\n\n","time":{"start":1795348287203,"end":1795348288157}}} +{"type":"tool_use","timestamp":1795348301917,"sessionID":"ses_dfce7c480ffekIK2hE8Of4m4iS","part":{"type":"tool","tool":"bash","callID":"toolu_fb926e8b032245deb7752423","state":{"status":"completed","input":{"command":"styx post --gpu A100 --time 20m -- python loss.py --model Qwen/Qwen2.5-3B --docs 4000 --ctx 1024"},"output":"a100-28 queued on A100, limit 1200 s\n","metadata":{"output":"a100-28 queued on A100, limit 1200 s\n","exit":0,"truncated":false},"title":"styx post --gpu A100 --time 20m -- python loss.py --model Qwen/Qwen2.5-3B --docs 4000 --ctx 1024","time":{"start":1795348288668,"end":1795348301909}},"id":"prt_20318d29e001y0GMl24WT5dC7G","sessionID":"ses_dfce7c480ffekIK2hE8Of4m4iS","messageID":"msg_20318589b001eRyB42JsBLcNlR"}} +{"type":"step_finish","timestamp":1795348301917,"sessionID":"ses_dfce7c480ffekIK2hE8Of4m4iS","part":{"id":"prt_203190857001U3ZHkREO9pYRW6","reason":"tool-calls","messageID":"msg_20318589b001eRyB42JsBLcNlR","sessionID":"ses_dfce7c480ffekIK2hE8Of4m4iS","type":"step-finish","tokens":{"total":10345,"input":6,"output":1738,"reasoning":0,"cache":{"write":1259,"read":7342}},"cost":0.001187032}} +{"type":"step_start","timestamp":1795348303034,"sessionID":"ses_dfce7c480ffekIK2hE8Of4m4iS","part":{"id":"prt_203190cb8001PMaLJgdbzsEXC9","messageID":"msg_20319085a001Miy4i9BT1EMpBW","sessionID":"ses_dfce7c480ffekIK2hE8Of4m4iS","type":"step-start"}} +{"type":"tool_use","timestamp":1795348371433,"sessionID":"ses_dfce7c480ffekIK2hE8Of4m4iS","part":{"type":"tool","tool":"bash","callID":"toolu_da4d4424bc2d40fabe9737b8","state":{"status":"completed","input":{"command":"sleep 60; styx status a100-28","timeout":90000},"output":"a100-28 RUNNING limit_s 1200 seconds 68.4\n","metadata":{"output":"a100-28 RUNNING limit_s 1200 seconds 68.4\n","exit":0,"truncated":false},"title":"sleep 60; styx status a100-28","time":{"start":1795348304187,"end":1795348371427}},"id":"prt_203190f41001w4UZfWcnvQnTqX","sessionID":"ses_dfce7c480ffekIK2hE8Of4m4iS","messageID":"msg_20319085a001Miy4i9BT1EMpBW"}} +{"type":"step_finish","timestamp":1795348371433,"sessionID":"ses_dfce7c480ffekIK2hE8Of4m4iS","part":{"id":"prt_2031a17e4001zLosbGDpkHi3qq","reason":"tool-calls","messageID":"msg_20319085a001Miy4i9BT1EMpBW","sessionID":"ses_dfce7c480ffekIK2hE8Of4m4iS","type":"step-finish","tokens":{"total":10469,"input":6,"output":87,"reasoning":0,"cache":{"write":1775,"read":8601}},"cost":0.000534406}} +{"type":"step_start","timestamp":1795348372512,"sessionID":"ses_dfce7c480ffekIK2hE8Of4m4iS","part":{"id":"prt_2031a1c1e001Zr5c4pe6ile8t1","messageID":"msg_2031a17e7001axvj74GqkKyAFu","sessionID":"ses_dfce7c480ffekIK2hE8Of4m4iS","type":"step-start"}} +{"type":"tool_use","timestamp":1795348504528,"sessionID":"ses_dfce7c480ffekIK2hE8Of4m4iS","part":{"type":"tool","tool":"bash","callID":"toolu_2a9826d4a1d94e3e93e06bb6","state":{"status":"completed","input":{"command":"sleep 120; styx logs a100-28 --tail 20","timeout":150000},"output":"device cuda\nWarning: You are sending unauthenticated requests to the HF Hub. Please set a HF_TOKEN to enable higher rate limits and faster downloads.\n[transformers] Token indices sequence length is longer than the specified maximum sequence length for this model (142704 > 131072). Running this sequence through the model will result in indexing errors\n[transformers] `torch_dtype` is deprecated! Use `dtype` instead!\n\nLoading weights: 0%| | 0/434 [00:00 131072). Running this sequence through the model will result in indexing errors\n[transformers] `torch_dtype` is deprecated! Use `dtype` instead!\n\nLoading weights: 0%| | 0/434 [00:00= docs * ctx: + break + return torch.tensor(ids[: docs * ctx]).view(docs, ctx) + + +def main(): + ap = argparse.ArgumentParser() + ap.add_argument("--model", required=True) + ap.add_argument("--docs", type=int, required=True) + ap.add_argument("--ctx", type=int, required=True) + ap.add_argument("--batch", type=int, default=16) + a = ap.parse_args() + dev = "cuda" if torch.cuda.is_available() else "cpu" + print(f"device {dev}", flush=True) + x = chunks(AutoTokenizer.from_pretrained(a.model), a.docs, a.ctx) + m = AutoModelForCausalLM.from_pretrained(a.model, torch_dtype=torch.bfloat16).to(dev).eval() + total, t, said = 0.0, time.time(), 0 + with torch.no_grad(): + for i in range(0, a.docs, a.batch): + b = x[i : i + a.batch].to(dev) + total += m(input_ids=b, labels=b).loss.item() * len(b) + done = i + len(b) + if done * 10 // a.docs > said: + said = done * 10 // a.docs + print(f"{done}/{a.docs} docs {time.time() - t:.0f} s", flush=True) + print(f"tok_s {a.docs * a.ctx / (time.time() - t):.0f}") + print(f"loss {total / a.docs:.4f}") + + +if __name__ == "__main__": + main()