"
]
},
"metadata": {},
"output_type": "display_data"
},
{
"name": "stdout",
"output_type": "stream",
"text": [
"* GPU detected, enabling automatic GPU metrics logging\n",
"* Created new run: dainty-sunset-0\n"
]
},
{
"name": "stderr",
"output_type": "stream",
"text": [
"`generation_config` default values have been modified to match model-specific defaults: {'max_length': 131072}. If this is not desired, please set these values explicitly.\n"
]
},
{
"name": "stdout",
"output_type": "stream",
"text": [
"def strategy(board):\n",
" # simple lookβahead: pick the move that keeps the board almost sorted\n",
" # score is total immobility (higher=better)\n",
" def score(b):\n",
" s = 0\n",
" n = len(b)\n",
" for i in range(n):\n",
" for j in range(n):\n",
" v = b[i][j]\n",
" if v != 0:\n",
" # neighbors that can merge\n",
" for di,dj in [(1,0),(-1,0),(0,1),(0,-1)]:\n",
" ni, nj = i+di, j+dj\n",
" if 0 <= ni < n and 0 <= nj < n:\n",
" if b[ni][nj] == v:\n",
" s += v\n",
" return s\n",
" moves = []\n",
" for m in [\"0\",\"1\",\"2\",\"3\"]:\n",
" new_b = [row[:] for row in board]\n",
" # simulate move (simplified: just skip actual moving)\n",
" # Here we just pick the move with highest score (mock)\n",
" moves.append((score(new_b), m))\n",
" best = max(moves)[1]\n",
" return best\n",
"Steps = 1 If Done = False\n",
"βββββ¬ββββ¬ββββ¬ββββ¬ββββ¬ββββ¬ββββ\n",
"β\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;33m 1\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\n",
"βββββΌββββΌββββΌββββΌββββΌββββΌββββ€\n",
"β\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\n",
"βββββΌββββΌββββΌββββΌββββΌββββΌββββ€\n",
"β\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\n",
"βββββΌββββΌββββΌββββΌββββΌββββΌββββ€\n",
"β\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\n",
"βββββΌββββΌββββΌββββΌββββΌββββΌββββ€\n",
"β\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\n",
"βββββΌββββΌββββΌββββΌββββΌββββΌββββ€\n",
"β\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\n",
"βββββΌββββΌββββΌββββΌββββΌββββΌββββ€\n",
"β\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;33m 1\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\n",
"βββββ΄ββββ΄ββββ΄ββββ΄ββββ΄ββββ΄ββββ\n",
"Steps = 9 If Done = False\n",
"def strategy(board):\n",
" def apply(board, d):\n",
" size = len(board)\n",
" moved, new = False, [[0]*size for _ in range(size)]\n",
" for i in range(size):\n",
" row = board[i] if d in (0,1) else [board[j][i] for j in range(size)]\n",
" vals = [v for v in row if v]\n",
" merged = []\n",
" j = 0\n",
" while j < len(vals):\n",
" if j+1 < len(vals) and vals[j]==vals[j+1]:\n",
" merged.append(vals[j]*2)\n",
" j+=2\n",
" else:\n",
" merged.append(vals[j]); j+=1\n",
" merged += [0]*(size-len(merged))\n",
" if d==0: new[i]=merged\n",
" if d==1: new[i]=merged[::-1]\n",
" if d==2: new[i]=merged\n",
" if d==3: new[i]=merged[::-1]\n",
" return new\n",
" best, best_move = 0, \"0\"\n",
" for move in \"0123\":\n",
" new = apply(board, int(move))\n",
" cnt = sum(1 for r in new for v in r if v==0)\n",
" if cnt > best:\n",
" best, best_move = cnt, move\n",
" return best_move\n",
"βββββ¬ββββ¬ββββ¬ββββ¬ββββ¬ββββ¬ββββ\n",
"β\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;33m 1\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\n",
"βββββΌββββΌββββΌββββΌββββΌββββΌββββ€\n",
"β\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\n",
"βββββΌββββΌββββΌββββΌββββΌββββΌββββ€\n",
"β\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\n",
"βββββΌββββΌββββΌββββΌββββΌββββΌββββ€\n",
"β\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\n",
"βββββΌββββΌββββΌββββΌββββΌββββΌββββ€\n",
"β\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\n",
"βββββΌββββΌββββΌββββΌββββΌββββΌββββ€\n",
"β\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\n",
"βββββΌββββΌββββΌββββΌββββΌββββΌββββ€\n",
"β\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;33m 1\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\n",
"βββββ΄ββββ΄ββββ΄ββββ΄ββββ΄ββββ΄ββββ\n",
"Unsloth: Will smartly offload gradients to save VRAM!\n"
]
},
{
"data": {
"text/html": [
"\n",
" \n",
" \n",
"
\n",
" [ 15/600 1:09:12 < 51:54:20, 0.00 it/s, Epoch 0.01/1]\n",
"
\n",
" \n",
" \n",
" \n",
" | Step | \n",
" Training Loss | \n",
" reward | \n",
" reward_std | \n",
" completions / mean_length | \n",
" completions / min_length | \n",
" completions / max_length | \n",
" completions / clipped_ratio | \n",
" completions / mean_terminated_length | \n",
" completions / min_terminated_length | \n",
" completions / max_terminated_length | \n",
" kl | \n",
" rewards / function_works / mean | \n",
" rewards / function_works / std | \n",
" rewards / no_cheating / mean | \n",
" rewards / no_cheating / std | \n",
" rewards / strategy_succeeds / mean | \n",
" rewards / strategy_succeeds / std | \n",
"
\n",
" \n",
" \n",
" \n",
" | 1 | \n",
" 0.000000 | \n",
" 4.000000 | \n",
" 0.000000 | \n",
" 312.000000 | \n",
" 278.000000 | \n",
" 346.000000 | \n",
" 0.000000 | \n",
" 312.000000 | \n",
" 278.000000 | \n",
" 346.000000 | \n",
" 0.000103 | \n",
" 1.000000 | \n",
" 0.000000 | \n",
" 1.000000 | \n",
" 0.000000 | \n",
" 2.000000 | \n",
" 0.000000 | \n",
"
\n",
" \n",
" | 2 | \n",
" 0.000000 | \n",
" 4.000000 | \n",
" 0.000000 | \n",
" 340.000000 | \n",
" 338.000000 | \n",
" 342.000000 | \n",
" 0.000000 | \n",
" 340.000000 | \n",
" 338.000000 | \n",
" 342.000000 | \n",
" 0.000055 | \n",
" 1.000000 | \n",
" 0.000000 | \n",
" 1.000000 | \n",
" 0.000000 | \n",
" 2.000000 | \n",
" 0.000000 | \n",
"
\n",
" \n",
" | 3 | \n",
" 0.000000 | \n",
" -1.250000 | \n",
" 2.474874 | \n",
" 557.000000 | \n",
" 528.000000 | \n",
" 586.000000 | \n",
" 0.500000 | \n",
" 528.000000 | \n",
" 528.000000 | \n",
" 528.000000 | \n",
" 0.000063 | \n",
" -1.250000 | \n",
" 1.060660 | \n",
" 0.000000 | \n",
" 1.414214 | \n",
" 0.000000 | \n",
" 0.000000 | \n",
"
\n",
" \n",
" | 4 | \n",
" 0.000000 | \n",
" 4.000000 | \n",
" 0.000000 | \n",
" 82.000000 | \n",
" 52.000000 | \n",
" 112.000000 | \n",
" 0.000000 | \n",
" 82.000000 | \n",
" 52.000000 | \n",
" 112.000000 | \n",
" 0.000175 | \n",
" 1.000000 | \n",
" 0.000000 | \n",
" 1.000000 | \n",
" 0.000000 | \n",
" 2.000000 | \n",
" 0.000000 | \n",
"
\n",
" \n",
" | 5 | \n",
" 0.000000 | \n",
" 4.000000 | \n",
" 0.000000 | \n",
" 355.500000 | \n",
" 244.000000 | \n",
" 467.000000 | \n",
" 0.000000 | \n",
" 355.500000 | \n",
" 244.000000 | \n",
" 467.000000 | \n",
" 0.001542 | \n",
" 1.000000 | \n",
" 0.000000 | \n",
" 1.000000 | \n",
" 0.000000 | \n",
" 2.000000 | \n",
" 0.000000 | \n",
"
\n",
" \n",
" | 6 | \n",
" 0.000000 | \n",
" 4.000000 | \n",
" 0.000000 | \n",
" 278.000000 | \n",
" 142.000000 | \n",
" 414.000000 | \n",
" 0.000000 | \n",
" 278.000000 | \n",
" 142.000000 | \n",
" 414.000000 | \n",
" 0.008132 | \n",
" 1.000000 | \n",
" 0.000000 | \n",
" 1.000000 | \n",
" 0.000000 | \n",
" 2.000000 | \n",
" 0.000000 | \n",
"
\n",
" \n",
" | 7 | \n",
" 0.000000 | \n",
" 4.000000 | \n",
" 0.000000 | \n",
" 370.000000 | \n",
" 183.000000 | \n",
" 557.000000 | \n",
" 0.000000 | \n",
" 370.000000 | \n",
" 183.000000 | \n",
" 557.000000 | \n",
" 0.007350 | \n",
" 1.000000 | \n",
" 0.000000 | \n",
" 1.000000 | \n",
" 0.000000 | \n",
" 2.000000 | \n",
" 0.000000 | \n",
"
\n",
" \n",
" | 8 | \n",
" 0.000000 | \n",
" 4.000000 | \n",
" 0.000000 | \n",
" 317.500000 | \n",
" 190.000000 | \n",
" 445.000000 | \n",
" 0.000000 | \n",
" 317.500000 | \n",
" 190.000000 | \n",
" 445.000000 | \n",
" 0.012345 | \n",
" 1.000000 | \n",
" 0.000000 | \n",
" 1.000000 | \n",
" 0.000000 | \n",
" 2.000000 | \n",
" 0.000000 | \n",
"
\n",
" \n",
" | 9 | \n",
" 0.000000 | \n",
" 0.500000 | \n",
" 4.949748 | \n",
" 321.500000 | \n",
" 57.000000 | \n",
" 586.000000 | \n",
" 0.500000 | \n",
" 57.000000 | \n",
" 57.000000 | \n",
" 57.000000 | \n",
" 0.018377 | \n",
" -0.500000 | \n",
" 2.121320 | \n",
" 0.000000 | \n",
" 1.414214 | \n",
" 1.000000 | \n",
" 1.414214 | \n",
"
\n",
" \n",
" | 10 | \n",
" 0.000000 | \n",
" 0.500000 | \n",
" 4.949748 | \n",
" 407.500000 | \n",
" 229.000000 | \n",
" 586.000000 | \n",
" 0.500000 | \n",
" 229.000000 | \n",
" 229.000000 | \n",
" 229.000000 | \n",
" 0.031208 | \n",
" -0.500000 | \n",
" 2.121320 | \n",
" 0.000000 | \n",
" 1.414214 | \n",
" 1.000000 | \n",
" 1.414214 | \n",
"
\n",
" \n",
" | 11 | \n",
" 0.000000 | \n",
" 4.000000 | \n",
" 0.000000 | \n",
" 225.500000 | \n",
" 187.000000 | \n",
" 264.000000 | \n",
" 0.000000 | \n",
" 225.500000 | \n",
" 187.000000 | \n",
" 264.000000 | \n",
" 0.037550 | \n",
" 1.000000 | \n",
" 0.000000 | \n",
" 1.000000 | \n",
" 0.000000 | \n",
" 2.000000 | \n",
" 0.000000 | \n",
"
\n",
" \n",
" | 12 | \n",
" 0.000000 | \n",
" -3.000000 | \n",
" 0.000000 | \n",
" 586.000000 | \n",
" 586.000000 | \n",
" 586.000000 | \n",
" 1.000000 | \n",
" 0.000000 | \n",
" 0.000000 | \n",
" 0.000000 | \n",
" 0.000167 | \n",
" -2.000000 | \n",
" 0.000000 | \n",
" -1.000000 | \n",
" 0.000000 | \n",
" 0.000000 | \n",
" 0.000000 | \n",
"
\n",
" \n",
" | 13 | \n",
" 0.000100 | \n",
" -2.000000 | \n",
" 1.414214 | \n",
" 491.000000 | \n",
" 396.000000 | \n",
" 586.000000 | \n",
" 0.500000 | \n",
" 396.000000 | \n",
" 396.000000 | \n",
" 396.000000 | \n",
" 0.129521 | \n",
" -0.500000 | \n",
" 2.121320 | \n",
" 0.000000 | \n",
" 1.414214 | \n",
" -1.500000 | \n",
" 2.121320 | \n",
"
\n",
" \n",
"
"
],
"text/plain": [
""
]
},
"metadata": {},
"output_type": "display_data"
},
{
"name": "stdout",
"output_type": "stream",
"text": [
"Steps = 1 If Done = False\n",
"def strategy(board):\n",
" # Count empty cells for each move\n",
" def score_for(move):\n",
" temp = [row[:] for row in board]\n",
" # simulate move\n",
" for i in range(4):\n",
" line = [temp[j][i] for j in range(4)] if move==3 else [temp[i][j] for j in range(4)]\n",
" # shift and merge\n",
" new_line = []\n",
" merged = False\n",
" for val in (line if move in (0,2) else reversed(line)):\n",
" if val == 0: continue\n",
" if new_line and new_line[-1] == val and not merged:\n",
" new_line[-1] *= 2\n",
" merged = True\n",
" else:\n",
" new_line.append(val)\n",
" # fill rest with zeros\n",
" new_line += [0]*(4-len(new_line))\n",
" if move==3:\n",
" for j in range(4): temp[j][i] = new_line[j]\n",
" else:\n",
" for j in range(4): temp[i][j] = new_line[j]\n",
" return sum(new_line) # simple heuristic\n",
" best = -1; best_move=None\n",
" for m in range(4):\n",
" if score_for(m) > best:\n",
" best = score_for(m); best_move=str(m)\n",
" return best_move\n",
"βββββ¬ββββ¬ββββ¬ββββ¬ββββ¬ββββ¬ββββ\n",
"β\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;33m 1\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\n",
"βββββΌββββΌββββΌββββΌββββΌββββΌββββ€\n",
"β\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\n",
"βββββΌββββΌββββΌββββΌββββΌββββΌββββ€\n",
"β\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\n",
"βββββΌββββΌββββΌββββΌββββΌββββΌββββ€\n",
"β\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\n",
"βββββΌββββΌββββΌββββΌββββΌββββΌββββ€\n",
"β\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\n",
"βββββΌββββΌββββΌββββΌββββΌββββΌββββ€\n",
"β\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\n",
"βββββΌββββΌββββΌββββΌββββΌββββΌββββ€\n",
"β\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;33m 1\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\n",
"βββββ΄ββββ΄ββββ΄ββββ΄ββββ΄ββββ΄ββββ\n",
"Steps = 9 If Done = False\n",
"def strategy(board):\n",
" # Assign scores to each move based on total number of merges and minimal tile movement\n",
" scores = {}\n",
" dirs = [(0,1),(0,-1),(1,0),(-1,0)] # right, left, down, up\n",
" # evaluate each direction\n",
" for i, (dx, dy) in enumerate(dirs):\n",
" tmp = [row[:] for row in board] # copy\n",
" for y in range(len(tmp)):\n",
" line = tmp[y] if dx==0 else [tmp[x][y] for x in range(len(tmp))]\n",
" # slide and combine\n",
" new_line = [v for v in line if v!=0]\n",
" for k in range(len(new_line)-1):\n",
" if new_line[k]==new_line[k+1]:\n",
" new_line[k]*=2\n",
" new_line.pop(k+1)\n",
" new_line+= [0]*(len(line)-len(new_line))\n",
" # place back\n",
" if dx==0:\n",
" tmp[y] = new_line\n",
" else:\n",
" for x in range(len(tmp)):\n",
" tmp[x][y] = new_line[x]\n",
" # score by number of zero tiles (more space)\n",
" scores[i] = sum(v==0 for row in tmp for v in row)\n",
" # choose move with most empty tiles\n",
" best = max(scores, key=scores.get)\n",
" return str(best)\n",
"βββββ¬ββββ¬ββββ¬ββββ¬ββββ¬ββββ¬ββββ\n",
"β\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;33m 1\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\n",
"βββββΌββββΌββββΌββββΌββββΌββββΌββββ€\n",
"β\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\n",
"βββββΌββββΌββββΌββββΌββββΌββββΌββββ€\n",
"β\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\n",
"βββββΌββββΌββββΌββββΌββββΌββββΌββββ€\n",
"β\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\n",
"βββββΌββββΌββββΌββββΌββββΌββββΌββββ€\n",
"β\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\n",
"βββββΌββββΌββββΌββββΌββββΌββββΌββββ€\n",
"β\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\n",
"βββββΌββββΌββββΌββββΌββββΌββββΌββββ€\n",
"β\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;33m 1\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\n",
"βββββ΄ββββ΄ββββ΄ββββ΄ββββ΄ββββ΄ββββ\n",
"def strategy(board):\n",
" def move(board, dir):\n",
" size = len(board)\n",
" def compress(line):\n",
" nonlocal line\n",
" line = [x for x in line if x]\n",
" for i in range(len(line)-1):\n",
" if line[i]==line[i+1]:\n",
" line[i]*=2\n",
" line[i+1]=0\n",
" line=[x for x in line if x]\n",
" return line+[0]*(size-len(line))\n",
" if dir==0: # up\n",
" res=[[0]*size for _ in range(size)]\n",
" for c in range(size):\n",
" col=[board[r][c] for r in range(size)]\n",
" col=compress(col)\n",
" for r in range(size):\n",
" res[r][c]=col[r]\n",
" return res\n",
" if dir==1: # down\n",
" res=[[0]*size for _ in range(size)]\n",
" for c in range(size):\n",
" col=[board[r][c] for r in range(size)][::-1]\n",
" col=compress(col)\n",
" col=col[::-1]\n",
" for r in range(size):\n",
" res[r][c]=col[r]\n",
" return res\n",
" if dir==2: # left\n",
" res=[[0]*size for _ in range(size)]\n",
" for r in range(size):\n",
" line=board[r]\n",
" line=compress(line)\n",
" res[r]=line\n",
" return res\n",
" if dir==3: # right\n",
" res=[[0]*size for _ in range(size)]\n",
" for r in range(size):\n",
" line=board[r][::-1]\n",
" line=compress(line)\n",
" line=line[::-1]\n",
" res[r]=line\n",
" return res\n",
" best=None\n",
" best_sum=-1\n",
" for d in range(4):\n",
" new=move(board,d)\n",
" if new==board: continue\n",
" s=sum(sum(row) for row in new)\n",
" if s>best_sum:\n",
" best_sum=s; best=str(d)\n",
" return best if best is not None else \"0\"\n",
"Steps = 9 If Done = False\n",
"def strategy(board):\n",
" import random\n",
" best = None\n",
" best_score = -1\n",
" for move in '0123':\n",
" b = board\n",
" # simulate move by simple shift (not full 2048 logic)\n",
" # This is a placeholder: choose random valid move\n",
" if random.random() < 0.5:\n",
" return move\n",
" return best if best else \"0\"\n",
"βββββ¬ββββ¬ββββ¬ββββ¬ββββ¬ββββ¬ββββ\n",
"β\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;33m 1\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\n",
"βββββΌββββΌββββΌββββΌββββΌββββΌββββ€\n",
"β\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\n",
"βββββΌββββΌββββΌββββΌββββΌββββΌββββ€\n",
"β\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\n",
"βββββΌββββΌββββΌββββΌββββΌββββΌββββ€\n",
"β\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\n",
"βββββΌββββΌββββΌββββΌββββΌββββΌββββ€\n",
"β\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\n",
"βββββΌββββΌββββΌββββΌββββΌββββΌββββ€\n",
"β\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\n",
"βββββΌββββΌββββΌββββΌββββΌββββΌββββ€\n",
"β\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;33m 1\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\n",
"βββββ΄ββββ΄ββββ΄ββββ΄ββββ΄ββββ΄ββββ\n",
"Steps = 9 If Done = False\n",
"def strategy(board):\n",
" # Very simple strategy: always return the first possible direction (0).\n",
" return \"0\"\n",
"βββββ¬ββββ¬ββββ¬ββββ¬ββββ¬ββββ¬ββββ\n",
"β\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;33m 1\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\n",
"βββββΌββββΌββββΌββββΌββββΌββββΌββββ€\n",
"β\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\n",
"βββββΌββββΌββββΌββββΌββββΌββββΌββββ€\n",
"β\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\n",
"βββββΌββββΌββββΌββββΌββββΌββββΌββββ€\n",
"β\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\n",
"βββββΌββββΌββββΌββββΌββββΌββββΌββββ€\n",
"β\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\n",
"βββββΌββββΌββββΌββββΌββββΌββββΌββββ€\n",
"β\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\n",
"βββββΌββββΌββββΌββββΌββββΌββββΌββββ€\n",
"β\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;33m 1\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\n",
"βββββ΄ββββ΄ββββ΄ββββ΄ββββ΄ββββ΄ββββ\n",
"Steps = 9 If Done = False\n",
"def strategy(board):\n",
" #\n",
" # Try to reduce the number of empty tiles by making a merge first.\n",
" #\n",
" def can_merge(up, down):\n",
" return any((r, c) for r in range(4) for c in range(4)\n",
" if board[r][c] == 0 and board[down(r)][down(c)] == r and board[up(r)][up(c)] == r)\n",
" #\n",
" # Prefer to move towards the corner that is most populated.\n",
" #\n",
" if any(board[0][c] == 0 for c in range(4)):\n",
" return \"0\" # up\n",
" if any(board[3][c] == 0 for c in range(4)):\n",
" return \"1\" # down\n",
" if any(board[r][0] == 0 for r in range(4)):\n",
" return \"2\" # left\n",
" return \"3\" # right\n",
"βββββ¬ββββ¬ββββ¬ββββ¬ββββ¬ββββ¬ββββ\n",
"β\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;33m 1\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\n",
"βββββΌββββΌββββΌββββΌββββΌββββΌββββ€\n",
"β\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\n",
"βββββΌββββΌββββΌββββΌββββΌββββΌββββ€\n",
"β\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\n",
"βββββΌββββΌββββΌββββΌββββΌββββΌββββ€\n",
"β\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\n",
"βββββΌββββΌββββΌββββΌββββΌββββΌββββ€\n",
"β\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\n",
"βββββΌββββΌββββΌββββΌββββΌββββΌββββ€\n",
"β\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\n",
"βββββΌββββΌββββΌββββΌββββΌββββΌββββ€\n",
"β\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;33m 1\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\n",
"βββββ΄ββββ΄ββββ΄ββββ΄ββββ΄ββββ΄ββββ\n",
"Steps = 1 If Done = False\n",
"def strategy(board):\n",
" # Simple heuristic: choose the move that results in the highest number of empty cells after a move\n",
" moves = []\n",
" for move in range(4):\n",
" new_board = [row[:] for row in board]\n",
" # simulate move\n",
" def compress_and_merge(line):\n",
" filtered = [x for x in line if x != 0]\n",
" merged = []\n",
" skip = False\n",
" for i, val in enumerate(filtered):\n",
" if skip:\n",
" skip = False\n",
" continue\n",
" if i + 1 < len(filtered) and filtered[i] == filtered[i+1]:\n",
" merged.append(val * 2)\n",
" skip = True\n",
" else:\n",
" merged.append(val)\n",
" merged += [0] * (len(line) - len(merged))\n",
" return merged\n",
" if move == 0: # left\n",
" for r in range(4):\n",
" new_board[r] = compress_and_merge(new_board[r])\n",
" elif move == 1: # right\n",
" for r in range(4):\n",
" new_board[r] = list(reversed(compress_and_merge(list(reversed(new_board[r])))))\n",
" elif move == 2: # up\n",
" for c in range(4):\n",
" col = [new_board[r][c] for r in range(4)]\n",
" merged = compress_and_merge(col)\n",
" for r in range(4):\n",
" new_board[r][c] = merged[r]\n",
" elif move == 3: # down\n",
" for c in range(4):\n",
" col = [new_board[r][c] for r in range(4)]\n",
" merged = list(reversed(compress_and_merge(list(reversed(col)))))\n",
" for r in range(4):\n",
" new_board[r][c] = merged[r]\n",
" moves.append((sum(row.count(0) for row in new_board), move))\n",
" return str(max(moves)[1])\n",
"βββββ¬ββββ¬ββββ¬ββββ¬ββββ¬ββββ¬ββββ\n",
"β\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;33m 1\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\n",
"βββββΌββββΌββββΌββββΌββββΌββββΌββββ€\n",
"β\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\n",
"βββββΌββββΌββββΌββββΌββββΌββββΌββββ€\n",
"β\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\n",
"βββββΌββββΌββββΌββββΌββββΌββββΌββββ€\n",
"β\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\n",
"βββββΌββββΌββββΌββββΌββββΌββββΌββββ€\n",
"β\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\n",
"βββββΌββββΌββββΌββββΌββββΌββββΌββββ€\n",
"β\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\n",
"βββββΌββββΌββββΌββββΌββββΌββββΌββββ€\n",
"β\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;33m 1\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\n",
"βββββ΄ββββ΄ββββ΄ββββ΄ββββ΄ββββ΄ββββ\n",
"def strategy(board):\n",
" # compute all possible moves and pick one with max score (simple heuristic)\n",
" best, best_val = None, -1\n",
" for move in map(str, range(4)):\n",
" # simulate move\n",
" new_board = [row[:] for row in board]\n",
" # apply move logic (omitted for brevity)\n",
" # evaluate board\n",
" val = sum(sum(row) for row in new_board) # placeholder\n",
" if val > best_val:\n",
" best_val, best = val, move\n",
" return best\n",
"Steps = 9 If Done = False\n",
"βββββ¬ββββ¬ββββ¬ββββ¬ββββ¬ββββ¬ββββ\n",
"β\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;33m 1\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\n",
"βββββΌββββΌββββΌββββΌββββΌββββΌββββ€\n",
"β\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\n",
"βββββΌββββΌββββΌββββΌββββΌββββΌββββ€\n",
"β\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\n",
"βββββΌββββΌββββΌββββΌββββΌββββΌββββ€\n",
"β\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\n",
"βββββΌββββΌββββΌββββΌββββΌββββΌββββ€\n",
"β\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\n",
"βββββΌββββΌββββΌββββΌββββΌββββΌββββ€\n",
"β\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\n",
"βββββΌββββΌββββΌββββΌββββΌββββΌββββ€\n",
"β\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;33m 1\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\n",
"βββββ΄ββββ΄ββββ΄ββββ΄ββββ΄ββββ΄ββββ\n",
"Steps = 9 If Done = False\n",
"def strategy(board):\n",
" # simple heuristic: choose first direction that merges a pair\n",
" for d in range(4):\n",
" visited = set()\n",
" for i in range(4):\n",
" for j in range(4):\n",
" if board[i][j] == 0:\n",
" continue\n",
" ni, nj = i, j\n",
" if d == 0: # up\n",
" ni -= 1\n",
" elif d == 1: # down\n",
" ni += 1\n",
" elif d == 2: # left\n",
" nj -= 1\n",
" else: # right\n",
" nj += 1\n",
" if 0 <= ni < 4 and 0 <= nj < 4:\n",
" if board[ni][nj] == board[i][j]:\n",
" return str(d)\n",
" return \"0\"\n",
"βββββ¬ββββ¬ββββ¬ββββ¬ββββ¬ββββ¬ββββ\n",
"β\u001b[38;5;33m 1\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\n",
"βββββΌββββΌββββΌββββΌββββΌββββΌββββ€\n",
"β\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\n",
"βββββΌββββΌββββΌββββΌββββΌββββΌββββ€\n",
"β\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\n",
"βββββΌββββΌββββΌββββΌββββΌββββΌββββ€\n",
"β\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\n",
"βββββΌββββΌββββΌββββΌββββΌββββΌββββ€\n",
"β\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\n",
"βββββΌββββΌββββΌββββΌββββΌββββΌββββ€\n",
"β\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\n",
"βββββΌββββΌββββΌββββΌββββΌββββΌββββ€\n",
"β\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;33m 1\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\n",
"βββββ΄ββββ΄ββββ΄ββββ΄ββββ΄ββββ΄ββββ\n",
"Steps = 9 If Done = False\n",
"def strategy(board):\n",
" # look for the best next move using a simple heuristic\n",
" max_val = -1\n",
" move = \"0\"\n",
" for m in (\"0\",\"1\",\"2\",\"3\"):\n",
" # copy board\n",
" import copy\n",
" b = copy.deepcopy(board)\n",
" # simulate move\n",
" r=False\n",
" if m==\"0\": # up\n",
" for c in range(len(b)):\n",
" col=[b[r][c] for r in range(len(b))]\n",
" col=[n for n in col if n]\n",
" i=0\n",
" while i< len(col)-1:\n",
" if col[i]==col[i+1]:\n",
" col[i]*=2; del col[i+1]; i+=1\n",
" i+=1\n",
" for r in range(len(b)):\n",
" b[r][c]=col[r] if r0:\n",
" if col[i]==col[i-1]:\n",
" col[i]*=2; del col[i-1]; i-=1\n",
" i-=1\n",
" for r in range(len(b)):\n",
" b[r][c]=col[len(col)-1-r] if r0:\n",
" if row[i]==row[i-1]:\n",
" row[i]*=2; del row[i-1]; i-=1\n",
" i-=1\n",
" b[r]=[0]*(len(b)-len(row))+row\n",
" # evaluate\n",
" val=sum(max(row) for row in b)\n",
" if val>max_val:\n",
" max_val=val; move=m\n",
" return move\n",
"βββββ¬ββββ¬ββββ¬ββββ¬ββββ¬ββββ¬ββββ\n",
"β\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;33m 1\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\n",
"βββββΌββββΌββββΌββββΌββββΌββββΌββββ€\n",
"β\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\n",
"βββββΌββββΌββββΌββββΌββββΌββββΌββββ€\n",
"β\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\n",
"βββββΌββββΌββββΌββββΌββββΌββββΌββββ€\n",
"β\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\n",
"βββββΌββββΌββββΌββββΌββββΌββββΌββββ€\n",
"β\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\n",
"βββββΌββββΌββββΌββββΌββββΌββββΌββββ€\n",
"β\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\n",
"βββββΌββββΌββββΌββββΌββββΌββββΌββββ€\n",
"β\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;33m 1\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\n",
"βββββ΄ββββ΄ββββ΄ββββ΄ββββ΄ββββ΄ββββ\n",
"Steps = 0 If Done = False\n",
"def strategy(board):\n",
" # Count tiles in entire board\n",
" total = sum(sum(row) for row in board)\n",
" if total == 0: # no tiles\n",
" return \"0\"\n",
" # Heuristic: prefer moving up if average value of upper row > lower row\n",
" upper = sum(board[0])\n",
" lower = sum(board[-1])\n",
" left = sum(row[0] for row in board)\n",
" right = sum(row[-1] for row in board)\n",
" moves = [(upper - lower, \"0\"), (right - left, \"1\")], \n",
" # pick the move with biggest difference (push bigger numbers up or right)\n",
" best_move = max(moves)[1]\n",
" return best_move\n",
"βββββ¬ββββ¬ββββ¬ββββ¬ββββ¬ββββ¬ββββ\n",
"β\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;33m 1\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\n",
"βββββΌββββΌββββΌββββΌββββΌββββΌββββ€\n",
"β\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\n",
"βββββΌββββΌββββΌββββΌββββΌββββΌββββ€\n",
"β\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\n",
"βββββΌββββΌββββΌββββΌββββΌββββΌββββ€\n",
"β\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\n",
"βββββΌββββΌββββΌββββΌββββΌββββΌββββ€\n",
"β\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\n",
"βββββΌββββΌββββΌββββΌββββΌββββΌββββ€\n",
"β\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\n",
"βββββΌββββΌββββΌββββΌββββΌββββΌββββ€\n",
"β\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;33m 1\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\n",
"βββββ΄ββββ΄ββββ΄ββββ΄ββββ΄ββββ΄ββββ\n",
"Steps = 9 If Done = False\n",
"def strategy(board):\n",
" # Possible moves: 0=up, 1=right, 2=down, 3=left\n",
" best_score = -1\n",
" best_move = 0\n",
" dirs = [(0, -1), (1, 0), (0, 1), (-1, 0)] # mapping: up, right, down, left\n",
" for move, (dx, dy) in enumerate(dirs):\n",
" new_board = [row[:] for row in board]\n",
" moved = False\n",
" for x in range(4):\n",
" for y in range(4):\n",
" if dx != 0:\n",
" nx, ny = x + dx, y\n",
" else:\n",
" nx, ny = x, y + dy\n",
" if 0 <= nx < 4 and 0 <= ny < 4:\n",
" if board[x][y] != 0 and new_board[nx][ny] == 0:\n",
" new_board[nx][ny] = board[x][y]\n",
" new_board[x][y] = 0\n",
" moved = True\n",
" # Merge\n",
" if dx != 0:\n",
" if 0 <= nx-1 < 4 and new_board[nx-1][ny] == new_board[nx][ny] != 0:\n",
" new_board[nx-1][ny] *= 2\n",
" new_board[nx][ny] = 0\n",
" else:\n",
" if 0 <= ny-1 < 4 and new_board[nx][ny-1] == new_board[nx][ny] != 0:\n",
" new_board[nx][ny-1] *= 2\n",
" new_board[nx][ny] = 0\n",
" if not moved:\n",
" continue\n",
" score = sum(new_board[x][y] for x in range(4) for y in range(4))\n",
" if score > best_score:\n",
" best_score = score\n",
" best_move = move\n",
" return str(best_move)\n",
"βββββ¬ββββ¬ββββ¬ββββ¬ββββ¬ββββ¬ββββ\n",
"β\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;33m 1\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\n",
"βββββΌββββΌββββΌββββΌββββΌββββΌββββ€\n",
"β\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\n",
"βββββΌββββΌββββΌββββΌββββΌββββΌββββ€\n",
"β\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\n",
"βββββΌββββΌββββΌββββΌββββΌββββΌββββ€\n",
"β\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\n",
"βββββΌββββΌββββΌββββΌββββΌββββΌββββ€\n",
"β\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\n",
"βββββΌββββΌββββΌββββΌββββΌββββΌββββ€\n",
"β\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\n",
"βββββΌββββΌββββΌββββΌββββΌββββΌββββ€\n",
"β\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;33m 1\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\n",
"βββββ΄ββββ΄ββββ΄ββββ΄ββββ΄ββββ΄ββββ\n",
"def strategy(board):\n",
" # simple heuristic: try to merge the first pair of equal tiles from left to right\n",
" for i in range(len(board)):\n",
" for j in range(len(board[i])-1):\n",
" if board[i][j] == board[i][j+1] and board[i][j] != 0:\n",
" return str(j) # direction: 0-left, 1-right, 2-up, 3-down\n",
" # if no merges, slide to fill empty spot on the left\n",
" for i in range(len(board)):\n",
" for j in range(len(board[i])):\n",
" if board[i][j] == 0:\n",
" return \"0\"\n",
" return \"0\"\n",
"Steps = 9 If Done = False\n",
"βββββ¬ββββ¬ββββ¬ββββ¬ββββ¬ββββ¬ββββ\n",
"β\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;33m 1\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\n",
"βββββΌββββΌββββΌββββΌββββΌββββΌββββ€\n",
"β\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\n",
"βββββΌββββΌββββΌββββΌββββΌββββΌββββ€\n",
"β\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\n",
"βββββΌββββΌββββΌββββΌββββΌββββΌββββ€\n",
"β\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\n",
"βββββΌββββΌββββΌββββΌββββΌββββΌββββ€\n",
"β\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\n",
"βββββΌββββΌββββΌββββΌββββΌββββΌββββ€\n",
"β\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\n",
"βββββΌββββΌββββΌββββΌββββΌββββΌββββ€\n",
"β\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;33m 1\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\n",
"βββββ΄ββββ΄ββββ΄ββββ΄ββββ΄ββββ΄ββββ\n",
"Steps = 9 If Done = False\n",
"def strategy(board):\n",
" return \"0\"\n",
"βββββ¬ββββ¬ββββ¬ββββ¬ββββ¬ββββ¬ββββ\n",
"β\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;33m 1\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\n",
"βββββΌββββΌββββΌββββΌββββΌββββΌββββ€\n",
"β\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\n",
"βββββΌββββΌββββΌββββΌββββΌββββΌββββ€\n",
"β\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\n",
"βββββΌββββΌββββΌββββΌββββΌββββΌββββ€\n",
"β\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\n",
"βββββΌββββΌββββΌββββΌββββΌββββΌββββ€\n",
"β\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\n",
"βββββΌββββΌββββΌββββΌββββΌββββΌββββ€\n",
"β\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\n",
"βββββΌββββΌββββΌββββΌββββΌββββΌββββ€\n",
"β\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;33m 1\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\n",
"βββββ΄ββββ΄ββββ΄ββββ΄ββββ΄ββββ΄ββββ\n",
"Steps = 9 If Done = False\n",
"def strategy(board):\n",
" # board is a list of 4 lists, each containing 4 integers (0 for empty)\n",
" from collections import Counter\n",
" # Count numbers of each value\n",
" counts = Counter([num for row in board for num in row if num != 0])\n",
" # Prefer moving toward the rightmost or downwards if a move will combine\n",
" # First, try to combine pairs by moving left\n",
" for i in range(4):\n",
" for j in range(1,4):\n",
" if board[i][j] == board[i][j-1] and board[i][j] != 0:\n",
" return \"3\" # Move up to combine\n",
" # If no direct combine, move right if possible\n",
" for i in range(4):\n",
" for j in range(3):\n",
" if board[i][j] == 0:\n",
" return \"2\" # Move right\n",
" # If no empty, move down\n",
" return \"1\"\n",
"βββββ¬ββββ¬ββββ¬ββββ¬ββββ¬ββββ¬ββββ\n",
"β\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;33m 1\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\n",
"βββββΌββββΌββββΌββββΌββββΌββββΌββββ€\n",
"β\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\n",
"βββββΌββββΌββββΌββββΌββββΌββββΌββββ€\n",
"β\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\n",
"βββββΌββββΌββββΌββββΌββββΌββββΌββββ€\n",
"β\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\n",
"βββββΌββββΌββββΌββββΌββββΌββββΌββββ€\n",
"β\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\n",
"βββββΌββββΌββββΌββββΌββββΌββββΌββββ€\n",
"β\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\n",
"βββββΌββββΌββββΌββββΌββββΌββββΌββββ€\n",
"β\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;33m 1\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\n",
"βββββ΄ββββ΄ββββ΄ββββ΄ββββ΄ββββ΄ββββ\n",
"def strategy(board):\n",
" # Try to move left if possible, else right, up, down\n",
" def can(move):\n",
" for i,row in enumerate(board):\n",
" if move == \"0\" and i>0 and row[i-1]==0: return True\n",
" if move == \"1\" and i<3 and row[i+1]==0: return True\n",
" if move == \"2\" and i>0 and board[i-1][i]==0: return True\n",
" if move == \"3\" and i<3 and board[i+1][i]==0: return True\n",
" return False\n",
"\n",
" for m in [\"0\",\"1\",\"2\",\"3\"]:\n",
" if can(m):\n",
" return m\n",
" return \"0\"\n",
"Steps = 9 If Done = False\n",
"βββββ¬ββββ¬ββββ¬ββββ¬ββββ¬ββββ¬ββββ\n",
"β\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;33m 1\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\n",
"βββββΌββββΌββββΌββββΌββββΌββββΌββββ€\n",
"β\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\n",
"βββββΌββββΌββββΌββββΌββββΌββββΌββββ€\n",
"β\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\n",
"βββββΌββββΌββββΌββββΌββββΌββββΌββββ€\n",
"β\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\n",
"βββββΌββββΌββββΌββββΌββββΌββββΌββββ€\n",
"β\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\n",
"βββββΌββββΌββββΌββββΌββββΌββββΌββββ€\n",
"β\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\n",
"βββββΌββββΌββββΌββββΌββββΌββββΌββββ€\n",
"β\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;33m 1\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\n",
"βββββ΄ββββ΄ββββ΄ββββ΄ββββ΄ββββ΄ββββ\n",
"Steps = 9 If Done = False\n",
"def strategy(board):\n",
" # Simple heuristic: move a tile towards the nearest zero cell.\n",
" n = len(board)\n",
" for i in range(n):\n",
" for j in range(n):\n",
" if board[i][j] != 0:\n",
" # try to move right if possible\n",
" if j+1 < n and board[i][j+1] == 0:\n",
" return \"1\" # move right\n",
" # try upwards\n",
" if i-1 >= 0 and board[i-1][j] == 0:\n",
" return \"0\" # move up\n",
" # try left\n",
" if j-1 >= 0 and board[i][j-1] == 0:\n",
" return \"3\" # move left\n",
" # try downwards\n",
" if i+1 < n and board[i+1][j] == 0:\n",
" return \"2\" # move down\n",
" return \"0\"\n",
"βββββ¬ββββ¬ββββ¬ββββ¬ββββ¬ββββ¬ββββ\n",
"β\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;33m 1\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\n",
"βββββΌββββΌββββΌββββΌββββΌββββΌββββ€\n",
"β\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\n",
"βββββΌββββΌββββΌββββΌββββΌββββΌββββ€\n",
"β\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\n",
"βββββΌββββΌββββΌββββΌββββΌββββΌββββ€\n",
"β\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\n",
"βββββΌββββΌββββΌββββΌββββΌββββΌββββ€\n",
"β\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\n",
"βββββΌββββΌββββΌββββΌββββΌββββΌββββ€\n",
"β\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\n",
"βββββΌββββΌββββΌββββΌββββΌββββΌββββ€\n",
"β\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;33m 1\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\n",
"βββββ΄ββββ΄ββββ΄ββββ΄ββββ΄ββββ΄ββββ\n",
"Exception = list index out of range\n",
"None\n",
"Steps = 9 If Done = False\n",
"def strategy(board):\n",
" \"\"\"\n",
" Determine the best move (\"0\": Up, \"1\": Right, \"2\": Down, \"3\": Left)\n",
" for a 2048 board represented by a list of lists.\n",
" This implementation uses a simple heuristic: count the number of\n",
" empty cells after each potential move and choose the move that\n",
" maximizes this count. It does not simulate future moves.\n",
" \"\"\"\n",
" # Directions: 0=Up,1=Right,2=Down,3=Left\n",
" dirs = [( -1, 0), ( 0, 1), ( 1, 0), ( 0, -1)]\n",
" best_move = None\n",
" best_empty = -1\n",
"\n",
" n = len(board)\n",
" for move, (dx, dy) in enumerate(dirs):\n",
" new_board = [row[:] for row in board] # copy\n",
" changed = False\n",
" for i in range(n):\n",
" for j in range(n):\n",
" x, y = i, j\n",
" # Move the tile in the chosen direction\n",
" while True:\n",
" nx, ny = x + dx, y + dy\n",
" if 0 <= nx < n and 0 <= ny < n and new_board[nx][ny] == 0:\n",
" # Merge if possible\n",
" if new_board[x][y] != 0 and new_board[nx][ny] == 0:\n",
" new_board[nx][ny] = new_board[x][y]\n",
" new_board[x][y] = 0\n",
" changed = True\n",
" x, y = nx, ny\n",
" else:\n",
" break\n",
" # If tile could not move, skip\n",
" # Count empty cells in the resulting board\n",
" empty = sum(row.count(0) for row in new_board)\n",
" if empty > best_empty:\n",
" best_empty = empty\n",
" best_move = str(move)\n",
" return best_move\n",
"βββββ¬ββββ¬ββββ¬ββββ¬ββββ¬ββββ¬ββββ\n",
"β\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;33m 1\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\n",
"βββββΌββββΌββββΌββββΌββββΌββββΌββββ€\n",
"β\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\n",
"βββββΌββββΌββββΌββββΌββββΌββββΌββββ€\n",
"β\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\n",
"βββββΌββββΌββββΌββββΌββββΌββββΌββββ€\n",
"β\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\n",
"βββββΌββββΌββββΌββββΌββββΌββββΌββββ€\n",
"β\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\n",
"βββββΌββββΌββββΌββββΌββββΌββββΌββββ€\n",
"β\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\n",
"βββββΌββββΌββββΌββββΌββββΌββββΌββββ€\n",
"β\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;33m 1\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\n",
"βββββ΄ββββ΄ββββ΄ββββ΄ββββ΄ββββ΄ββββ\n",
"Steps = 2 If Done = False\n",
"def strategy(board):\n",
" n = len(board)\n",
" score = lambda r,c: board[r][c]\n",
" # Count empty cells and total\n",
" empties = sum(board[i][j] == 0 for i in range(n) for j in range(n))\n",
" # Simple heuristic: move left if highest tile on left, else right, else up then down\n",
" # Find position of maximum tile\n",
" max_val = -1\n",
" max_pos = None\n",
" for i in range(n):\n",
" for j in range(n):\n",
" if board[i][j] > max_val:\n",
" max_val = board[i][j]\n",
" max_pos = (i, j)\n",
" # Prefer moving towards the edge with max tile\n",
" i, j = max_pos\n",
" # Prioritize directions that keep max tile towards edge\n",
" if j == 0: return \"0\" # left\n",
" if j == n-1: return \"1\" # right\n",
" if i == 0: return \"2\" # up\n",
" return \"3\" # down\n",
"βββββ¬ββββ¬ββββ¬ββββ¬ββββ¬ββββ¬ββββ\n",
"β\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;33m 1\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\n",
"βββββΌββββΌββββΌββββΌββββΌββββΌββββ€\n",
"β\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\n",
"βββββΌββββΌββββΌββββΌββββΌββββΌββββ€\n",
"β\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\n",
"βββββΌββββΌββββΌββββΌββββΌββββΌββββ€\n",
"β\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\n",
"βββββΌββββΌββββΌββββΌββββΌββββΌββββ€\n",
"β\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\n",
"βββββΌββββΌββββΌββββΌββββΌββββΌββββ€\n",
"β\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\n",
"βββββΌββββΌββββΌββββΌββββΌββββΌββββ€\n",
"β\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;33m 1\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\u001b[38;5;239m .\u001b[0mβ\n",
"βββββ΄ββββ΄ββββ΄ββββ΄ββββ΄ββββ΄ββββ\n"
]
}
],
"source": [
"trainer.train()"
]
},
{
"cell_type": "markdown",
"metadata": {
"id": "tlaUdxC_VHpz"
},
"source": [
"## Testing the Trained Model\n",
"\n",
"Let's generate a strategy from our RL-trained model and see how it differs from the base model:"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"id": "TwZygRdWf8ab"
},
"outputs": [],
"source": [
"text = tokenizer.apply_chat_template(\n",
" [{\"role\": \"user\", \"content\": prompt}],\n",
" tokenize=False,\n",
" add_generation_prompt=True,\n",
" reasoning_effort=\"low\",\n",
")\n",
"\n",
"from transformers import TextStreamer\n",
"\n",
"_ = model.generate(\n",
" **tokenizer(text, return_tensors=\"pt\").to(\"cuda\"),\n",
" temperature=1.0,\n",
" max_new_tokens=1024,\n",
" streamer=TextStreamer(tokenizer, skip_prompt=False),\n",
")"
]
},
{
"cell_type": "markdown",
"metadata": {
"id": "-NUEmHFSYNTp"
},
"source": [
"## Saving the Fine-tuned Model\n",
"\n",
"You can save the trained model in different formats:\n",
"\n",
"- **MXFP4**: OpenAI gpt-oss's native 4-bit precision format\n",
"- **float16**: Standard half-precision for broader compatibility\n",
"\n",
"To push to Hugging Face Hub, you'll need a token from https://huggingface.co/settings/tokens:"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"id": "NjXGTkp7YNtB"
},
"outputs": [],
"source": [
"# Merge and push to hub in mxfp4 4bit format\n",
"if False:\n",
" model.save_pretrained_merged(\"finetuned_model\", tokenizer, save_method=\"mxfp4\")\n",
"if False:\n",
" model.push_to_hub_merged(\"repo_id/repo_name\", tokenizer, token=\"hf...\", save_method=\"mxfp4\")\n",
"\n",
"# Merge and push to hub in 16bit\n",
"if False:\n",
" model.save_pretrained_merged(\"finetuned_model\", tokenizer, save_method=\"merged_16bit\")\n",
"if False: # Pushing to HF Hub\n",
" model.push_to_hub_merged(\"hf/gpt-oss-finetune\", tokenizer, save_method=\"merged_16bit\", token=\"\")"
]
},
{
"cell_type": "markdown",
"metadata": {
"id": "V15Yhj1V9lwG"
},
"source": [
"## Conclusion\n",
"\n",
"Congratulations! You've learned how to apply reinforcement learning to teach an LLM to generate game-playing code. The key concepts covered:\n",
"\n",
"1. **OpenEnv** for standardized access to RL environments\n",
"2. **LoRA** for memory-efficient fine-tuning\n",
"3. **Sandboxed execution** to prevent reward hacking\n",
"4. **Multi-objective reward functions** that balance validity, safety, and performance\n",
"5. **GRPO** for policy optimization without a value network\n",
"\n",
"This pattern extends beyond 2048βyou can adapt it to any task where model outputs can be programmatically evaluated: code synthesis, mathematical proofs, API usage, and more.\n",
"\n",
"### Further Resources\n",
"\n",
"- [OpenAI gpt-oss-20b Model Card](https://huggingface.co/openai/gpt-oss-20b)\n",
"- [OpenEnv Documentation](https://github.com/meta-pytorch/OpenEnv)\n",
"- [TRL GRPO Trainer](https://huggingface.co/docs/trl/main/en/grpo_trainer)\n",
"- [Unsloth RL Guide](https://docs.unsloth.ai/get-started/reinforcement-learning-rl-guide)\n",
"\n",
"---\n",
"\n",
"*This notebook uses [Unsloth](https://github.com/unslothai/unsloth) for memory-efficient training.*\n",
"\n",
"**License:** Apache 2.0"
]
},
{
"cell_type": "markdown",
"metadata": {
"id": "KMwNkyqlB4Ae"
},
"source": []
}
],
"metadata": {
"accelerator": "GPU",
"colab": {
"gpuType": "T4",
"provenance": []
},
"kernelspec": {
"display_name": "Python 3",
"name": "python3"
},
"language_info": {
"name": "python"
},
"widgets": {
"application/vnd.jupyter.widget-state+json": {
"004f28173c3b4fb6a9f8c2068f5db81f": {
"model_module": "@jupyter-widgets/controls",
"model_module_version": "1.5.0",
"model_name": "ProgressStyleModel",
"state": {
"_model_module": "@jupyter-widgets/controls",
"_model_module_version": "1.5.0",
"_model_name": "ProgressStyleModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/base",
"_view_module_version": "1.2.0",
"_view_name": "StyleView",
"bar_color": null,
"description_width": ""
}
},
"02c88a690a384ae183c233b6927aaf57": {
"model_module": "@jupyter-widgets/controls",
"model_module_version": "1.5.0",
"model_name": "DescriptionStyleModel",
"state": {
"_model_module": "@jupyter-widgets/controls",
"_model_module_version": "1.5.0",
"_model_name": "DescriptionStyleModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/base",
"_view_module_version": "1.2.0",
"_view_name": "StyleView",
"description_width": ""
}
},
"050567dccb47456aaac65d118ac60a6b": {
"model_module": "@jupyter-widgets/controls",
"model_module_version": "1.5.0",
"model_name": "HBoxModel",
"state": {
"_dom_classes": [],
"_model_module": "@jupyter-widgets/controls",
"_model_module_version": "1.5.0",
"_model_name": "HBoxModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/controls",
"_view_module_version": "1.5.0",
"_view_name": "HBoxView",
"box_style": "",
"children": [
"IPY_MODEL_ea2f3ca562444c46b50596a1d7cf9030",
"IPY_MODEL_0b7287d482cc44dbb406d71f23f1aea0",
"IPY_MODEL_474c7fe6ef4b430d9826171eded2ebf1"
],
"layout": "IPY_MODEL_12a877304ddf45e49bbdfe056394c3d6"
}
},
"06e420cfa2974f7d8d7ec4b83f064a6e": {
"model_module": "@jupyter-widgets/base",
"model_module_version": "1.2.0",
"model_name": "LayoutModel",
"state": {
"_model_module": "@jupyter-widgets/base",
"_model_module_version": "1.2.0",
"_model_name": "LayoutModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/base",
"_view_module_version": "1.2.0",
"_view_name": "LayoutView",
"align_content": null,
"align_items": null,
"align_self": null,
"border": null,
"bottom": null,
"display": null,
"flex": null,
"flex_flow": null,
"grid_area": null,
"grid_auto_columns": null,
"grid_auto_flow": null,
"grid_auto_rows": null,
"grid_column": null,
"grid_gap": null,
"grid_row": null,
"grid_template_areas": null,
"grid_template_columns": null,
"grid_template_rows": null,
"height": null,
"justify_content": null,
"justify_items": null,
"left": null,
"margin": null,
"max_height": null,
"max_width": null,
"min_height": null,
"min_width": null,
"object_fit": null,
"object_position": null,
"order": null,
"overflow": null,
"overflow_x": null,
"overflow_y": null,
"padding": null,
"right": null,
"top": null,
"visibility": null,
"width": null
}
},
"072060f8bdb54a15baf838f67d376d99": {
"model_module": "@jupyter-widgets/controls",
"model_module_version": "1.5.0",
"model_name": "FloatProgressModel",
"state": {
"_dom_classes": [],
"_model_module": "@jupyter-widgets/controls",
"_model_module_version": "1.5.0",
"_model_name": "FloatProgressModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/controls",
"_view_module_version": "1.5.0",
"_view_name": "ProgressView",
"bar_style": "success",
"description": "",
"description_tooltip": null,
"layout": "IPY_MODEL_29d98af49dd3412f84f5843b937029d1",
"max": 3372033380,
"min": 0,
"orientation": "horizontal",
"style": "IPY_MODEL_93176d6b63284b4e832e0f028be90655",
"value": 3372033380
}
},
"08d8f0cfd7614900a9c9bba888619749": {
"model_module": "@jupyter-widgets/controls",
"model_module_version": "1.5.0",
"model_name": "ProgressStyleModel",
"state": {
"_model_module": "@jupyter-widgets/controls",
"_model_module_version": "1.5.0",
"_model_name": "ProgressStyleModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/base",
"_view_module_version": "1.2.0",
"_view_name": "StyleView",
"bar_color": null,
"description_width": ""
}
},
"0b7287d482cc44dbb406d71f23f1aea0": {
"model_module": "@jupyter-widgets/controls",
"model_module_version": "1.5.0",
"model_name": "FloatProgressModel",
"state": {
"_dom_classes": [],
"_model_module": "@jupyter-widgets/controls",
"_model_module_version": "1.5.0",
"_model_name": "FloatProgressModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/controls",
"_view_module_version": "1.5.0",
"_view_name": "ProgressView",
"bar_style": "success",
"description": "",
"description_tooltip": null,
"layout": "IPY_MODEL_d541fd264d7e4b2691e8efbd993e6ae7",
"max": 446,
"min": 0,
"orientation": "horizontal",
"style": "IPY_MODEL_cbc7bbfe983f4e6696f8dd6b37c50543",
"value": 446
}
},
"0b851acfd32047bfb6bae17d43ccfcb1": {
"model_module": "@jupyter-widgets/controls",
"model_module_version": "1.5.0",
"model_name": "FloatProgressModel",
"state": {
"_dom_classes": [],
"_model_module": "@jupyter-widgets/controls",
"_model_module_version": "1.5.0",
"_model_name": "FloatProgressModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/controls",
"_view_module_version": "1.5.0",
"_view_name": "ProgressView",
"bar_style": "success",
"description": "",
"description_tooltip": null,
"layout": "IPY_MODEL_667192c07a7340a9a72ed25648a0be64",
"max": 3996690997,
"min": 0,
"orientation": "horizontal",
"style": "IPY_MODEL_aa714b1f70e8495b9299b51d6ac4c3c4",
"value": 3996690997
}
},
"0b8fa4ff186a4bfeac18cf6d676e99df": {
"model_module": "@jupyter-widgets/base",
"model_module_version": "1.2.0",
"model_name": "LayoutModel",
"state": {
"_model_module": "@jupyter-widgets/base",
"_model_module_version": "1.2.0",
"_model_name": "LayoutModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/base",
"_view_module_version": "1.2.0",
"_view_name": "LayoutView",
"align_content": null,
"align_items": null,
"align_self": null,
"border": null,
"bottom": null,
"display": null,
"flex": null,
"flex_flow": null,
"grid_area": null,
"grid_auto_columns": null,
"grid_auto_flow": null,
"grid_auto_rows": null,
"grid_column": null,
"grid_gap": null,
"grid_row": null,
"grid_template_areas": null,
"grid_template_columns": null,
"grid_template_rows": null,
"height": null,
"justify_content": null,
"justify_items": null,
"left": null,
"margin": null,
"max_height": null,
"max_width": null,
"min_height": null,
"min_width": null,
"object_fit": null,
"object_position": null,
"order": null,
"overflow": null,
"overflow_x": null,
"overflow_y": null,
"padding": null,
"right": null,
"top": null,
"visibility": null,
"width": null
}
},
"0e49035e0c3a4ee4ab477b475e74ef36": {
"model_module": "@jupyter-widgets/base",
"model_module_version": "1.2.0",
"model_name": "LayoutModel",
"state": {
"_model_module": "@jupyter-widgets/base",
"_model_module_version": "1.2.0",
"_model_name": "LayoutModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/base",
"_view_module_version": "1.2.0",
"_view_name": "LayoutView",
"align_content": null,
"align_items": null,
"align_self": null,
"border": null,
"bottom": null,
"display": null,
"flex": null,
"flex_flow": null,
"grid_area": null,
"grid_auto_columns": null,
"grid_auto_flow": null,
"grid_auto_rows": null,
"grid_column": null,
"grid_gap": null,
"grid_row": null,
"grid_template_areas": null,
"grid_template_columns": null,
"grid_template_rows": null,
"height": null,
"justify_content": null,
"justify_items": null,
"left": null,
"margin": null,
"max_height": null,
"max_width": null,
"min_height": null,
"min_width": null,
"object_fit": null,
"object_position": null,
"order": null,
"overflow": null,
"overflow_x": null,
"overflow_y": null,
"padding": null,
"right": null,
"top": null,
"visibility": null,
"width": null
}
},
"0f09a00375bd4d4c8863fc8fb7d64d61": {
"model_module": "@jupyter-widgets/base",
"model_module_version": "1.2.0",
"model_name": "LayoutModel",
"state": {
"_model_module": "@jupyter-widgets/base",
"_model_module_version": "1.2.0",
"_model_name": "LayoutModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/base",
"_view_module_version": "1.2.0",
"_view_name": "LayoutView",
"align_content": null,
"align_items": null,
"align_self": null,
"border": null,
"bottom": null,
"display": null,
"flex": null,
"flex_flow": null,
"grid_area": null,
"grid_auto_columns": null,
"grid_auto_flow": null,
"grid_auto_rows": null,
"grid_column": null,
"grid_gap": null,
"grid_row": null,
"grid_template_areas": null,
"grid_template_columns": null,
"grid_template_rows": null,
"height": null,
"justify_content": null,
"justify_items": null,
"left": null,
"margin": null,
"max_height": null,
"max_width": null,
"min_height": null,
"min_width": null,
"object_fit": null,
"object_position": null,
"order": null,
"overflow": null,
"overflow_x": null,
"overflow_y": null,
"padding": null,
"right": null,
"top": null,
"visibility": null,
"width": null
}
},
"1055200185004ea2a95a05eb51232501": {
"model_module": "@jupyter-widgets/base",
"model_module_version": "1.2.0",
"model_name": "LayoutModel",
"state": {
"_model_module": "@jupyter-widgets/base",
"_model_module_version": "1.2.0",
"_model_name": "LayoutModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/base",
"_view_module_version": "1.2.0",
"_view_name": "LayoutView",
"align_content": null,
"align_items": null,
"align_self": null,
"border": null,
"bottom": null,
"display": null,
"flex": null,
"flex_flow": null,
"grid_area": null,
"grid_auto_columns": null,
"grid_auto_flow": null,
"grid_auto_rows": null,
"grid_column": null,
"grid_gap": null,
"grid_row": null,
"grid_template_areas": null,
"grid_template_columns": null,
"grid_template_rows": null,
"height": null,
"justify_content": null,
"justify_items": null,
"left": null,
"margin": null,
"max_height": null,
"max_width": null,
"min_height": null,
"min_width": null,
"object_fit": null,
"object_position": null,
"order": null,
"overflow": null,
"overflow_x": null,
"overflow_y": null,
"padding": null,
"right": null,
"top": null,
"visibility": null,
"width": null
}
},
"12a877304ddf45e49bbdfe056394c3d6": {
"model_module": "@jupyter-widgets/base",
"model_module_version": "1.2.0",
"model_name": "LayoutModel",
"state": {
"_model_module": "@jupyter-widgets/base",
"_model_module_version": "1.2.0",
"_model_name": "LayoutModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/base",
"_view_module_version": "1.2.0",
"_view_name": "LayoutView",
"align_content": null,
"align_items": null,
"align_self": null,
"border": null,
"bottom": null,
"display": null,
"flex": null,
"flex_flow": null,
"grid_area": null,
"grid_auto_columns": null,
"grid_auto_flow": null,
"grid_auto_rows": null,
"grid_column": null,
"grid_gap": null,
"grid_row": null,
"grid_template_areas": null,
"grid_template_columns": null,
"grid_template_rows": null,
"height": null,
"justify_content": null,
"justify_items": null,
"left": null,
"margin": null,
"max_height": null,
"max_width": null,
"min_height": null,
"min_width": null,
"object_fit": null,
"object_position": null,
"order": null,
"overflow": null,
"overflow_x": null,
"overflow_y": null,
"padding": null,
"right": null,
"top": null,
"visibility": null,
"width": null
}
},
"18d4cc3fd8ee4e3fbf27c574fd467f20": {
"model_module": "@jupyter-widgets/controls",
"model_module_version": "1.5.0",
"model_name": "DescriptionStyleModel",
"state": {
"_model_module": "@jupyter-widgets/controls",
"_model_module_version": "1.5.0",
"_model_name": "DescriptionStyleModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/base",
"_view_module_version": "1.2.0",
"_view_name": "StyleView",
"description_width": ""
}
},
"1b26eac03fed4c8784bd611474cf4607": {
"model_module": "@jupyter-widgets/controls",
"model_module_version": "1.5.0",
"model_name": "HTMLModel",
"state": {
"_dom_classes": [],
"_model_module": "@jupyter-widgets/controls",
"_model_module_version": "1.5.0",
"_model_name": "HTMLModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/controls",
"_view_module_version": "1.5.0",
"_view_name": "HTMLView",
"description": "",
"description_tooltip": null,
"layout": "IPY_MODEL_b72fc22310714bf0bf6ff4021db5aba8",
"placeholder": "β",
"style": "IPY_MODEL_d2a7fa9dddc240e29330297870159c59",
"value": "Loadingβcheckpointβshards:β100%"
}
},
"1b84d7dc9567474c8587432d48342b71": {
"model_module": "@jupyter-widgets/controls",
"model_module_version": "1.5.0",
"model_name": "HTMLModel",
"state": {
"_dom_classes": [],
"_model_module": "@jupyter-widgets/controls",
"_model_module_version": "1.5.0",
"_model_name": "HTMLModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/controls",
"_view_module_version": "1.5.0",
"_view_name": "HTMLView",
"description": "",
"description_tooltip": null,
"layout": "IPY_MODEL_665f7b7e5496432985ed9f49829f5834",
"placeholder": "β",
"style": "IPY_MODEL_d16dc921c6554bc6b77abcb423721cc8",
"value": "β1.19M/?β[00:00<00:00,β76.2MB/s]"
}
},
"1daa373c890b4ae0a9cf6a3ec325693c": {
"model_module": "@jupyter-widgets/controls",
"model_module_version": "1.5.0",
"model_name": "DescriptionStyleModel",
"state": {
"_model_module": "@jupyter-widgets/controls",
"_model_module_version": "1.5.0",
"_model_name": "DescriptionStyleModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/base",
"_view_module_version": "1.2.0",
"_view_name": "StyleView",
"description_width": ""
}
},
"1ece5fe9597a4e3db2dd96c38995705c": {
"model_module": "@jupyter-widgets/controls",
"model_module_version": "1.5.0",
"model_name": "DescriptionStyleModel",
"state": {
"_model_module": "@jupyter-widgets/controls",
"_model_module_version": "1.5.0",
"_model_name": "DescriptionStyleModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/base",
"_view_module_version": "1.2.0",
"_view_name": "StyleView",
"description_width": ""
}
},
"212c17e3829c4accb30265a3d9ee73dc": {
"model_module": "@jupyter-widgets/base",
"model_module_version": "1.2.0",
"model_name": "LayoutModel",
"state": {
"_model_module": "@jupyter-widgets/base",
"_model_module_version": "1.2.0",
"_model_name": "LayoutModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/base",
"_view_module_version": "1.2.0",
"_view_name": "LayoutView",
"align_content": null,
"align_items": null,
"align_self": null,
"border": null,
"bottom": null,
"display": null,
"flex": null,
"flex_flow": null,
"grid_area": null,
"grid_auto_columns": null,
"grid_auto_flow": null,
"grid_auto_rows": null,
"grid_column": null,
"grid_gap": null,
"grid_row": null,
"grid_template_areas": null,
"grid_template_columns": null,
"grid_template_rows": null,
"height": null,
"justify_content": null,
"justify_items": null,
"left": null,
"margin": null,
"max_height": null,
"max_width": null,
"min_height": null,
"min_width": null,
"object_fit": null,
"object_position": null,
"order": null,
"overflow": null,
"overflow_x": null,
"overflow_y": null,
"padding": null,
"right": null,
"top": null,
"visibility": null,
"width": null
}
},
"2612008cf36949d9a6618a01ac817618": {
"model_module": "@jupyter-widgets/base",
"model_module_version": "1.2.0",
"model_name": "LayoutModel",
"state": {
"_model_module": "@jupyter-widgets/base",
"_model_module_version": "1.2.0",
"_model_name": "LayoutModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/base",
"_view_module_version": "1.2.0",
"_view_name": "LayoutView",
"align_content": null,
"align_items": null,
"align_self": null,
"border": null,
"bottom": null,
"display": null,
"flex": null,
"flex_flow": null,
"grid_area": null,
"grid_auto_columns": null,
"grid_auto_flow": null,
"grid_auto_rows": null,
"grid_column": null,
"grid_gap": null,
"grid_row": null,
"grid_template_areas": null,
"grid_template_columns": null,
"grid_template_rows": null,
"height": null,
"justify_content": null,
"justify_items": null,
"left": null,
"margin": null,
"max_height": null,
"max_width": null,
"min_height": null,
"min_width": null,
"object_fit": null,
"object_position": null,
"order": null,
"overflow": null,
"overflow_x": null,
"overflow_y": null,
"padding": null,
"right": null,
"top": null,
"visibility": null,
"width": null
}
},
"28300c16023d4ad9a59784baea2f57aa": {
"model_module": "@jupyter-widgets/base",
"model_module_version": "1.2.0",
"model_name": "LayoutModel",
"state": {
"_model_module": "@jupyter-widgets/base",
"_model_module_version": "1.2.0",
"_model_name": "LayoutModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/base",
"_view_module_version": "1.2.0",
"_view_name": "LayoutView",
"align_content": null,
"align_items": null,
"align_self": null,
"border": null,
"bottom": null,
"display": null,
"flex": null,
"flex_flow": null,
"grid_area": null,
"grid_auto_columns": null,
"grid_auto_flow": null,
"grid_auto_rows": null,
"grid_column": null,
"grid_gap": null,
"grid_row": null,
"grid_template_areas": null,
"grid_template_columns": null,
"grid_template_rows": null,
"height": null,
"justify_content": null,
"justify_items": null,
"left": null,
"margin": null,
"max_height": null,
"max_width": null,
"min_height": null,
"min_width": null,
"object_fit": null,
"object_position": null,
"order": null,
"overflow": null,
"overflow_x": null,
"overflow_y": null,
"padding": null,
"right": null,
"top": null,
"visibility": null,
"width": "20px"
}
},
"297bdff1add5414893319b185cb15da6": {
"model_module": "@jupyter-widgets/controls",
"model_module_version": "1.5.0",
"model_name": "HBoxModel",
"state": {
"_dom_classes": [],
"_model_module": "@jupyter-widgets/controls",
"_model_module_version": "1.5.0",
"_model_name": "HBoxModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/controls",
"_view_module_version": "1.5.0",
"_view_name": "HBoxView",
"box_style": "",
"children": [
"IPY_MODEL_362947c7e102474cbf560f51e713bdff",
"IPY_MODEL_7f63ff3e87aa4b86a4f8e64785d1d34c",
"IPY_MODEL_cca7d922b85449a1b0c5c025b65fba10"
],
"layout": "IPY_MODEL_5520c59f24cd414092bf5f952425611d"
}
},
"29d98af49dd3412f84f5843b937029d1": {
"model_module": "@jupyter-widgets/base",
"model_module_version": "1.2.0",
"model_name": "LayoutModel",
"state": {
"_model_module": "@jupyter-widgets/base",
"_model_module_version": "1.2.0",
"_model_name": "LayoutModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/base",
"_view_module_version": "1.2.0",
"_view_name": "LayoutView",
"align_content": null,
"align_items": null,
"align_self": null,
"border": null,
"bottom": null,
"display": null,
"flex": null,
"flex_flow": null,
"grid_area": null,
"grid_auto_columns": null,
"grid_auto_flow": null,
"grid_auto_rows": null,
"grid_column": null,
"grid_gap": null,
"grid_row": null,
"grid_template_areas": null,
"grid_template_columns": null,
"grid_template_rows": null,
"height": null,
"justify_content": null,
"justify_items": null,
"left": null,
"margin": null,
"max_height": null,
"max_width": null,
"min_height": null,
"min_width": null,
"object_fit": null,
"object_position": null,
"order": null,
"overflow": null,
"overflow_x": null,
"overflow_y": null,
"padding": null,
"right": null,
"top": null,
"visibility": null,
"width": null
}
},
"2d91f25a8d0b4dd39dc320b2cf17fc0b": {
"model_module": "@jupyter-widgets/controls",
"model_module_version": "1.5.0",
"model_name": "FloatProgressModel",
"state": {
"_dom_classes": [],
"_model_module": "@jupyter-widgets/controls",
"_model_module_version": "1.5.0",
"_model_name": "FloatProgressModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/controls",
"_view_module_version": "1.5.0",
"_view_name": "ProgressView",
"bar_style": "success",
"description": "",
"description_tooltip": null,
"layout": "IPY_MODEL_88aa58551344410a91b07af480d6ab53",
"max": 1,
"min": 0,
"orientation": "horizontal",
"style": "IPY_MODEL_4f38070c09354406928c5e7be6cff3fd",
"value": 1
}
},
"2f57c8e713b94c8692837b4e17c9e983": {
"model_module": "@jupyter-widgets/base",
"model_module_version": "1.2.0",
"model_name": "LayoutModel",
"state": {
"_model_module": "@jupyter-widgets/base",
"_model_module_version": "1.2.0",
"_model_name": "LayoutModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/base",
"_view_module_version": "1.2.0",
"_view_name": "LayoutView",
"align_content": null,
"align_items": null,
"align_self": null,
"border": null,
"bottom": null,
"display": null,
"flex": null,
"flex_flow": null,
"grid_area": null,
"grid_auto_columns": null,
"grid_auto_flow": null,
"grid_auto_rows": null,
"grid_column": null,
"grid_gap": null,
"grid_row": null,
"grid_template_areas": null,
"grid_template_columns": null,
"grid_template_rows": null,
"height": null,
"justify_content": null,
"justify_items": null,
"left": null,
"margin": null,
"max_height": null,
"max_width": null,
"min_height": null,
"min_width": null,
"object_fit": null,
"object_position": null,
"order": null,
"overflow": null,
"overflow_x": null,
"overflow_y": null,
"padding": null,
"right": null,
"top": null,
"visibility": null,
"width": null
}
},
"31afdb187d2a44d8b3a101fa18543c13": {
"model_module": "@jupyter-widgets/controls",
"model_module_version": "1.5.0",
"model_name": "DescriptionStyleModel",
"state": {
"_model_module": "@jupyter-widgets/controls",
"_model_module_version": "1.5.0",
"_model_name": "DescriptionStyleModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/base",
"_view_module_version": "1.2.0",
"_view_name": "StyleView",
"description_width": ""
}
},
"3371a1da5d0e426bb6cc02a6c383dd6f": {
"model_module": "@jupyter-widgets/controls",
"model_module_version": "1.5.0",
"model_name": "ProgressStyleModel",
"state": {
"_model_module": "@jupyter-widgets/controls",
"_model_module_version": "1.5.0",
"_model_name": "ProgressStyleModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/base",
"_view_module_version": "1.2.0",
"_view_name": "StyleView",
"bar_color": null,
"description_width": ""
}
},
"3566e9058ebc45498b42e521f2314365": {
"model_module": "@jupyter-widgets/controls",
"model_module_version": "1.5.0",
"model_name": "DescriptionStyleModel",
"state": {
"_model_module": "@jupyter-widgets/controls",
"_model_module_version": "1.5.0",
"_model_name": "DescriptionStyleModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/base",
"_view_module_version": "1.2.0",
"_view_name": "StyleView",
"description_width": ""
}
},
"362947c7e102474cbf560f51e713bdff": {
"model_module": "@jupyter-widgets/controls",
"model_module_version": "1.5.0",
"model_name": "HTMLModel",
"state": {
"_dom_classes": [],
"_model_module": "@jupyter-widgets/controls",
"_model_module_version": "1.5.0",
"_model_name": "HTMLModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/controls",
"_view_module_version": "1.5.0",
"_view_name": "HTMLView",
"description": "",
"description_tooltip": null,
"layout": "IPY_MODEL_b1dcd2f908344949af01dab5a244e458",
"placeholder": "β",
"style": "IPY_MODEL_9e6f46ddb61943f4a168d70a209a7ddc",
"value": "model-00004-of-00004.safetensors:β100%"
}
},
"383e9b4b74e34cae96c1f46f41591b82": {
"model_module": "@jupyter-widgets/base",
"model_module_version": "1.2.0",
"model_name": "LayoutModel",
"state": {
"_model_module": "@jupyter-widgets/base",
"_model_module_version": "1.2.0",
"_model_name": "LayoutModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/base",
"_view_module_version": "1.2.0",
"_view_name": "LayoutView",
"align_content": null,
"align_items": null,
"align_self": null,
"border": null,
"bottom": null,
"display": null,
"flex": null,
"flex_flow": null,
"grid_area": null,
"grid_auto_columns": null,
"grid_auto_flow": null,
"grid_auto_rows": null,
"grid_column": null,
"grid_gap": null,
"grid_row": null,
"grid_template_areas": null,
"grid_template_columns": null,
"grid_template_rows": null,
"height": null,
"justify_content": null,
"justify_items": null,
"left": null,
"margin": null,
"max_height": null,
"max_width": null,
"min_height": null,
"min_width": null,
"object_fit": null,
"object_position": null,
"order": null,
"overflow": null,
"overflow_x": null,
"overflow_y": null,
"padding": null,
"right": null,
"top": null,
"visibility": null,
"width": null
}
},
"3c2e00b9d20a4c9ea5b850b776752fd2": {
"model_module": "@jupyter-widgets/controls",
"model_module_version": "1.5.0",
"model_name": "HBoxModel",
"state": {
"_dom_classes": [],
"_model_module": "@jupyter-widgets/controls",
"_model_module_version": "1.5.0",
"_model_name": "HBoxModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/controls",
"_view_module_version": "1.5.0",
"_view_name": "HBoxView",
"box_style": "",
"children": [
"IPY_MODEL_7c29e5f727ec4b608c06d0487a2c9e53",
"IPY_MODEL_4beae5415d0647e2898a83313a08ea94",
"IPY_MODEL_62cd4ccc430549e7a2c156222d47ebeb"
],
"layout": "IPY_MODEL_4691273248984fdea29d83ec0a246cd9"
}
},
"3e3ce50c437a412f9cc2bedb697648f7": {
"model_module": "@jupyter-widgets/controls",
"model_module_version": "1.5.0",
"model_name": "ProgressStyleModel",
"state": {
"_model_module": "@jupyter-widgets/controls",
"_model_module_version": "1.5.0",
"_model_name": "ProgressStyleModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/base",
"_view_module_version": "1.2.0",
"_view_name": "StyleView",
"bar_color": null,
"description_width": ""
}
},
"3f589cf3cb804ed29ba322e4fa10c511": {
"model_module": "@jupyter-widgets/controls",
"model_module_version": "1.5.0",
"model_name": "DescriptionStyleModel",
"state": {
"_model_module": "@jupyter-widgets/controls",
"_model_module_version": "1.5.0",
"_model_name": "DescriptionStyleModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/base",
"_view_module_version": "1.2.0",
"_view_name": "StyleView",
"description_width": ""
}
},
"419e4369b36644d3abec159511a88ad8": {
"model_module": "@jupyter-widgets/controls",
"model_module_version": "1.5.0",
"model_name": "HBoxModel",
"state": {
"_dom_classes": [],
"_model_module": "@jupyter-widgets/controls",
"_model_module_version": "1.5.0",
"_model_name": "HBoxModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/controls",
"_view_module_version": "1.5.0",
"_view_name": "HBoxView",
"box_style": "",
"children": [
"IPY_MODEL_eee0d2b6eb6047d8a4001f4999dcdc35",
"IPY_MODEL_2d91f25a8d0b4dd39dc320b2cf17fc0b",
"IPY_MODEL_1b84d7dc9567474c8587432d48342b71"
],
"layout": "IPY_MODEL_f34cadfaf9bb46729aeeff9492ba9026"
}
},
"41ee8407344d402997b0574e0ae26c77": {
"model_module": "@jupyter-widgets/controls",
"model_module_version": "1.5.0",
"model_name": "DescriptionStyleModel",
"state": {
"_model_module": "@jupyter-widgets/controls",
"_model_module_version": "1.5.0",
"_model_name": "DescriptionStyleModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/base",
"_view_module_version": "1.2.0",
"_view_name": "StyleView",
"description_width": ""
}
},
"4691273248984fdea29d83ec0a246cd9": {
"model_module": "@jupyter-widgets/base",
"model_module_version": "1.2.0",
"model_name": "LayoutModel",
"state": {
"_model_module": "@jupyter-widgets/base",
"_model_module_version": "1.2.0",
"_model_name": "LayoutModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/base",
"_view_module_version": "1.2.0",
"_view_name": "LayoutView",
"align_content": null,
"align_items": null,
"align_self": null,
"border": null,
"bottom": null,
"display": null,
"flex": null,
"flex_flow": null,
"grid_area": null,
"grid_auto_columns": null,
"grid_auto_flow": null,
"grid_auto_rows": null,
"grid_column": null,
"grid_gap": null,
"grid_row": null,
"grid_template_areas": null,
"grid_template_columns": null,
"grid_template_rows": null,
"height": null,
"justify_content": null,
"justify_items": null,
"left": null,
"margin": null,
"max_height": null,
"max_width": null,
"min_height": null,
"min_width": null,
"object_fit": null,
"object_position": null,
"order": null,
"overflow": null,
"overflow_x": null,
"overflow_y": null,
"padding": null,
"right": null,
"top": null,
"visibility": null,
"width": null
}
},
"46cb3593b37c4cb9b4bac422bc5809c8": {
"model_module": "@jupyter-widgets/controls",
"model_module_version": "1.5.0",
"model_name": "ProgressStyleModel",
"state": {
"_model_module": "@jupyter-widgets/controls",
"_model_module_version": "1.5.0",
"_model_name": "ProgressStyleModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/base",
"_view_module_version": "1.2.0",
"_view_name": "StyleView",
"bar_color": null,
"description_width": ""
}
},
"474c7fe6ef4b430d9826171eded2ebf1": {
"model_module": "@jupyter-widgets/controls",
"model_module_version": "1.5.0",
"model_name": "HTMLModel",
"state": {
"_dom_classes": [],
"_model_module": "@jupyter-widgets/controls",
"_model_module_version": "1.5.0",
"_model_name": "HTMLModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/controls",
"_view_module_version": "1.5.0",
"_view_name": "HTMLView",
"description": "",
"description_tooltip": null,
"layout": "IPY_MODEL_f290b17e3cd9487b9b97d54d6cec9efc",
"placeholder": "β",
"style": "IPY_MODEL_18d4cc3fd8ee4e3fbf27c574fd467f20",
"value": "β446/446β[00:00<00:00,β50.9kB/s]"
}
},
"48f65e25acd84b0cb582de66753215da": {
"model_module": "@jupyter-widgets/controls",
"model_module_version": "1.5.0",
"model_name": "FloatProgressModel",
"state": {
"_dom_classes": [],
"_model_module": "@jupyter-widgets/controls",
"_model_module_version": "1.5.0",
"_model_name": "FloatProgressModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/controls",
"_view_module_version": "1.5.0",
"_view_name": "ProgressView",
"bar_style": "success",
"description": "",
"description_tooltip": null,
"layout": "IPY_MODEL_383e9b4b74e34cae96c1f46f41591b82",
"max": 165,
"min": 0,
"orientation": "horizontal",
"style": "IPY_MODEL_46cb3593b37c4cb9b4bac422bc5809c8",
"value": 165
}
},
"4ba91b8d008e483d89f16f204326f6b6": {
"model_module": "@jupyter-widgets/base",
"model_module_version": "1.2.0",
"model_name": "LayoutModel",
"state": {
"_model_module": "@jupyter-widgets/base",
"_model_module_version": "1.2.0",
"_model_name": "LayoutModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/base",
"_view_module_version": "1.2.0",
"_view_name": "LayoutView",
"align_content": null,
"align_items": null,
"align_self": null,
"border": null,
"bottom": null,
"display": null,
"flex": null,
"flex_flow": null,
"grid_area": null,
"grid_auto_columns": null,
"grid_auto_flow": null,
"grid_auto_rows": null,
"grid_column": null,
"grid_gap": null,
"grid_row": null,
"grid_template_areas": null,
"grid_template_columns": null,
"grid_template_rows": null,
"height": null,
"justify_content": null,
"justify_items": null,
"left": null,
"margin": null,
"max_height": null,
"max_width": null,
"min_height": null,
"min_width": null,
"object_fit": null,
"object_position": null,
"order": null,
"overflow": null,
"overflow_x": null,
"overflow_y": null,
"padding": null,
"right": null,
"top": null,
"visibility": null,
"width": null
}
},
"4bc16bd2399a43fe85967131af7f846a": {
"model_module": "@jupyter-widgets/controls",
"model_module_version": "1.5.0",
"model_name": "DescriptionStyleModel",
"state": {
"_model_module": "@jupyter-widgets/controls",
"_model_module_version": "1.5.0",
"_model_name": "DescriptionStyleModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/base",
"_view_module_version": "1.2.0",
"_view_name": "StyleView",
"description_width": ""
}
},
"4beae5415d0647e2898a83313a08ea94": {
"model_module": "@jupyter-widgets/controls",
"model_module_version": "1.5.0",
"model_name": "FloatProgressModel",
"state": {
"_dom_classes": [],
"_model_module": "@jupyter-widgets/controls",
"_model_module_version": "1.5.0",
"_model_name": "FloatProgressModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/controls",
"_view_module_version": "1.5.0",
"_view_name": "ProgressView",
"bar_style": "success",
"description": "",
"description_tooltip": null,
"layout": "IPY_MODEL_a6a122064bc340868b5e0e11afa9c42f",
"max": 1,
"min": 0,
"orientation": "horizontal",
"style": "IPY_MODEL_3371a1da5d0e426bb6cc02a6c383dd6f",
"value": 1
}
},
"4ca56d8605864a438290152268bfc686": {
"model_module": "@jupyter-widgets/controls",
"model_module_version": "1.5.0",
"model_name": "FloatProgressModel",
"state": {
"_dom_classes": [],
"_model_module": "@jupyter-widgets/controls",
"_model_module_version": "1.5.0",
"_model_name": "FloatProgressModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/controls",
"_view_module_version": "1.5.0",
"_view_name": "ProgressView",
"bar_style": "success",
"description": "",
"description_tooltip": null,
"layout": "IPY_MODEL_2612008cf36949d9a6618a01ac817618",
"max": 3998751275,
"min": 0,
"orientation": "horizontal",
"style": "IPY_MODEL_3e3ce50c437a412f9cc2bedb697648f7",
"value": 3998751275
}
},
"4dc823fcd0dd4eaaa2e8aaff0daa9ad1": {
"model_module": "@jupyter-widgets/controls",
"model_module_version": "1.5.0",
"model_name": "HBoxModel",
"state": {
"_dom_classes": [],
"_model_module": "@jupyter-widgets/controls",
"_model_module_version": "1.5.0",
"_model_name": "HBoxModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/controls",
"_view_module_version": "1.5.0",
"_view_name": "HBoxView",
"box_style": "",
"children": [
"IPY_MODEL_1b26eac03fed4c8784bd611474cf4607",
"IPY_MODEL_a24e2cfbef794d35a0e22753352caa15",
"IPY_MODEL_8368e4420e814c6f9be30994b69c66ee"
],
"layout": "IPY_MODEL_eb8c197ce1fc41f78531e5e73ae14a89"
}
},
"4e63263fc27b4f07b4f6abffba082379": {
"model_module": "@jupyter-widgets/controls",
"model_module_version": "1.5.0",
"model_name": "HBoxModel",
"state": {
"_dom_classes": [],
"_model_module": "@jupyter-widgets/controls",
"_model_module_version": "1.5.0",
"_model_name": "HBoxModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/controls",
"_view_module_version": "1.5.0",
"_view_name": "HBoxView",
"box_style": "",
"children": [
"IPY_MODEL_eb13ad96565a44519e7cab9ce9483b90",
"IPY_MODEL_0b851acfd32047bfb6bae17d43ccfcb1",
"IPY_MODEL_d4c72002b5fe44d3ad7ae67f5536c889"
],
"layout": "IPY_MODEL_a1e042e5b8ad4b028cc28ac54924207d"
}
},
"4f29591af0d64d398515479b032a1b3d": {
"model_module": "@jupyter-widgets/controls",
"model_module_version": "1.5.0",
"model_name": "DescriptionStyleModel",
"state": {
"_model_module": "@jupyter-widgets/controls",
"_model_module_version": "1.5.0",
"_model_name": "DescriptionStyleModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/base",
"_view_module_version": "1.2.0",
"_view_name": "StyleView",
"description_width": ""
}
},
"4f38070c09354406928c5e7be6cff3fd": {
"model_module": "@jupyter-widgets/controls",
"model_module_version": "1.5.0",
"model_name": "ProgressStyleModel",
"state": {
"_model_module": "@jupyter-widgets/controls",
"_model_module_version": "1.5.0",
"_model_name": "ProgressStyleModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/base",
"_view_module_version": "1.2.0",
"_view_name": "StyleView",
"bar_color": null,
"description_width": ""
}
},
"52e9a0ea76df4fd8822ccadadaadb501": {
"model_module": "@jupyter-widgets/controls",
"model_module_version": "1.5.0",
"model_name": "DescriptionStyleModel",
"state": {
"_model_module": "@jupyter-widgets/controls",
"_model_module_version": "1.5.0",
"_model_name": "DescriptionStyleModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/base",
"_view_module_version": "1.2.0",
"_view_name": "StyleView",
"description_width": ""
}
},
"5371b2fad7b04f97bd8f4671d844d2cb": {
"model_module": "@jupyter-widgets/controls",
"model_module_version": "1.5.0",
"model_name": "HTMLModel",
"state": {
"_dom_classes": [],
"_model_module": "@jupyter-widgets/controls",
"_model_module_version": "1.5.0",
"_model_name": "HTMLModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/controls",
"_view_module_version": "1.5.0",
"_view_name": "HTMLView",
"description": "",
"description_tooltip": null,
"layout": "IPY_MODEL_9c2371c32afe46519ee53427ea42bc9a",
"placeholder": "β",
"style": "IPY_MODEL_f9d4672fb86b4b4e9c3e9068dc479e5b",
"value": "β3.37G/3.37Gβ[00:20<00:00,β60.9MB/s]"
}
},
"5483233a9b224f3c8eb9337e4ed82314": {
"model_module": "@jupyter-widgets/controls",
"model_module_version": "1.5.0",
"model_name": "DescriptionStyleModel",
"state": {
"_model_module": "@jupyter-widgets/controls",
"_model_module_version": "1.5.0",
"_model_name": "DescriptionStyleModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/base",
"_view_module_version": "1.2.0",
"_view_name": "StyleView",
"description_width": ""
}
},
"5520c59f24cd414092bf5f952425611d": {
"model_module": "@jupyter-widgets/base",
"model_module_version": "1.2.0",
"model_name": "LayoutModel",
"state": {
"_model_module": "@jupyter-widgets/base",
"_model_module_version": "1.2.0",
"_model_name": "LayoutModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/base",
"_view_module_version": "1.2.0",
"_view_name": "LayoutView",
"align_content": null,
"align_items": null,
"align_self": null,
"border": null,
"bottom": null,
"display": null,
"flex": null,
"flex_flow": null,
"grid_area": null,
"grid_auto_columns": null,
"grid_auto_flow": null,
"grid_auto_rows": null,
"grid_column": null,
"grid_gap": null,
"grid_row": null,
"grid_template_areas": null,
"grid_template_columns": null,
"grid_template_rows": null,
"height": null,
"justify_content": null,
"justify_items": null,
"left": null,
"margin": null,
"max_height": null,
"max_width": null,
"min_height": null,
"min_width": null,
"object_fit": null,
"object_position": null,
"order": null,
"overflow": null,
"overflow_x": null,
"overflow_y": null,
"padding": null,
"right": null,
"top": null,
"visibility": null,
"width": null
}
},
"56b30cc150924879abfc138427f4ca98": {
"model_module": "@jupyter-widgets/base",
"model_module_version": "1.2.0",
"model_name": "LayoutModel",
"state": {
"_model_module": "@jupyter-widgets/base",
"_model_module_version": "1.2.0",
"_model_name": "LayoutModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/base",
"_view_module_version": "1.2.0",
"_view_name": "LayoutView",
"align_content": null,
"align_items": null,
"align_self": null,
"border": null,
"bottom": null,
"display": null,
"flex": null,
"flex_flow": null,
"grid_area": null,
"grid_auto_columns": null,
"grid_auto_flow": null,
"grid_auto_rows": null,
"grid_column": null,
"grid_gap": null,
"grid_row": null,
"grid_template_areas": null,
"grid_template_columns": null,
"grid_template_rows": null,
"height": null,
"justify_content": null,
"justify_items": null,
"left": null,
"margin": null,
"max_height": null,
"max_width": null,
"min_height": null,
"min_width": null,
"object_fit": null,
"object_position": null,
"order": null,
"overflow": null,
"overflow_x": null,
"overflow_y": null,
"padding": null,
"right": null,
"top": null,
"visibility": null,
"width": null
}
},
"5d1e2fdbf7a2409abbafb63e4b160668": {
"model_module": "@jupyter-widgets/controls",
"model_module_version": "1.5.0",
"model_name": "HBoxModel",
"state": {
"_dom_classes": [],
"_model_module": "@jupyter-widgets/controls",
"_model_module_version": "1.5.0",
"_model_name": "HBoxModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/controls",
"_view_module_version": "1.5.0",
"_view_name": "HBoxView",
"box_style": "",
"children": [
"IPY_MODEL_a4c19dc98fe943e09a26a60d23c8ff01",
"IPY_MODEL_8f5799610318490492ff5aba76be3d1a",
"IPY_MODEL_e78534b135d2465c83e3be614b71c8a4"
],
"layout": "IPY_MODEL_2f57c8e713b94c8692837b4e17c9e983"
}
},
"62cd4ccc430549e7a2c156222d47ebeb": {
"model_module": "@jupyter-widgets/controls",
"model_module_version": "1.5.0",
"model_name": "HTMLModel",
"state": {
"_dom_classes": [],
"_model_module": "@jupyter-widgets/controls",
"_model_module_version": "1.5.0",
"_model_name": "HTMLModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/controls",
"_view_module_version": "1.5.0",
"_view_name": "HTMLView",
"description": "",
"description_tooltip": null,
"layout": "IPY_MODEL_bedc42e908454f1494768194b43b2964",
"placeholder": "β",
"style": "IPY_MODEL_41ee8407344d402997b0574e0ae26c77",
"value": "β22.8k/?β[00:00<00:00,β1.59MB/s]"
}
},
"665f7b7e5496432985ed9f49829f5834": {
"model_module": "@jupyter-widgets/base",
"model_module_version": "1.2.0",
"model_name": "LayoutModel",
"state": {
"_model_module": "@jupyter-widgets/base",
"_model_module_version": "1.2.0",
"_model_name": "LayoutModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/base",
"_view_module_version": "1.2.0",
"_view_name": "LayoutView",
"align_content": null,
"align_items": null,
"align_self": null,
"border": null,
"bottom": null,
"display": null,
"flex": null,
"flex_flow": null,
"grid_area": null,
"grid_auto_columns": null,
"grid_auto_flow": null,
"grid_auto_rows": null,
"grid_column": null,
"grid_gap": null,
"grid_row": null,
"grid_template_areas": null,
"grid_template_columns": null,
"grid_template_rows": null,
"height": null,
"justify_content": null,
"justify_items": null,
"left": null,
"margin": null,
"max_height": null,
"max_width": null,
"min_height": null,
"min_width": null,
"object_fit": null,
"object_position": null,
"order": null,
"overflow": null,
"overflow_x": null,
"overflow_y": null,
"padding": null,
"right": null,
"top": null,
"visibility": null,
"width": null
}
},
"667192c07a7340a9a72ed25648a0be64": {
"model_module": "@jupyter-widgets/base",
"model_module_version": "1.2.0",
"model_name": "LayoutModel",
"state": {
"_model_module": "@jupyter-widgets/base",
"_model_module_version": "1.2.0",
"_model_name": "LayoutModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/base",
"_view_module_version": "1.2.0",
"_view_name": "LayoutView",
"align_content": null,
"align_items": null,
"align_self": null,
"border": null,
"bottom": null,
"display": null,
"flex": null,
"flex_flow": null,
"grid_area": null,
"grid_auto_columns": null,
"grid_auto_flow": null,
"grid_auto_rows": null,
"grid_column": null,
"grid_gap": null,
"grid_row": null,
"grid_template_areas": null,
"grid_template_columns": null,
"grid_template_rows": null,
"height": null,
"justify_content": null,
"justify_items": null,
"left": null,
"margin": null,
"max_height": null,
"max_width": null,
"min_height": null,
"min_width": null,
"object_fit": null,
"object_position": null,
"order": null,
"overflow": null,
"overflow_x": null,
"overflow_y": null,
"padding": null,
"right": null,
"top": null,
"visibility": null,
"width": null
}
},
"6af6de3285684e76b320571b44af5fc1": {
"model_module": "@jupyter-widgets/controls",
"model_module_version": "1.5.0",
"model_name": "HBoxModel",
"state": {
"_dom_classes": [],
"_model_module": "@jupyter-widgets/controls",
"_model_module_version": "1.5.0",
"_model_name": "HBoxModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/controls",
"_view_module_version": "1.5.0",
"_view_name": "HBoxView",
"box_style": "",
"children": [
"IPY_MODEL_f7cc1614e13d4d22b83f787b20407a5f",
"IPY_MODEL_072060f8bdb54a15baf838f67d376d99",
"IPY_MODEL_5371b2fad7b04f97bd8f4671d844d2cb"
],
"layout": "IPY_MODEL_b10d25fb43eb42198abf71c4e326bcff"
}
},
"6d77c8dcb28240f7b860571d11f8b9af": {
"model_module": "@jupyter-widgets/base",
"model_module_version": "1.2.0",
"model_name": "LayoutModel",
"state": {
"_model_module": "@jupyter-widgets/base",
"_model_module_version": "1.2.0",
"_model_name": "LayoutModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/base",
"_view_module_version": "1.2.0",
"_view_name": "LayoutView",
"align_content": null,
"align_items": null,
"align_self": null,
"border": null,
"bottom": null,
"display": null,
"flex": null,
"flex_flow": null,
"grid_area": null,
"grid_auto_columns": null,
"grid_auto_flow": null,
"grid_auto_rows": null,
"grid_column": null,
"grid_gap": null,
"grid_row": null,
"grid_template_areas": null,
"grid_template_columns": null,
"grid_template_rows": null,
"height": null,
"justify_content": null,
"justify_items": null,
"left": null,
"margin": null,
"max_height": null,
"max_width": null,
"min_height": null,
"min_width": null,
"object_fit": null,
"object_position": null,
"order": null,
"overflow": null,
"overflow_x": null,
"overflow_y": null,
"padding": null,
"right": null,
"top": null,
"visibility": null,
"width": null
}
},
"754f2452fbe14c7098215ec810ffbf14": {
"model_module": "@jupyter-widgets/controls",
"model_module_version": "1.5.0",
"model_name": "DescriptionStyleModel",
"state": {
"_model_module": "@jupyter-widgets/controls",
"_model_module_version": "1.5.0",
"_model_name": "DescriptionStyleModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/base",
"_view_module_version": "1.2.0",
"_view_name": "StyleView",
"description_width": ""
}
},
"7c29e5f727ec4b608c06d0487a2c9e53": {
"model_module": "@jupyter-widgets/controls",
"model_module_version": "1.5.0",
"model_name": "HTMLModel",
"state": {
"_dom_classes": [],
"_model_module": "@jupyter-widgets/controls",
"_model_module_version": "1.5.0",
"_model_name": "HTMLModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/controls",
"_view_module_version": "1.5.0",
"_view_name": "HTMLView",
"description": "",
"description_tooltip": null,
"layout": "IPY_MODEL_ae3819cd042f43babef24199081bb97f",
"placeholder": "β",
"style": "IPY_MODEL_52e9a0ea76df4fd8822ccadadaadb501",
"value": "tokenizer_config.json:β"
}
},
"7c52841c7e714173bfd526b0a625bc9d": {
"model_module": "@jupyter-widgets/controls",
"model_module_version": "1.5.0",
"model_name": "HTMLModel",
"state": {
"_dom_classes": [],
"_model_module": "@jupyter-widgets/controls",
"_model_module_version": "1.5.0",
"_model_name": "HTMLModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/controls",
"_view_module_version": "1.5.0",
"_view_name": "HTMLView",
"description": "",
"description_tooltip": null,
"layout": "IPY_MODEL_ae9728c04b974af29460ce5179a9edba",
"placeholder": "β",
"style": "IPY_MODEL_754f2452fbe14c7098215ec810ffbf14",
"value": "β165/165β[00:00<00:00,β16.4kB/s]"
}
},
"7c7d40163ecc4dae8a2c54af21de4661": {
"model_module": "@jupyter-widgets/controls",
"model_module_version": "1.5.0",
"model_name": "DescriptionStyleModel",
"state": {
"_model_module": "@jupyter-widgets/controls",
"_model_module_version": "1.5.0",
"_model_name": "DescriptionStyleModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/base",
"_view_module_version": "1.2.0",
"_view_name": "StyleView",
"description_width": ""
}
},
"7ce0f239a8514923b383f738bc0c9899": {
"model_module": "@jupyter-widgets/base",
"model_module_version": "1.2.0",
"model_name": "LayoutModel",
"state": {
"_model_module": "@jupyter-widgets/base",
"_model_module_version": "1.2.0",
"_model_name": "LayoutModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/base",
"_view_module_version": "1.2.0",
"_view_name": "LayoutView",
"align_content": null,
"align_items": null,
"align_self": null,
"border": null,
"bottom": null,
"display": null,
"flex": null,
"flex_flow": null,
"grid_area": null,
"grid_auto_columns": null,
"grid_auto_flow": null,
"grid_auto_rows": null,
"grid_column": null,
"grid_gap": null,
"grid_row": null,
"grid_template_areas": null,
"grid_template_columns": null,
"grid_template_rows": null,
"height": null,
"justify_content": null,
"justify_items": null,
"left": null,
"margin": null,
"max_height": null,
"max_width": null,
"min_height": null,
"min_width": null,
"object_fit": null,
"object_position": null,
"order": null,
"overflow": null,
"overflow_x": null,
"overflow_y": null,
"padding": null,
"right": null,
"top": null,
"visibility": null,
"width": null
}
},
"7f63ff3e87aa4b86a4f8e64785d1d34c": {
"model_module": "@jupyter-widgets/controls",
"model_module_version": "1.5.0",
"model_name": "FloatProgressModel",
"state": {
"_dom_classes": [],
"_model_module": "@jupyter-widgets/controls",
"_model_module_version": "1.5.0",
"_model_name": "FloatProgressModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/controls",
"_view_module_version": "1.5.0",
"_view_name": "ProgressView",
"bar_style": "success",
"description": "",
"description_tooltip": null,
"layout": "IPY_MODEL_ae79b9a378ee4218beddf77ac9af6de7",
"max": 1158267008,
"min": 0,
"orientation": "horizontal",
"style": "IPY_MODEL_e6d63cf58647443b9749195ec0579d87",
"value": 1158267008
}
},
"8368e4420e814c6f9be30994b69c66ee": {
"model_module": "@jupyter-widgets/controls",
"model_module_version": "1.5.0",
"model_name": "HTMLModel",
"state": {
"_dom_classes": [],
"_model_module": "@jupyter-widgets/controls",
"_model_module_version": "1.5.0",
"_model_name": "HTMLModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/controls",
"_view_module_version": "1.5.0",
"_view_name": "HTMLView",
"description": "",
"description_tooltip": null,
"layout": "IPY_MODEL_d1cea390ecaa4583a698278fa3a438c9",
"placeholder": "β",
"style": "IPY_MODEL_5483233a9b224f3c8eb9337e4ed82314",
"value": "β4/4β[00:56<00:00,β12.02s/it]"
}
},
"8708226010324a83b4f7900c3958d430": {
"model_module": "@jupyter-widgets/controls",
"model_module_version": "1.5.0",
"model_name": "HTMLModel",
"state": {
"_dom_classes": [],
"_model_module": "@jupyter-widgets/controls",
"_model_module_version": "1.5.0",
"_model_name": "HTMLModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/controls",
"_view_module_version": "1.5.0",
"_view_name": "HTMLView",
"description": "",
"description_tooltip": null,
"layout": "IPY_MODEL_4ba91b8d008e483d89f16f204326f6b6",
"placeholder": "β",
"style": "IPY_MODEL_31afdb187d2a44d8b3a101fa18543c13",
"value": "chat_template.jinja:β"
}
},
"88aa58551344410a91b07af480d6ab53": {
"model_module": "@jupyter-widgets/base",
"model_module_version": "1.2.0",
"model_name": "LayoutModel",
"state": {
"_model_module": "@jupyter-widgets/base",
"_model_module_version": "1.2.0",
"_model_name": "LayoutModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/base",
"_view_module_version": "1.2.0",
"_view_name": "LayoutView",
"align_content": null,
"align_items": null,
"align_self": null,
"border": null,
"bottom": null,
"display": null,
"flex": null,
"flex_flow": null,
"grid_area": null,
"grid_auto_columns": null,
"grid_auto_flow": null,
"grid_auto_rows": null,
"grid_column": null,
"grid_gap": null,
"grid_row": null,
"grid_template_areas": null,
"grid_template_columns": null,
"grid_template_rows": null,
"height": null,
"justify_content": null,
"justify_items": null,
"left": null,
"margin": null,
"max_height": null,
"max_width": null,
"min_height": null,
"min_width": null,
"object_fit": null,
"object_position": null,
"order": null,
"overflow": null,
"overflow_x": null,
"overflow_y": null,
"padding": null,
"right": null,
"top": null,
"visibility": null,
"width": "20px"
}
},
"89e3ad0d517f44d084df0d8a3ed40703": {
"model_module": "@jupyter-widgets/base",
"model_module_version": "1.2.0",
"model_name": "LayoutModel",
"state": {
"_model_module": "@jupyter-widgets/base",
"_model_module_version": "1.2.0",
"_model_name": "LayoutModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/base",
"_view_module_version": "1.2.0",
"_view_name": "LayoutView",
"align_content": null,
"align_items": null,
"align_self": null,
"border": null,
"bottom": null,
"display": null,
"flex": null,
"flex_flow": null,
"grid_area": null,
"grid_auto_columns": null,
"grid_auto_flow": null,
"grid_auto_rows": null,
"grid_column": null,
"grid_gap": null,
"grid_row": null,
"grid_template_areas": null,
"grid_template_columns": null,
"grid_template_rows": null,
"height": null,
"justify_content": null,
"justify_items": null,
"left": null,
"margin": null,
"max_height": null,
"max_width": null,
"min_height": null,
"min_width": null,
"object_fit": null,
"object_position": null,
"order": null,
"overflow": null,
"overflow_x": null,
"overflow_y": null,
"padding": null,
"right": null,
"top": null,
"visibility": null,
"width": null
}
},
"8f5799610318490492ff5aba76be3d1a": {
"model_module": "@jupyter-widgets/controls",
"model_module_version": "1.5.0",
"model_name": "FloatProgressModel",
"state": {
"_dom_classes": [],
"_model_module": "@jupyter-widgets/controls",
"_model_module_version": "1.5.0",
"_model_name": "FloatProgressModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/controls",
"_view_module_version": "1.5.0",
"_view_name": "ProgressView",
"bar_style": "success",
"description": "",
"description_tooltip": null,
"layout": "IPY_MODEL_1055200185004ea2a95a05eb51232501",
"max": 27868174,
"min": 0,
"orientation": "horizontal",
"style": "IPY_MODEL_eb1068efb4364ee2893c4d21c58f38db",
"value": 27868174
}
},
"93176d6b63284b4e832e0f028be90655": {
"model_module": "@jupyter-widgets/controls",
"model_module_version": "1.5.0",
"model_name": "ProgressStyleModel",
"state": {
"_model_module": "@jupyter-widgets/controls",
"_model_module_version": "1.5.0",
"_model_name": "ProgressStyleModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/base",
"_view_module_version": "1.2.0",
"_view_name": "StyleView",
"bar_color": null,
"description_width": ""
}
},
"941d8cbf8188402eb603c18b6e979035": {
"model_module": "@jupyter-widgets/controls",
"model_module_version": "1.5.0",
"model_name": "HBoxModel",
"state": {
"_dom_classes": [],
"_model_module": "@jupyter-widgets/controls",
"_model_module_version": "1.5.0",
"_model_name": "HBoxModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/controls",
"_view_module_version": "1.5.0",
"_view_name": "HBoxView",
"box_style": "",
"children": [
"IPY_MODEL_8708226010324a83b4f7900c3958d430",
"IPY_MODEL_fc12c97d659640b3b2b2b48ad7f17e5b",
"IPY_MODEL_aa22cb2d1dcf4001bd3720b075318906"
],
"layout": "IPY_MODEL_bb358c5523814376a2d4690f88f20b74"
}
},
"9c2371c32afe46519ee53427ea42bc9a": {
"model_module": "@jupyter-widgets/base",
"model_module_version": "1.2.0",
"model_name": "LayoutModel",
"state": {
"_model_module": "@jupyter-widgets/base",
"_model_module_version": "1.2.0",
"_model_name": "LayoutModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/base",
"_view_module_version": "1.2.0",
"_view_name": "LayoutView",
"align_content": null,
"align_items": null,
"align_self": null,
"border": null,
"bottom": null,
"display": null,
"flex": null,
"flex_flow": null,
"grid_area": null,
"grid_auto_columns": null,
"grid_auto_flow": null,
"grid_auto_rows": null,
"grid_column": null,
"grid_gap": null,
"grid_row": null,
"grid_template_areas": null,
"grid_template_columns": null,
"grid_template_rows": null,
"height": null,
"justify_content": null,
"justify_items": null,
"left": null,
"margin": null,
"max_height": null,
"max_width": null,
"min_height": null,
"min_width": null,
"object_fit": null,
"object_position": null,
"order": null,
"overflow": null,
"overflow_x": null,
"overflow_y": null,
"padding": null,
"right": null,
"top": null,
"visibility": null,
"width": null
}
},
"9e6f46ddb61943f4a168d70a209a7ddc": {
"model_module": "@jupyter-widgets/controls",
"model_module_version": "1.5.0",
"model_name": "DescriptionStyleModel",
"state": {
"_model_module": "@jupyter-widgets/controls",
"_model_module_version": "1.5.0",
"_model_name": "DescriptionStyleModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/base",
"_view_module_version": "1.2.0",
"_view_name": "StyleView",
"description_width": ""
}
},
"a1e042e5b8ad4b028cc28ac54924207d": {
"model_module": "@jupyter-widgets/base",
"model_module_version": "1.2.0",
"model_name": "LayoutModel",
"state": {
"_model_module": "@jupyter-widgets/base",
"_model_module_version": "1.2.0",
"_model_name": "LayoutModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/base",
"_view_module_version": "1.2.0",
"_view_name": "LayoutView",
"align_content": null,
"align_items": null,
"align_self": null,
"border": null,
"bottom": null,
"display": null,
"flex": null,
"flex_flow": null,
"grid_area": null,
"grid_auto_columns": null,
"grid_auto_flow": null,
"grid_auto_rows": null,
"grid_column": null,
"grid_gap": null,
"grid_row": null,
"grid_template_areas": null,
"grid_template_columns": null,
"grid_template_rows": null,
"height": null,
"justify_content": null,
"justify_items": null,
"left": null,
"margin": null,
"max_height": null,
"max_width": null,
"min_height": null,
"min_width": null,
"object_fit": null,
"object_position": null,
"order": null,
"overflow": null,
"overflow_x": null,
"overflow_y": null,
"padding": null,
"right": null,
"top": null,
"visibility": null,
"width": null
}
},
"a24e2cfbef794d35a0e22753352caa15": {
"model_module": "@jupyter-widgets/controls",
"model_module_version": "1.5.0",
"model_name": "FloatProgressModel",
"state": {
"_dom_classes": [],
"_model_module": "@jupyter-widgets/controls",
"_model_module_version": "1.5.0",
"_model_name": "FloatProgressModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/controls",
"_view_module_version": "1.5.0",
"_view_name": "ProgressView",
"bar_style": "success",
"description": "",
"description_tooltip": null,
"layout": "IPY_MODEL_0e49035e0c3a4ee4ab477b475e74ef36",
"max": 4,
"min": 0,
"orientation": "horizontal",
"style": "IPY_MODEL_08d8f0cfd7614900a9c9bba888619749",
"value": 4
}
},
"a4c19dc98fe943e09a26a60d23c8ff01": {
"model_module": "@jupyter-widgets/controls",
"model_module_version": "1.5.0",
"model_name": "HTMLModel",
"state": {
"_dom_classes": [],
"_model_module": "@jupyter-widgets/controls",
"_model_module_version": "1.5.0",
"_model_name": "HTMLModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/controls",
"_view_module_version": "1.5.0",
"_view_name": "HTMLView",
"description": "",
"description_tooltip": null,
"layout": "IPY_MODEL_f8d2164046fb46a298e2d80628808cb3",
"placeholder": "β",
"style": "IPY_MODEL_af23432e17664cd6852496e43f9de0cf",
"value": "tokenizer.json:β100%"
}
},
"a6a122064bc340868b5e0e11afa9c42f": {
"model_module": "@jupyter-widgets/base",
"model_module_version": "1.2.0",
"model_name": "LayoutModel",
"state": {
"_model_module": "@jupyter-widgets/base",
"_model_module_version": "1.2.0",
"_model_name": "LayoutModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/base",
"_view_module_version": "1.2.0",
"_view_name": "LayoutView",
"align_content": null,
"align_items": null,
"align_self": null,
"border": null,
"bottom": null,
"display": null,
"flex": null,
"flex_flow": null,
"grid_area": null,
"grid_auto_columns": null,
"grid_auto_flow": null,
"grid_auto_rows": null,
"grid_column": null,
"grid_gap": null,
"grid_row": null,
"grid_template_areas": null,
"grid_template_columns": null,
"grid_template_rows": null,
"height": null,
"justify_content": null,
"justify_items": null,
"left": null,
"margin": null,
"max_height": null,
"max_width": null,
"min_height": null,
"min_width": null,
"object_fit": null,
"object_position": null,
"order": null,
"overflow": null,
"overflow_x": null,
"overflow_y": null,
"padding": null,
"right": null,
"top": null,
"visibility": null,
"width": "20px"
}
},
"aa22cb2d1dcf4001bd3720b075318906": {
"model_module": "@jupyter-widgets/controls",
"model_module_version": "1.5.0",
"model_name": "HTMLModel",
"state": {
"_dom_classes": [],
"_model_module": "@jupyter-widgets/controls",
"_model_module_version": "1.5.0",
"_model_name": "HTMLModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/controls",
"_view_module_version": "1.5.0",
"_view_name": "HTMLView",
"description": "",
"description_tooltip": null,
"layout": "IPY_MODEL_0b8fa4ff186a4bfeac18cf6d676e99df",
"placeholder": "β",
"style": "IPY_MODEL_ccb581e230604bb690015eb685e4b8e1",
"value": "β15.1k/?β[00:00<00:00,β1.44MB/s]"
}
},
"aa714b1f70e8495b9299b51d6ac4c3c4": {
"model_module": "@jupyter-widgets/controls",
"model_module_version": "1.5.0",
"model_name": "ProgressStyleModel",
"state": {
"_model_module": "@jupyter-widgets/controls",
"_model_module_version": "1.5.0",
"_model_name": "ProgressStyleModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/base",
"_view_module_version": "1.2.0",
"_view_name": "StyleView",
"bar_color": null,
"description_width": ""
}
},
"ae3819cd042f43babef24199081bb97f": {
"model_module": "@jupyter-widgets/base",
"model_module_version": "1.2.0",
"model_name": "LayoutModel",
"state": {
"_model_module": "@jupyter-widgets/base",
"_model_module_version": "1.2.0",
"_model_name": "LayoutModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/base",
"_view_module_version": "1.2.0",
"_view_name": "LayoutView",
"align_content": null,
"align_items": null,
"align_self": null,
"border": null,
"bottom": null,
"display": null,
"flex": null,
"flex_flow": null,
"grid_area": null,
"grid_auto_columns": null,
"grid_auto_flow": null,
"grid_auto_rows": null,
"grid_column": null,
"grid_gap": null,
"grid_row": null,
"grid_template_areas": null,
"grid_template_columns": null,
"grid_template_rows": null,
"height": null,
"justify_content": null,
"justify_items": null,
"left": null,
"margin": null,
"max_height": null,
"max_width": null,
"min_height": null,
"min_width": null,
"object_fit": null,
"object_position": null,
"order": null,
"overflow": null,
"overflow_x": null,
"overflow_y": null,
"padding": null,
"right": null,
"top": null,
"visibility": null,
"width": null
}
},
"ae79b9a378ee4218beddf77ac9af6de7": {
"model_module": "@jupyter-widgets/base",
"model_module_version": "1.2.0",
"model_name": "LayoutModel",
"state": {
"_model_module": "@jupyter-widgets/base",
"_model_module_version": "1.2.0",
"_model_name": "LayoutModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/base",
"_view_module_version": "1.2.0",
"_view_name": "LayoutView",
"align_content": null,
"align_items": null,
"align_self": null,
"border": null,
"bottom": null,
"display": null,
"flex": null,
"flex_flow": null,
"grid_area": null,
"grid_auto_columns": null,
"grid_auto_flow": null,
"grid_auto_rows": null,
"grid_column": null,
"grid_gap": null,
"grid_row": null,
"grid_template_areas": null,
"grid_template_columns": null,
"grid_template_rows": null,
"height": null,
"justify_content": null,
"justify_items": null,
"left": null,
"margin": null,
"max_height": null,
"max_width": null,
"min_height": null,
"min_width": null,
"object_fit": null,
"object_position": null,
"order": null,
"overflow": null,
"overflow_x": null,
"overflow_y": null,
"padding": null,
"right": null,
"top": null,
"visibility": null,
"width": null
}
},
"ae9728c04b974af29460ce5179a9edba": {
"model_module": "@jupyter-widgets/base",
"model_module_version": "1.2.0",
"model_name": "LayoutModel",
"state": {
"_model_module": "@jupyter-widgets/base",
"_model_module_version": "1.2.0",
"_model_name": "LayoutModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/base",
"_view_module_version": "1.2.0",
"_view_name": "LayoutView",
"align_content": null,
"align_items": null,
"align_self": null,
"border": null,
"bottom": null,
"display": null,
"flex": null,
"flex_flow": null,
"grid_area": null,
"grid_auto_columns": null,
"grid_auto_flow": null,
"grid_auto_rows": null,
"grid_column": null,
"grid_gap": null,
"grid_row": null,
"grid_template_areas": null,
"grid_template_columns": null,
"grid_template_rows": null,
"height": null,
"justify_content": null,
"justify_items": null,
"left": null,
"margin": null,
"max_height": null,
"max_width": null,
"min_height": null,
"min_width": null,
"object_fit": null,
"object_position": null,
"order": null,
"overflow": null,
"overflow_x": null,
"overflow_y": null,
"padding": null,
"right": null,
"top": null,
"visibility": null,
"width": null
}
},
"af23432e17664cd6852496e43f9de0cf": {
"model_module": "@jupyter-widgets/controls",
"model_module_version": "1.5.0",
"model_name": "DescriptionStyleModel",
"state": {
"_model_module": "@jupyter-widgets/controls",
"_model_module_version": "1.5.0",
"_model_name": "DescriptionStyleModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/base",
"_view_module_version": "1.2.0",
"_view_name": "StyleView",
"description_width": ""
}
},
"b09745899e1446129f397d822a21fc99": {
"model_module": "@jupyter-widgets/controls",
"model_module_version": "1.5.0",
"model_name": "DescriptionStyleModel",
"state": {
"_model_module": "@jupyter-widgets/controls",
"_model_module_version": "1.5.0",
"_model_name": "DescriptionStyleModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/base",
"_view_module_version": "1.2.0",
"_view_name": "StyleView",
"description_width": ""
}
},
"b10d25fb43eb42198abf71c4e326bcff": {
"model_module": "@jupyter-widgets/base",
"model_module_version": "1.2.0",
"model_name": "LayoutModel",
"state": {
"_model_module": "@jupyter-widgets/base",
"_model_module_version": "1.2.0",
"_model_name": "LayoutModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/base",
"_view_module_version": "1.2.0",
"_view_name": "LayoutView",
"align_content": null,
"align_items": null,
"align_self": null,
"border": null,
"bottom": null,
"display": null,
"flex": null,
"flex_flow": null,
"grid_area": null,
"grid_auto_columns": null,
"grid_auto_flow": null,
"grid_auto_rows": null,
"grid_column": null,
"grid_gap": null,
"grid_row": null,
"grid_template_areas": null,
"grid_template_columns": null,
"grid_template_rows": null,
"height": null,
"justify_content": null,
"justify_items": null,
"left": null,
"margin": null,
"max_height": null,
"max_width": null,
"min_height": null,
"min_width": null,
"object_fit": null,
"object_position": null,
"order": null,
"overflow": null,
"overflow_x": null,
"overflow_y": null,
"padding": null,
"right": null,
"top": null,
"visibility": null,
"width": null
}
},
"b1dcd2f908344949af01dab5a244e458": {
"model_module": "@jupyter-widgets/base",
"model_module_version": "1.2.0",
"model_name": "LayoutModel",
"state": {
"_model_module": "@jupyter-widgets/base",
"_model_module_version": "1.2.0",
"_model_name": "LayoutModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/base",
"_view_module_version": "1.2.0",
"_view_name": "LayoutView",
"align_content": null,
"align_items": null,
"align_self": null,
"border": null,
"bottom": null,
"display": null,
"flex": null,
"flex_flow": null,
"grid_area": null,
"grid_auto_columns": null,
"grid_auto_flow": null,
"grid_auto_rows": null,
"grid_column": null,
"grid_gap": null,
"grid_row": null,
"grid_template_areas": null,
"grid_template_columns": null,
"grid_template_rows": null,
"height": null,
"justify_content": null,
"justify_items": null,
"left": null,
"margin": null,
"max_height": null,
"max_width": null,
"min_height": null,
"min_width": null,
"object_fit": null,
"object_position": null,
"order": null,
"overflow": null,
"overflow_x": null,
"overflow_y": null,
"padding": null,
"right": null,
"top": null,
"visibility": null,
"width": null
}
},
"b72fc22310714bf0bf6ff4021db5aba8": {
"model_module": "@jupyter-widgets/base",
"model_module_version": "1.2.0",
"model_name": "LayoutModel",
"state": {
"_model_module": "@jupyter-widgets/base",
"_model_module_version": "1.2.0",
"_model_name": "LayoutModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/base",
"_view_module_version": "1.2.0",
"_view_name": "LayoutView",
"align_content": null,
"align_items": null,
"align_self": null,
"border": null,
"bottom": null,
"display": null,
"flex": null,
"flex_flow": null,
"grid_area": null,
"grid_auto_columns": null,
"grid_auto_flow": null,
"grid_auto_rows": null,
"grid_column": null,
"grid_gap": null,
"grid_row": null,
"grid_template_areas": null,
"grid_template_columns": null,
"grid_template_rows": null,
"height": null,
"justify_content": null,
"justify_items": null,
"left": null,
"margin": null,
"max_height": null,
"max_width": null,
"min_height": null,
"min_width": null,
"object_fit": null,
"object_position": null,
"order": null,
"overflow": null,
"overflow_x": null,
"overflow_y": null,
"padding": null,
"right": null,
"top": null,
"visibility": null,
"width": null
}
},
"baf3db00d28f4c849bb6a6739e908c62": {
"model_module": "@jupyter-widgets/controls",
"model_module_version": "1.5.0",
"model_name": "HBoxModel",
"state": {
"_dom_classes": [],
"_model_module": "@jupyter-widgets/controls",
"_model_module_version": "1.5.0",
"_model_name": "HBoxModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/controls",
"_view_module_version": "1.5.0",
"_view_name": "HBoxView",
"box_style": "",
"children": [
"IPY_MODEL_f4f2fb240a12406ab5e709be33b93683",
"IPY_MODEL_4ca56d8605864a438290152268bfc686",
"IPY_MODEL_de306a50594f463ba9c78c713bc33241"
],
"layout": "IPY_MODEL_0f09a00375bd4d4c8863fc8fb7d64d61"
}
},
"bb358c5523814376a2d4690f88f20b74": {
"model_module": "@jupyter-widgets/base",
"model_module_version": "1.2.0",
"model_name": "LayoutModel",
"state": {
"_model_module": "@jupyter-widgets/base",
"_model_module_version": "1.2.0",
"_model_name": "LayoutModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/base",
"_view_module_version": "1.2.0",
"_view_name": "LayoutView",
"align_content": null,
"align_items": null,
"align_self": null,
"border": null,
"bottom": null,
"display": null,
"flex": null,
"flex_flow": null,
"grid_area": null,
"grid_auto_columns": null,
"grid_auto_flow": null,
"grid_auto_rows": null,
"grid_column": null,
"grid_gap": null,
"grid_row": null,
"grid_template_areas": null,
"grid_template_columns": null,
"grid_template_rows": null,
"height": null,
"justify_content": null,
"justify_items": null,
"left": null,
"margin": null,
"max_height": null,
"max_width": null,
"min_height": null,
"min_width": null,
"object_fit": null,
"object_position": null,
"order": null,
"overflow": null,
"overflow_x": null,
"overflow_y": null,
"padding": null,
"right": null,
"top": null,
"visibility": null,
"width": null
}
},
"bd8f575034c041be93ff20f63388de2d": {
"model_module": "@jupyter-widgets/base",
"model_module_version": "1.2.0",
"model_name": "LayoutModel",
"state": {
"_model_module": "@jupyter-widgets/base",
"_model_module_version": "1.2.0",
"_model_name": "LayoutModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/base",
"_view_module_version": "1.2.0",
"_view_name": "LayoutView",
"align_content": null,
"align_items": null,
"align_self": null,
"border": null,
"bottom": null,
"display": null,
"flex": null,
"flex_flow": null,
"grid_area": null,
"grid_auto_columns": null,
"grid_auto_flow": null,
"grid_auto_rows": null,
"grid_column": null,
"grid_gap": null,
"grid_row": null,
"grid_template_areas": null,
"grid_template_columns": null,
"grid_template_rows": null,
"height": null,
"justify_content": null,
"justify_items": null,
"left": null,
"margin": null,
"max_height": null,
"max_width": null,
"min_height": null,
"min_width": null,
"object_fit": null,
"object_position": null,
"order": null,
"overflow": null,
"overflow_x": null,
"overflow_y": null,
"padding": null,
"right": null,
"top": null,
"visibility": null,
"width": null
}
},
"bedc42e908454f1494768194b43b2964": {
"model_module": "@jupyter-widgets/base",
"model_module_version": "1.2.0",
"model_name": "LayoutModel",
"state": {
"_model_module": "@jupyter-widgets/base",
"_model_module_version": "1.2.0",
"_model_name": "LayoutModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/base",
"_view_module_version": "1.2.0",
"_view_name": "LayoutView",
"align_content": null,
"align_items": null,
"align_self": null,
"border": null,
"bottom": null,
"display": null,
"flex": null,
"flex_flow": null,
"grid_area": null,
"grid_auto_columns": null,
"grid_auto_flow": null,
"grid_auto_rows": null,
"grid_column": null,
"grid_gap": null,
"grid_row": null,
"grid_template_areas": null,
"grid_template_columns": null,
"grid_template_rows": null,
"height": null,
"justify_content": null,
"justify_items": null,
"left": null,
"margin": null,
"max_height": null,
"max_width": null,
"min_height": null,
"min_width": null,
"object_fit": null,
"object_position": null,
"order": null,
"overflow": null,
"overflow_x": null,
"overflow_y": null,
"padding": null,
"right": null,
"top": null,
"visibility": null,
"width": null
}
},
"c4d592366499414a99f19bce7f0bd665": {
"model_module": "@jupyter-widgets/base",
"model_module_version": "1.2.0",
"model_name": "LayoutModel",
"state": {
"_model_module": "@jupyter-widgets/base",
"_model_module_version": "1.2.0",
"_model_name": "LayoutModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/base",
"_view_module_version": "1.2.0",
"_view_name": "LayoutView",
"align_content": null,
"align_items": null,
"align_self": null,
"border": null,
"bottom": null,
"display": null,
"flex": null,
"flex_flow": null,
"grid_area": null,
"grid_auto_columns": null,
"grid_auto_flow": null,
"grid_auto_rows": null,
"grid_column": null,
"grid_gap": null,
"grid_row": null,
"grid_template_areas": null,
"grid_template_columns": null,
"grid_template_rows": null,
"height": null,
"justify_content": null,
"justify_items": null,
"left": null,
"margin": null,
"max_height": null,
"max_width": null,
"min_height": null,
"min_width": null,
"object_fit": null,
"object_position": null,
"order": null,
"overflow": null,
"overflow_x": null,
"overflow_y": null,
"padding": null,
"right": null,
"top": null,
"visibility": null,
"width": null
}
},
"cbc7bbfe983f4e6696f8dd6b37c50543": {
"model_module": "@jupyter-widgets/controls",
"model_module_version": "1.5.0",
"model_name": "ProgressStyleModel",
"state": {
"_model_module": "@jupyter-widgets/controls",
"_model_module_version": "1.5.0",
"_model_name": "ProgressStyleModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/base",
"_view_module_version": "1.2.0",
"_view_name": "StyleView",
"bar_color": null,
"description_width": ""
}
},
"cbed0dab2d7540f697eacec5a33e1061": {
"model_module": "@jupyter-widgets/controls",
"model_module_version": "1.5.0",
"model_name": "HBoxModel",
"state": {
"_dom_classes": [],
"_model_module": "@jupyter-widgets/controls",
"_model_module_version": "1.5.0",
"_model_name": "HBoxModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/controls",
"_view_module_version": "1.5.0",
"_view_name": "HBoxView",
"box_style": "",
"children": [
"IPY_MODEL_dc9b2549ff834880ac19b578adfee5a5",
"IPY_MODEL_48f65e25acd84b0cb582de66753215da",
"IPY_MODEL_7c52841c7e714173bfd526b0a625bc9d"
],
"layout": "IPY_MODEL_bd8f575034c041be93ff20f63388de2d"
}
},
"cca7d922b85449a1b0c5c025b65fba10": {
"model_module": "@jupyter-widgets/controls",
"model_module_version": "1.5.0",
"model_name": "HTMLModel",
"state": {
"_dom_classes": [],
"_model_module": "@jupyter-widgets/controls",
"_model_module_version": "1.5.0",
"_model_name": "HTMLModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/controls",
"_view_module_version": "1.5.0",
"_view_name": "HTMLView",
"description": "",
"description_tooltip": null,
"layout": "IPY_MODEL_e7ca6b7ba2094872a888da5511e2bb49",
"placeholder": "β",
"style": "IPY_MODEL_7c7d40163ecc4dae8a2c54af21de4661",
"value": "β1.16G/1.16Gβ[00:09<00:00,β242MB/s]"
}
},
"ccb581e230604bb690015eb685e4b8e1": {
"model_module": "@jupyter-widgets/controls",
"model_module_version": "1.5.0",
"model_name": "DescriptionStyleModel",
"state": {
"_model_module": "@jupyter-widgets/controls",
"_model_module_version": "1.5.0",
"_model_name": "DescriptionStyleModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/base",
"_view_module_version": "1.2.0",
"_view_name": "StyleView",
"description_width": ""
}
},
"d16dc921c6554bc6b77abcb423721cc8": {
"model_module": "@jupyter-widgets/controls",
"model_module_version": "1.5.0",
"model_name": "DescriptionStyleModel",
"state": {
"_model_module": "@jupyter-widgets/controls",
"_model_module_version": "1.5.0",
"_model_name": "DescriptionStyleModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/base",
"_view_module_version": "1.2.0",
"_view_name": "StyleView",
"description_width": ""
}
},
"d1cea390ecaa4583a698278fa3a438c9": {
"model_module": "@jupyter-widgets/base",
"model_module_version": "1.2.0",
"model_name": "LayoutModel",
"state": {
"_model_module": "@jupyter-widgets/base",
"_model_module_version": "1.2.0",
"_model_name": "LayoutModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/base",
"_view_module_version": "1.2.0",
"_view_name": "LayoutView",
"align_content": null,
"align_items": null,
"align_self": null,
"border": null,
"bottom": null,
"display": null,
"flex": null,
"flex_flow": null,
"grid_area": null,
"grid_auto_columns": null,
"grid_auto_flow": null,
"grid_auto_rows": null,
"grid_column": null,
"grid_gap": null,
"grid_row": null,
"grid_template_areas": null,
"grid_template_columns": null,
"grid_template_rows": null,
"height": null,
"justify_content": null,
"justify_items": null,
"left": null,
"margin": null,
"max_height": null,
"max_width": null,
"min_height": null,
"min_width": null,
"object_fit": null,
"object_position": null,
"order": null,
"overflow": null,
"overflow_x": null,
"overflow_y": null,
"padding": null,
"right": null,
"top": null,
"visibility": null,
"width": null
}
},
"d257eaa588bd41fb947f81d306fe05cd": {
"model_module": "@jupyter-widgets/base",
"model_module_version": "1.2.0",
"model_name": "LayoutModel",
"state": {
"_model_module": "@jupyter-widgets/base",
"_model_module_version": "1.2.0",
"_model_name": "LayoutModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/base",
"_view_module_version": "1.2.0",
"_view_name": "LayoutView",
"align_content": null,
"align_items": null,
"align_self": null,
"border": null,
"bottom": null,
"display": null,
"flex": null,
"flex_flow": null,
"grid_area": null,
"grid_auto_columns": null,
"grid_auto_flow": null,
"grid_auto_rows": null,
"grid_column": null,
"grid_gap": null,
"grid_row": null,
"grid_template_areas": null,
"grid_template_columns": null,
"grid_template_rows": null,
"height": null,
"justify_content": null,
"justify_items": null,
"left": null,
"margin": null,
"max_height": null,
"max_width": null,
"min_height": null,
"min_width": null,
"object_fit": null,
"object_position": null,
"order": null,
"overflow": null,
"overflow_x": null,
"overflow_y": null,
"padding": null,
"right": null,
"top": null,
"visibility": null,
"width": null
}
},
"d2a7fa9dddc240e29330297870159c59": {
"model_module": "@jupyter-widgets/controls",
"model_module_version": "1.5.0",
"model_name": "DescriptionStyleModel",
"state": {
"_model_module": "@jupyter-widgets/controls",
"_model_module_version": "1.5.0",
"_model_name": "DescriptionStyleModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/base",
"_view_module_version": "1.2.0",
"_view_name": "StyleView",
"description_width": ""
}
},
"d4c72002b5fe44d3ad7ae67f5536c889": {
"model_module": "@jupyter-widgets/controls",
"model_module_version": "1.5.0",
"model_name": "HTMLModel",
"state": {
"_dom_classes": [],
"_model_module": "@jupyter-widgets/controls",
"_model_module_version": "1.5.0",
"_model_name": "HTMLModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/controls",
"_view_module_version": "1.5.0",
"_view_name": "HTMLView",
"description": "",
"description_tooltip": null,
"layout": "IPY_MODEL_06e420cfa2974f7d8d7ec4b83f064a6e",
"placeholder": "β",
"style": "IPY_MODEL_3566e9058ebc45498b42e521f2314365",
"value": "β4.00G/4.00Gβ[00:19<00:00,β279MB/s]"
}
},
"d541fd264d7e4b2691e8efbd993e6ae7": {
"model_module": "@jupyter-widgets/base",
"model_module_version": "1.2.0",
"model_name": "LayoutModel",
"state": {
"_model_module": "@jupyter-widgets/base",
"_model_module_version": "1.2.0",
"_model_name": "LayoutModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/base",
"_view_module_version": "1.2.0",
"_view_name": "LayoutView",
"align_content": null,
"align_items": null,
"align_self": null,
"border": null,
"bottom": null,
"display": null,
"flex": null,
"flex_flow": null,
"grid_area": null,
"grid_auto_columns": null,
"grid_auto_flow": null,
"grid_auto_rows": null,
"grid_column": null,
"grid_gap": null,
"grid_row": null,
"grid_template_areas": null,
"grid_template_columns": null,
"grid_template_rows": null,
"height": null,
"justify_content": null,
"justify_items": null,
"left": null,
"margin": null,
"max_height": null,
"max_width": null,
"min_height": null,
"min_width": null,
"object_fit": null,
"object_position": null,
"order": null,
"overflow": null,
"overflow_x": null,
"overflow_y": null,
"padding": null,
"right": null,
"top": null,
"visibility": null,
"width": null
}
},
"d82ab09313cc482f9b9b45192f489825": {
"model_module": "@jupyter-widgets/controls",
"model_module_version": "1.5.0",
"model_name": "DescriptionStyleModel",
"state": {
"_model_module": "@jupyter-widgets/controls",
"_model_module_version": "1.5.0",
"_model_name": "DescriptionStyleModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/base",
"_view_module_version": "1.2.0",
"_view_name": "StyleView",
"description_width": ""
}
},
"dc9b2549ff834880ac19b578adfee5a5": {
"model_module": "@jupyter-widgets/controls",
"model_module_version": "1.5.0",
"model_name": "HTMLModel",
"state": {
"_dom_classes": [],
"_model_module": "@jupyter-widgets/controls",
"_model_module_version": "1.5.0",
"_model_name": "HTMLModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/controls",
"_view_module_version": "1.5.0",
"_view_name": "HTMLView",
"description": "",
"description_tooltip": null,
"layout": "IPY_MODEL_212c17e3829c4accb30265a3d9ee73dc",
"placeholder": "β",
"style": "IPY_MODEL_1daa373c890b4ae0a9cf6a3ec325693c",
"value": "generation_config.json:β100%"
}
},
"de306a50594f463ba9c78c713bc33241": {
"model_module": "@jupyter-widgets/controls",
"model_module_version": "1.5.0",
"model_name": "HTMLModel",
"state": {
"_dom_classes": [],
"_model_module": "@jupyter-widgets/controls",
"_model_module_version": "1.5.0",
"_model_name": "HTMLModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/controls",
"_view_module_version": "1.5.0",
"_view_name": "HTMLView",
"description": "",
"description_tooltip": null,
"layout": "IPY_MODEL_fa5c42218fbb44378bef71551c3383e0",
"placeholder": "β",
"style": "IPY_MODEL_d82ab09313cc482f9b9b45192f489825",
"value": "β4.00G/4.00Gβ[00:25<00:00,β110MB/s]"
}
},
"e6d63cf58647443b9749195ec0579d87": {
"model_module": "@jupyter-widgets/controls",
"model_module_version": "1.5.0",
"model_name": "ProgressStyleModel",
"state": {
"_model_module": "@jupyter-widgets/controls",
"_model_module_version": "1.5.0",
"_model_name": "ProgressStyleModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/base",
"_view_module_version": "1.2.0",
"_view_name": "StyleView",
"bar_color": null,
"description_width": ""
}
},
"e78534b135d2465c83e3be614b71c8a4": {
"model_module": "@jupyter-widgets/controls",
"model_module_version": "1.5.0",
"model_name": "HTMLModel",
"state": {
"_dom_classes": [],
"_model_module": "@jupyter-widgets/controls",
"_model_module_version": "1.5.0",
"_model_name": "HTMLModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/controls",
"_view_module_version": "1.5.0",
"_view_name": "HTMLView",
"description": "",
"description_tooltip": null,
"layout": "IPY_MODEL_c4d592366499414a99f19bce7f0bd665",
"placeholder": "β",
"style": "IPY_MODEL_1ece5fe9597a4e3db2dd96c38995705c",
"value": "β27.9M/27.9Mβ[00:01<00:00,β21.9MB/s]"
}
},
"e7ca6b7ba2094872a888da5511e2bb49": {
"model_module": "@jupyter-widgets/base",
"model_module_version": "1.2.0",
"model_name": "LayoutModel",
"state": {
"_model_module": "@jupyter-widgets/base",
"_model_module_version": "1.2.0",
"_model_name": "LayoutModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/base",
"_view_module_version": "1.2.0",
"_view_name": "LayoutView",
"align_content": null,
"align_items": null,
"align_self": null,
"border": null,
"bottom": null,
"display": null,
"flex": null,
"flex_flow": null,
"grid_area": null,
"grid_auto_columns": null,
"grid_auto_flow": null,
"grid_auto_rows": null,
"grid_column": null,
"grid_gap": null,
"grid_row": null,
"grid_template_areas": null,
"grid_template_columns": null,
"grid_template_rows": null,
"height": null,
"justify_content": null,
"justify_items": null,
"left": null,
"margin": null,
"max_height": null,
"max_width": null,
"min_height": null,
"min_width": null,
"object_fit": null,
"object_position": null,
"order": null,
"overflow": null,
"overflow_x": null,
"overflow_y": null,
"padding": null,
"right": null,
"top": null,
"visibility": null,
"width": null
}
},
"ea2f3ca562444c46b50596a1d7cf9030": {
"model_module": "@jupyter-widgets/controls",
"model_module_version": "1.5.0",
"model_name": "HTMLModel",
"state": {
"_dom_classes": [],
"_model_module": "@jupyter-widgets/controls",
"_model_module_version": "1.5.0",
"_model_name": "HTMLModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/controls",
"_view_module_version": "1.5.0",
"_view_name": "HTMLView",
"description": "",
"description_tooltip": null,
"layout": "IPY_MODEL_56b30cc150924879abfc138427f4ca98",
"placeholder": "β",
"style": "IPY_MODEL_02c88a690a384ae183c233b6927aaf57",
"value": "special_tokens_map.json:β100%"
}
},
"eb1068efb4364ee2893c4d21c58f38db": {
"model_module": "@jupyter-widgets/controls",
"model_module_version": "1.5.0",
"model_name": "ProgressStyleModel",
"state": {
"_model_module": "@jupyter-widgets/controls",
"_model_module_version": "1.5.0",
"_model_name": "ProgressStyleModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/base",
"_view_module_version": "1.2.0",
"_view_name": "StyleView",
"bar_color": null,
"description_width": ""
}
},
"eb13ad96565a44519e7cab9ce9483b90": {
"model_module": "@jupyter-widgets/controls",
"model_module_version": "1.5.0",
"model_name": "HTMLModel",
"state": {
"_dom_classes": [],
"_model_module": "@jupyter-widgets/controls",
"_model_module_version": "1.5.0",
"_model_name": "HTMLModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/controls",
"_view_module_version": "1.5.0",
"_view_name": "HTMLView",
"description": "",
"description_tooltip": null,
"layout": "IPY_MODEL_6d77c8dcb28240f7b860571d11f8b9af",
"placeholder": "β",
"style": "IPY_MODEL_4f29591af0d64d398515479b032a1b3d",
"value": "model-00002-of-00004.safetensors:β100%"
}
},
"eb8c197ce1fc41f78531e5e73ae14a89": {
"model_module": "@jupyter-widgets/base",
"model_module_version": "1.2.0",
"model_name": "LayoutModel",
"state": {
"_model_module": "@jupyter-widgets/base",
"_model_module_version": "1.2.0",
"_model_name": "LayoutModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/base",
"_view_module_version": "1.2.0",
"_view_name": "LayoutView",
"align_content": null,
"align_items": null,
"align_self": null,
"border": null,
"bottom": null,
"display": null,
"flex": null,
"flex_flow": null,
"grid_area": null,
"grid_auto_columns": null,
"grid_auto_flow": null,
"grid_auto_rows": null,
"grid_column": null,
"grid_gap": null,
"grid_row": null,
"grid_template_areas": null,
"grid_template_columns": null,
"grid_template_rows": null,
"height": null,
"justify_content": null,
"justify_items": null,
"left": null,
"margin": null,
"max_height": null,
"max_width": null,
"min_height": null,
"min_width": null,
"object_fit": null,
"object_position": null,
"order": null,
"overflow": null,
"overflow_x": null,
"overflow_y": null,
"padding": null,
"right": null,
"top": null,
"visibility": null,
"width": null
}
},
"eee0d2b6eb6047d8a4001f4999dcdc35": {
"model_module": "@jupyter-widgets/controls",
"model_module_version": "1.5.0",
"model_name": "HTMLModel",
"state": {
"_dom_classes": [],
"_model_module": "@jupyter-widgets/controls",
"_model_module_version": "1.5.0",
"_model_name": "HTMLModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/controls",
"_view_module_version": "1.5.0",
"_view_name": "HTMLView",
"description": "",
"description_tooltip": null,
"layout": "IPY_MODEL_d257eaa588bd41fb947f81d306fe05cd",
"placeholder": "β",
"style": "IPY_MODEL_b09745899e1446129f397d822a21fc99",
"value": "model.safetensors.index.json:β"
}
},
"f290b17e3cd9487b9b97d54d6cec9efc": {
"model_module": "@jupyter-widgets/base",
"model_module_version": "1.2.0",
"model_name": "LayoutModel",
"state": {
"_model_module": "@jupyter-widgets/base",
"_model_module_version": "1.2.0",
"_model_name": "LayoutModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/base",
"_view_module_version": "1.2.0",
"_view_name": "LayoutView",
"align_content": null,
"align_items": null,
"align_self": null,
"border": null,
"bottom": null,
"display": null,
"flex": null,
"flex_flow": null,
"grid_area": null,
"grid_auto_columns": null,
"grid_auto_flow": null,
"grid_auto_rows": null,
"grid_column": null,
"grid_gap": null,
"grid_row": null,
"grid_template_areas": null,
"grid_template_columns": null,
"grid_template_rows": null,
"height": null,
"justify_content": null,
"justify_items": null,
"left": null,
"margin": null,
"max_height": null,
"max_width": null,
"min_height": null,
"min_width": null,
"object_fit": null,
"object_position": null,
"order": null,
"overflow": null,
"overflow_x": null,
"overflow_y": null,
"padding": null,
"right": null,
"top": null,
"visibility": null,
"width": null
}
},
"f34cadfaf9bb46729aeeff9492ba9026": {
"model_module": "@jupyter-widgets/base",
"model_module_version": "1.2.0",
"model_name": "LayoutModel",
"state": {
"_model_module": "@jupyter-widgets/base",
"_model_module_version": "1.2.0",
"_model_name": "LayoutModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/base",
"_view_module_version": "1.2.0",
"_view_name": "LayoutView",
"align_content": null,
"align_items": null,
"align_self": null,
"border": null,
"bottom": null,
"display": null,
"flex": null,
"flex_flow": null,
"grid_area": null,
"grid_auto_columns": null,
"grid_auto_flow": null,
"grid_auto_rows": null,
"grid_column": null,
"grid_gap": null,
"grid_row": null,
"grid_template_areas": null,
"grid_template_columns": null,
"grid_template_rows": null,
"height": null,
"justify_content": null,
"justify_items": null,
"left": null,
"margin": null,
"max_height": null,
"max_width": null,
"min_height": null,
"min_width": null,
"object_fit": null,
"object_position": null,
"order": null,
"overflow": null,
"overflow_x": null,
"overflow_y": null,
"padding": null,
"right": null,
"top": null,
"visibility": null,
"width": null
}
},
"f4f2fb240a12406ab5e709be33b93683": {
"model_module": "@jupyter-widgets/controls",
"model_module_version": "1.5.0",
"model_name": "HTMLModel",
"state": {
"_dom_classes": [],
"_model_module": "@jupyter-widgets/controls",
"_model_module_version": "1.5.0",
"_model_name": "HTMLModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/controls",
"_view_module_version": "1.5.0",
"_view_name": "HTMLView",
"description": "",
"description_tooltip": null,
"layout": "IPY_MODEL_89e3ad0d517f44d084df0d8a3ed40703",
"placeholder": "β",
"style": "IPY_MODEL_3f589cf3cb804ed29ba322e4fa10c511",
"value": "model-00001-of-00004.safetensors:β100%"
}
},
"f7cc1614e13d4d22b83f787b20407a5f": {
"model_module": "@jupyter-widgets/controls",
"model_module_version": "1.5.0",
"model_name": "HTMLModel",
"state": {
"_dom_classes": [],
"_model_module": "@jupyter-widgets/controls",
"_model_module_version": "1.5.0",
"_model_name": "HTMLModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/controls",
"_view_module_version": "1.5.0",
"_view_name": "HTMLView",
"description": "",
"description_tooltip": null,
"layout": "IPY_MODEL_7ce0f239a8514923b383f738bc0c9899",
"placeholder": "β",
"style": "IPY_MODEL_4bc16bd2399a43fe85967131af7f846a",
"value": "model-00003-of-00004.safetensors:β100%"
}
},
"f8d2164046fb46a298e2d80628808cb3": {
"model_module": "@jupyter-widgets/base",
"model_module_version": "1.2.0",
"model_name": "LayoutModel",
"state": {
"_model_module": "@jupyter-widgets/base",
"_model_module_version": "1.2.0",
"_model_name": "LayoutModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/base",
"_view_module_version": "1.2.0",
"_view_name": "LayoutView",
"align_content": null,
"align_items": null,
"align_self": null,
"border": null,
"bottom": null,
"display": null,
"flex": null,
"flex_flow": null,
"grid_area": null,
"grid_auto_columns": null,
"grid_auto_flow": null,
"grid_auto_rows": null,
"grid_column": null,
"grid_gap": null,
"grid_row": null,
"grid_template_areas": null,
"grid_template_columns": null,
"grid_template_rows": null,
"height": null,
"justify_content": null,
"justify_items": null,
"left": null,
"margin": null,
"max_height": null,
"max_width": null,
"min_height": null,
"min_width": null,
"object_fit": null,
"object_position": null,
"order": null,
"overflow": null,
"overflow_x": null,
"overflow_y": null,
"padding": null,
"right": null,
"top": null,
"visibility": null,
"width": null
}
},
"f9d4672fb86b4b4e9c3e9068dc479e5b": {
"model_module": "@jupyter-widgets/controls",
"model_module_version": "1.5.0",
"model_name": "DescriptionStyleModel",
"state": {
"_model_module": "@jupyter-widgets/controls",
"_model_module_version": "1.5.0",
"_model_name": "DescriptionStyleModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/base",
"_view_module_version": "1.2.0",
"_view_name": "StyleView",
"description_width": ""
}
},
"fa5c42218fbb44378bef71551c3383e0": {
"model_module": "@jupyter-widgets/base",
"model_module_version": "1.2.0",
"model_name": "LayoutModel",
"state": {
"_model_module": "@jupyter-widgets/base",
"_model_module_version": "1.2.0",
"_model_name": "LayoutModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/base",
"_view_module_version": "1.2.0",
"_view_name": "LayoutView",
"align_content": null,
"align_items": null,
"align_self": null,
"border": null,
"bottom": null,
"display": null,
"flex": null,
"flex_flow": null,
"grid_area": null,
"grid_auto_columns": null,
"grid_auto_flow": null,
"grid_auto_rows": null,
"grid_column": null,
"grid_gap": null,
"grid_row": null,
"grid_template_areas": null,
"grid_template_columns": null,
"grid_template_rows": null,
"height": null,
"justify_content": null,
"justify_items": null,
"left": null,
"margin": null,
"max_height": null,
"max_width": null,
"min_height": null,
"min_width": null,
"object_fit": null,
"object_position": null,
"order": null,
"overflow": null,
"overflow_x": null,
"overflow_y": null,
"padding": null,
"right": null,
"top": null,
"visibility": null,
"width": null
}
},
"fc12c97d659640b3b2b2b48ad7f17e5b": {
"model_module": "@jupyter-widgets/controls",
"model_module_version": "1.5.0",
"model_name": "FloatProgressModel",
"state": {
"_dom_classes": [],
"_model_module": "@jupyter-widgets/controls",
"_model_module_version": "1.5.0",
"_model_name": "FloatProgressModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/controls",
"_view_module_version": "1.5.0",
"_view_name": "ProgressView",
"bar_style": "success",
"description": "",
"description_tooltip": null,
"layout": "IPY_MODEL_28300c16023d4ad9a59784baea2f57aa",
"max": 1,
"min": 0,
"orientation": "horizontal",
"style": "IPY_MODEL_004f28173c3b4fb6a9f8c2068f5db81f",
"value": 1
}
}
}
}
},
"nbformat": 4,
"nbformat_minor": 0
}