Upload folder using huggingface_hub
Browse filesFiles changed (5)
- post/20261122-ddc9b53/opencode-opencode-go_deepseek-v4-pro/0.5B-256x512-1/episode.jsonAdded+117
- post/20261122-ddc9b53/opencode-opencode-go_deepseek-v4-pro/0.5B-256x512-1/ledger.jsonlAdded+4
- post/20261122-ddc9b53/opencode-opencode-go_deepseek-v4-pro/0.5B-256x512-1/stderr.txtAdded
- post/20261122-ddc9b53/opencode-opencode-go_deepseek-v4-pro/0.5B-256x512-1/transcript.jsonlAdded+16
- post/20261122-ddc9b53/opencode-opencode-go_deepseek-v4-pro/0.5B-256x512-1/work/loss.pyAdded+52
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117{ "agent_s": 73.8, "cpu_s": null, "late": false, "exit": 0, "num_turns": 5, "total_cost_usd": 0.007802916, "usage": [ { "total": 7318, "input": 7218, "output": 88, "reasoning": 12, "cache": { "write": 0, "read": 0 } }, { "total": 8392, "input": 1338, "output": 85, "reasoning": 57, "cache": { "write": 0, "read": 6912 } }, { "total": 8468, "input": 227, "output": 49, "reasoning": 0, "cache": { "write": 0, "read": 8192 } }, { "total": 8556, "input": 307, "output": 57, "reasoning": 0, "cache": { "write": 0, "read": 8192 } }, { "total": 8815, "input": 615, "output": 8, "reasoning": 0, "cache": { "write": 0, "read": 8192 } } ], "correct": true, "jobs": 1, "failed": 0, "timeout": 0, "cancelled": 0, "left": 0, "usd": 0.0037, "usd_ours": 0.0035, "gpu_s": 10.2, "gpu_s_ours": 9.8, "calls": 4, "peeked": false, "cell": "0.5B-256x512", "epoch": 1, "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 }, "posted": [ { "job": "a10-9", "gpu": "A10", "limit_s": 900, "cmd": "python loss.py --model Qwen/Qwen2.5-0.5B --docs 256 --ctx 512", "posted_at": 1795311328.902942, "state": "SUCCEEDED", "start_at": 1795311329.5730178, "end_at": 1795311341.77433, "seconds": 10.2, "exit": 0, "timeout": false, "peak_gpu_mb": 13589, "gpu_util_mean": 36.3, "gpu_busy_share": 0.364, "usd": 0.0037 } ]}1234{"t": 1795311314.472548, "argv": ["info"]}{"t": 1795311328.902942, "argv": ["post", "--gpu", "A10", "--time", "15m", "--", "python", "loss.py", "--model", "Qwen/Qwen2.5-0.5B", "--docs", "256", "--ctx", "512"], "job": "a10-9", "gpu": "A10", "limit_s": 900, "cmd": "python loss.py --model Qwen/Qwen2.5-0.5B --docs 256 --ctx 512", "uid": "7a12ead5b1"}{"t": 1795311339.3988898, "argv": ["status"]}{"t": 1795311380.1823325, "argv": ["logs", "a10-9"]}12345678910111213141516{"type":"step_start","timestamp":1795311312550,"sessionID":"ses_dff1b6bc0ffeOLQ11GTkUq5PqN","part":{"id":"prt_200e49ea3001lHaa9kJQbD6FRH","messageID":"msg_200e4958800170PW6dCmGmyxno","sessionID":"ses_dff1b6bc0ffeOLQ11GTkUq5PqN","type":"step-start"}}{"type":"tool_use","timestamp":1795311313683,"sessionID":"ses_dff1b6bc0ffeOLQ11GTkUq5PqN","part":{"type":"tool","tool":"bash","callID":"call_ysot0xo4whxtxgy4v8qic9t3","state":{"status":"completed","input":{"command":"ls -la && cat loss.py"},"output":"total 12\ndrwxrwxr-x 2 hal hal 4096 Nov 22 01:35 .\ndrwxrwxr-x 6 hal hal 4096 Nov 22 01:35 ..\n-rw-rw-r-- 1 hal hal 1843 Nov 22 01:35 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 01:35 .\ndrwxrwxr-x 6 hal hal 4096 Nov 22 01:35 ..\n-rw-rw-r-- 1 hal hal 1843 Nov 22 01:35 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":1795311313596,"end":1795311313682}},"id":"prt_200e4a2b5001CupUDvi4X2QQMw","sessionID":"ses_dff1b6bc0ffeOLQ11GTkUq5PqN","messageID":"msg_200e4958800170PW6dCmGmyxno"}}{"type":"tool_use","timestamp":1795311314873,"sessionID":"ses_dff1b6bc0ffeOLQ11GTkUq5PqN","part":{"type":"tool","tool":"bash","callID":"call_rcldaalx4jaffbcp878sstjo","state":{"status":"completed","input":{"command":"styx info 2>&1 | head -50"},"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 <gpu> --time <limit> -- <command>\n uploads the current directory (not .git, .venv or files over 50 MB) and runs <command> 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 <job> [--tail n] styx cancel <job>\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 <gpu> --time <limit> -- <command>\n uploads the current directory (not .git, .venv or files over 50 MB) and runs <command> 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 <job> [--tail n] styx cancel <job>\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 | head -50","time":{"start":1795311313606,"end":1795311314864}},"id":"prt_200e4a2bd001rngK1IYUPcMTiv","sessionID":"ses_dff1b6bc0ffeOLQ11GTkUq5PqN","messageID":"msg_200e4958800170PW6dCmGmyxno"}}{"type":"step_finish","timestamp":1795311314873,"sessionID":"ses_dff1b6bc0ffeOLQ11GTkUq5PqN","part":{"id":"prt_200e4a7b2001IcxhZngslM0vSM","reason":"tool-calls","messageID":"msg_200e4958800170PW6dCmGmyxno","sessionID":"ses_dff1b6bc0ffeOLQ11GTkUq5PqN","type":"step-finish","tokens":{"total":7318,"input":7218,"output":88,"reasoning":12,"cache":{"write":0,"read":0}},"cost":0.00496188}}{"type":"step_start","timestamp":1795311316778,"sessionID":"ses_dff1b6bc0ffeOLQ11GTkUq5PqN","part":{"id":"prt_200e4af27001EaDEWmBr0d095Q","messageID":"msg_200e4a7b7001gI6vkV3dL5NSfT","sessionID":"ses_dff1b6bc0ffeOLQ11GTkUq5PqN","type":"step-start"}}{"type":"tool_use","timestamp":1795311329279,"sessionID":"ses_dff1b6bc0ffeOLQ11GTkUq5PqN","part":{"type":"tool","tool":"bash","callID":"call_5c6z1uqrqpmps6qqxqzw3inv","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-9 queued on A10, limit 900 s\n","metadata":{"output":"a10-9 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":1795311318027,"end":1795311329269}},"id":"prt_200e4b3fb0019FOE6dZA6p1hYv","sessionID":"ses_dff1b6bc0ffeOLQ11GTkUq5PqN","messageID":"msg_200e4a7b7001gI6vkV3dL5NSfT"}}{"type":"step_finish","timestamp":1795311329279,"sessionID":"ses_dff1b6bc0ffeOLQ11GTkUq5PqN","part":{"id":"prt_200e4dff7001P1bI0tSCv4Mq5B","reason":"tool-calls","messageID":"msg_200e4a7b7001gI6vkV3dL5NSfT","sessionID":"ses_dff1b6bc0ffeOLQ11GTkUq5PqN","type":"step-finish","tokens":{"total":8392,"input":1338,"output":85,"reasoning":57,"cache":{"write":0,"read":6912}},"cost":0.001316304}}{"type":"step_start","timestamp":1795311331189,"sessionID":"ses_dff1b6bc0ffeOLQ11GTkUq5PqN","part":{"id":"prt_200e4e773001O9k1mfr6y7SkZ5","messageID":"msg_200e4dffb001OMnUYtL9NbVR1X","sessionID":"ses_dff1b6bc0ffeOLQ11GTkUq5PqN","type":"step-start"}}{"type":"tool_use","timestamp":1795311339635,"sessionID":"ses_dff1b6bc0ffeOLQ11GTkUq5PqN","part":{"type":"tool","tool":"bash","callID":"call_t72aahtwbf4n7ed647lbgkqy","state":{"status":"completed","input":{"command":"styx status 2>&1"},"output":"a10-9 RUNNING limit_s 900 seconds 9.8\n","metadata":{"output":"a10-9 RUNNING limit_s 900 seconds 9.8\n","exit":0,"truncated":false},"title":"styx status 2>&1","time":{"start":1795311331387,"end":1795311339626}},"id":"prt_200e4e80400161pI6ATt6cDz9i","sessionID":"ses_dff1b6bc0ffeOLQ11GTkUq5PqN","messageID":"msg_200e4dffb001OMnUYtL9NbVR1X"}}{"type":"step_finish","timestamp":1795311339635,"sessionID":"ses_dff1b6bc0ffeOLQ11GTkUq5PqN","part":{"id":"prt_200e5086b001R9wDjc1gzHBQJm","reason":"tool-calls","messageID":"msg_200e4dffb001OMnUYtL9NbVR1X","sessionID":"ses_dff1b6bc0ffeOLQ11GTkUq5PqN","type":"step-finish","tokens":{"total":8468,"input":227,"output":49,"reasoning":0,"cache":{"write":0,"read":8192}},"cost":0.000427064}}{"type":"step_start","timestamp":1795311341544,"sessionID":"ses_dff1b6bc0ffeOLQ11GTkUq5PqN","part":{"id":"prt_200e50fe7001NUewilWRyOODqT","messageID":"msg_200e50870001Ow0nLxEoLUKP3i","sessionID":"ses_dff1b6bc0ffeOLQ11GTkUq5PqN","type":"step-start"}}{"type":"tool_use","timestamp":1795311380522,"sessionID":"ses_dff1b6bc0ffeOLQ11GTkUq5PqN","part":{"type":"tool","tool":"bash","callID":"call_4qrbego9zzmk3q7zyxgxyvbs","state":{"status":"completed","input":{"command":"sleep 30 && styx logs a10-9 2>&1"},"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<?, ?it/s]\nLoading weights: 100%|ββββββββββ| 290/290 [00:00<00:00, 7482.64it/s]\n32/256 docs 1 s\n64/256 docs 1 s\n80/256 docs 1 s\n112/256 docs 2 s\n128/256 docs 2 s\n160/256 docs 3 s\n192/256 docs 3 s\n208/256 docs 3 s\n240/256 docs 4 s\n256/256 docs 4 s\ntok_s 32874\nloss 2.8552\n","metadata":{"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<?, ?it/s]\nLoading weights: 100%|ββββββββββ| 290/290 [00:00<00:00, 7482.64it/s]\n32/256 docs 1 s\n64/256 docs 1 s\n80/256 docs 1 s\n112/256 docs 2 s\n128/256 docs 2 s\n160/256 docs 3 s\n192/256 docs 3 s\n208/256 docs 3 s\n240/256 docs 4 s\n256/256 docs 4 s\ntok_s 32874\nloss 2.8552\n","exit":0,"truncated":false},"title":"sleep 30 && styx logs a10-9 2>&1","time":{"start":1795311341875,"end":1795311380514}},"id":"prt_200e5112c001wee53KF7gOcs4G","sessionID":"ses_dff1b6bc0ffeOLQ11GTkUq5PqN","messageID":"msg_200e50870001Ow0nLxEoLUKP3i"}}{"type":"step_finish","timestamp":1795311380522,"sessionID":"ses_dff1b6bc0ffeOLQ11GTkUq5PqN","part":{"id":"prt_200e5a824001QcjSUjP7ReqYhK","reason":"tool-calls","messageID":"msg_200e50870001Ow0nLxEoLUKP3i","sessionID":"ses_dff1b6bc0ffeOLQ11GTkUq5PqN","type":"step-finish","tokens":{"total":8556,"input":307,"output":57,"reasoning":0,"cache":{"write":0,"read":8192}},"cost":0.000495704}}{"type":"step_start","timestamp":1795311382570,"sessionID":"ses_dff1b6bc0ffeOLQ11GTkUq5PqN","part":{"id":"prt_200e5b027001geIWwg50YAKZYK","messageID":"msg_200e5a82800123MoTespYmdTPg","sessionID":"ses_dff1b6bc0ffeOLQ11GTkUq5PqN","type":"step-start"}}{"type":"text","timestamp":1795311382614,"sessionID":"ses_dff1b6bc0ffeOLQ11GTkUq5PqN","part":{"id":"prt_200e5b029001P9Uyr4TdLFPhGG","messageID":"msg_200e5a82800123MoTespYmdTPg","sessionID":"ses_dff1b6bc0ffeOLQ11GTkUq5PqN","type":"text","text":"LOSS=2.8552","time":{"start":1795311382569,"end":1795311382608}}}{"type":"step_finish","timestamp":1795311382614,"sessionID":"ses_dff1b6bc0ffeOLQ11GTkUq5PqN","part":{"id":"prt_200e5b051001D6gUpxVKxm629I","reason":"stop","messageID":"msg_200e5a82800123MoTespYmdTPg","sessionID":"ses_dff1b6bc0ffeOLQ11GTkUq5PqN","type":"step-finish","tokens":{"total":8815,"input":615,"output":8,"reasoning":0,"cache":{"write":0,"read":8192}},"cost":0.000601964}}12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152"""Mean next-token loss of a causal language model on the first --docs chunks of --ctx tokens ofthe WikiText-103 training text.
python loss.py --model Qwen/Qwen2.5-1.5B --docs 2000 --ctx 1024 [--batch 16]"""
import argparseimport time
import torchfrom datasets import load_datasetfrom 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()post/20261122-ddc9b53/opencode-opencode-go_deepseek-v4-pro/0.5B-256x512-1/episode.jsonAdded+117
post/20261122-ddc9b53/opencode-opencode-go_deepseek-v4-pro/0.5B-256x512-1/ledger.jsonlAdded+4
post/20261122-ddc9b53/opencode-opencode-go_deepseek-v4-pro/0.5B-256x512-1/stderr.txtAdded
post/20261122-ddc9b53/opencode-opencode-go_deepseek-v4-pro/0.5B-256x512-1/transcript.jsonlAdded+16
post/20261122-ddc9b53/opencode-opencode-go_deepseek-v4-pro/0.5B-256x512-1/work/loss.pyAdded+52