SYMBOL INDEX (135 symbols across 18 files) FILE: 00-2_python-libraries-for-workshop/python_environment_check.py function get_packages (line 12) | def get_packages(pkgs): function check_packages (line 33) | def check_packages(d): FILE: 02_pytorch-api/exercise/exercise.py class LogisticRegression (line 118) | class LogisticRegression(torch.nn.Module): method __init__ (line 120) | def __init__(self, num_features, num_classes): method forward (line 124) | def forward(self, x): class MyDataset (line 151) | class MyDataset(Dataset): method __init__ (line 152) | def __init__(self, X, y): method __getitem__ (line 157) | def __getitem__(self, index): method __len__ (line 162) | def __len__(self): function compute_accuracy (line 224) | def compute_accuracy(model, dataloader): function plot_boundary (line 284) | def plot_boundary(model): FILE: 02_pytorch-api/solution/solution.py class LogisticRegression (line 127) | class LogisticRegression(torch.nn.Module): method __init__ (line 129) | def __init__(self, num_features, num_classes): method forward (line 133) | def forward(self, x): class MyDataset (line 160) | class MyDataset(Dataset): method __init__ (line 161) | def __init__(self, X, y): method __getitem__ (line 166) | def __getitem__(self, index): method __len__ (line 171) | def __len__(self): function compute_accuracy (line 222) | def compute_accuracy(model, dataloader): function plot_boundary (line 282) | def plot_boundary(model): FILE: 03_training-dnns/exercise/local_utilities.py function get_dataloaders_cifar10 (line 28) | def get_dataloaders_cifar10(batch_size, num_workers=0, function reporthook (line 105) | def reporthook(count, block_size, total_size): function download_dataset (line 122) | def download_dataset(): function load_dataset_into_to_dataframe (line 138) | def load_dataset_into_to_dataframe(): function partition_dataset (line 173) | def partition_dataset(df): class IMDBDataset (line 185) | class IMDBDataset(Dataset): method __init__ (line 186) | def __init__(self, dataset_dict, partition_key="train"): method __getitem__ (line 189) | def __getitem__(self, index): method __len__ (line 192) | def __len__(self): FILE: 03_training-dnns/exercise/simple-cnn.py class PyTorchCNN (line 13) | class PyTorchCNN(torch.nn.Module): method __init__ (line 14) | def __init__(self, num_classes): method forward (line 45) | def forward(self, x): function train (line 53) | def train(num_epochs, model, optimizer, scheduler, train_loader, val_loa... FILE: 03_training-dnns/solution/local_utilities.py function get_dataloaders_cifar10 (line 28) | def get_dataloaders_cifar10(batch_size, num_workers=0, function reporthook (line 105) | def reporthook(count, block_size, total_size): function download_dataset (line 122) | def download_dataset(): function load_dataset_into_to_dataframe (line 138) | def load_dataset_into_to_dataframe(): function partition_dataset (line 173) | def partition_dataset(df): class IMDBDataset (line 185) | class IMDBDataset(Dataset): method __init__ (line 186) | def __init__(self, dataset_dict, partition_key="train"): method __getitem__ (line 189) | def __getitem__(self, index): method __len__ (line 192) | def __len__(self): FILE: 03_training-dnns/solution/solution-torchvision-cnn.py class PyTorchCNN (line 13) | class PyTorchCNN(torch.nn.Module): method __init__ (line 14) | def __init__(self, num_classes): method forward (line 45) | def forward(self, x): function train (line 53) | def train(num_epochs, model, optimizer, scheduler, train_loader, val_loa... FILE: 04_accelerating-pytorch/exercise/00_pytorch-vit-random-init.py function train (line 15) | def train(num_epochs, model, optimizer, train_loader, val_loader, device): FILE: 04_accelerating-pytorch/exercise/01_pytorch-vit.py function train (line 15) | def train(num_epochs, model, optimizer, train_loader, val_loader, device): FILE: 04_accelerating-pytorch/exercise/local_utilities.py function get_dataloaders_cifar10 (line 9) | def get_dataloaders_cifar10(batch_size, num_workers=0, FILE: 04_accelerating-pytorch/solution/02_fabric-vit.py function train (line 16) | def train(num_epochs, model, optimizer, train_loader, val_loader, fabric): FILE: 04_accelerating-pytorch/solution/03_fabric-vit-mixed-precision.py function train (line 16) | def train(num_epochs, model, optimizer, train_loader, val_loader, fabric): FILE: 04_accelerating-pytorch/solution/04_fabric-vit-mixed-fsdp.py function train (line 16) | def train(num_epochs, model, optimizer, train_loader, val_loader, fabric): FILE: 04_accelerating-pytorch/solution/local_utilities.py function get_dataloaders_cifar10 (line 9) | def get_dataloaders_cifar10(batch_size, num_workers=0, FILE: 05_finetuning-llms/exercise/gpt_download.py function download_and_load_gpt2 (line 15) | def download_and_load_gpt2(model_size, models_dir): function download_file (line 45) | def download_file(url, destination): function load_gpt2_params_from_tf_ckpt (line 73) | def load_gpt2_params_from_tf_ckpt(ckpt_path, settings): FILE: 05_finetuning-llms/exercise/spam_classifier_utils.py class GPTDatasetV1 (line 23) | class GPTDatasetV1(Dataset): method __init__ (line 24) | def __init__(self, txt, tokenizer, max_length, stride): method __len__ (line 39) | def __len__(self): method __getitem__ (line 42) | def __getitem__(self, idx): function create_dataloader_v1 (line 46) | def create_dataloader_v1(txt, batch_size=4, max_length=256, class MultiHeadAttention (line 64) | class MultiHeadAttention(nn.Module): method __init__ (line 65) | def __init__(self, d_in, d_out, context_length, dropout, num_heads, qk... method forward (line 80) | def forward(self, x): class LayerNorm (line 123) | class LayerNorm(nn.Module): method __init__ (line 124) | def __init__(self, emb_dim): method forward (line 130) | def forward(self, x): class GELU (line 137) | class GELU(nn.Module): method __init__ (line 138) | def __init__(self): method forward (line 141) | def forward(self, x): class FeedForward (line 148) | class FeedForward(nn.Module): method __init__ (line 149) | def __init__(self, cfg): method forward (line 157) | def forward(self, x): class TransformerBlock (line 161) | class TransformerBlock(nn.Module): method __init__ (line 162) | def __init__(self, cfg): method forward (line 176) | def forward(self, x): class GPTModel (line 194) | class GPTModel(nn.Module): method __init__ (line 195) | def __init__(self, cfg): method forward (line 207) | def forward(self, in_idx): function generate_text_simple (line 219) | def generate_text_simple(model, idx, max_new_tokens, context_size): function assign (line 248) | def assign(left, right): function load_weights_into_gpt (line 254) | def load_weights_into_gpt(gpt, params): function generate (line 315) | def generate(model, idx, max_new_tokens, context_size, temperature, top_... class SpamDataset (line 355) | class SpamDataset(Dataset): method __init__ (line 356) | def __init__(self, csv_file, tokenizer, max_length=None, pad_token_id=... method __getitem__ (line 380) | def __getitem__(self, index): method __len__ (line 385) | def __len__(self): method _longest_encoded_length (line 388) | def _longest_encoded_length(self): function calc_loss_batch (line 397) | def calc_loss_batch(input_batch, target_batch, model, device): function calc_loss_loader (line 405) | def calc_loss_loader(data_loader, model, device, num_batches=None): function calc_accuracy_loader (line 425) | def calc_accuracy_loader(data_loader, model, device, num_batches=None): function evaluate_model (line 447) | def evaluate_model(model, train_loader, val_loader, device, eval_iter): function plot_values (line 456) | def plot_values(epochs_seen, examples_seen, train_values, val_values, la... function classify_review (line 476) | def classify_review(text, model, tokenizer, device, pad_length=None, pad... FILE: 05_finetuning-llms/solution/gpt_download.py function download_and_load_gpt2 (line 15) | def download_and_load_gpt2(model_size, models_dir): function download_file (line 45) | def download_file(url, destination): function load_gpt2_params_from_tf_ckpt (line 73) | def load_gpt2_params_from_tf_ckpt(ckpt_path, settings): FILE: 05_finetuning-llms/solution/spam_classifier_utils.py class GPTDatasetV1 (line 23) | class GPTDatasetV1(Dataset): method __init__ (line 24) | def __init__(self, txt, tokenizer, max_length, stride): method __len__ (line 39) | def __len__(self): method __getitem__ (line 42) | def __getitem__(self, idx): function create_dataloader_v1 (line 46) | def create_dataloader_v1(txt, batch_size=4, max_length=256, class MultiHeadAttention (line 64) | class MultiHeadAttention(nn.Module): method __init__ (line 65) | def __init__(self, d_in, d_out, context_length, dropout, num_heads, qk... method forward (line 80) | def forward(self, x): class LayerNorm (line 123) | class LayerNorm(nn.Module): method __init__ (line 124) | def __init__(self, emb_dim): method forward (line 130) | def forward(self, x): class GELU (line 137) | class GELU(nn.Module): method __init__ (line 138) | def __init__(self): method forward (line 141) | def forward(self, x): class FeedForward (line 148) | class FeedForward(nn.Module): method __init__ (line 149) | def __init__(self, cfg): method forward (line 157) | def forward(self, x): class TransformerBlock (line 161) | class TransformerBlock(nn.Module): method __init__ (line 162) | def __init__(self, cfg): method forward (line 176) | def forward(self, x): class GPTModel (line 194) | class GPTModel(nn.Module): method __init__ (line 195) | def __init__(self, cfg): method forward (line 207) | def forward(self, in_idx): function generate_text_simple (line 219) | def generate_text_simple(model, idx, max_new_tokens, context_size): function assign (line 248) | def assign(left, right): function load_weights_into_gpt (line 254) | def load_weights_into_gpt(gpt, params): function generate (line 315) | def generate(model, idx, max_new_tokens, context_size, temperature, top_... class SpamDataset (line 355) | class SpamDataset(Dataset): method __init__ (line 356) | def __init__(self, csv_file, tokenizer, max_length=None, pad_token_id=... method __getitem__ (line 380) | def __getitem__(self, index): method __len__ (line 385) | def __len__(self): method _longest_encoded_length (line 388) | def _longest_encoded_length(self): function calc_loss_batch (line 397) | def calc_loss_batch(input_batch, target_batch, model, device): function calc_loss_loader (line 405) | def calc_loss_loader(data_loader, model, device, num_batches=None): function calc_accuracy_loader (line 425) | def calc_accuracy_loader(data_loader, model, device, num_batches=None): function evaluate_model (line 447) | def evaluate_model(model, train_loader, val_loader, device, eval_iter): function plot_values (line 456) | def plot_values(epochs_seen, examples_seen, train_values, val_values, la... function classify_review (line 476) | def classify_review(text, model, tokenizer, device, pad_length=None, pad...