tahamajs's picture
download
raw
1.47 kB
#!/usr/bin/env python
"""
Script to execute CA9 notebook cell by cell and capture outputs
"""
import sys
import warnings
warnings.filterwarnings('ignore')
# Cell 1: Initial Setup and Imports
print("="*80)
print("EXECUTING CELL 1: Initial Setup and Imports")
print("="*80)
import torch
import torch.nn as nn
import torch.nn.functional as F
import numpy as np
import matplotlib
matplotlib.use('Agg') # Use non-interactive backend
import matplotlib.pyplot as plt
import seaborn as sns
from typing import List, Dict, Tuple, Optional, Union, Any
from dataclasses import dataclass
from collections import defaultdict, deque
import json
import time
import random
from abc import ABC, abstractmethod
import networkx as nx
from itertools import combinations
# Set random seeds for reproducibility
torch.manual_seed(42)
np.random.seed(42)
random.seed(42)
# Set up plotting
plt.style.use('seaborn-v0_8')
sns.set_palette("husl")
print("✅ Libraries imported successfully!")
print("🧠 Ready for Advanced Reasoning and Test-Time Scaling!")
# Device setup
device = torch.device('cuda' if torch.cuda.is_available() else 'cpu')
print(f"🔧 Using device: {device}")
# Store cell outputs
cell_outputs = []
cell_outputs.append({
'cell_number': 1,
'output': f"✅ Libraries imported successfully!\n🧠 Ready for Advanced Reasoning and Test-Time Scaling!\n🔧 Using device: {device}"
})
print("\n" + "="*80)
print("Cell 1 completed successfully!")
print("="*80 + "\n")

Xet Storage Details

Size:
1.47 kB
·
Xet hash:
96a328ed75f9b7ac0d6c11e01619be64d48dd99afe3bbc2192ea9fe17f2e715a

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.