ANLP Assignment 1 - C3: Grouped-Query Attention

Encoder-decoder Transformer built from basic PyTorch operations (no nn.Transformer, nn.MultiheadAttention or nn.LayerNorm), trained to map encrypted binary sequences to plaintext.

Configuration

C3 - Grouped-Query Attention

Test metrics (greedy decoding)

{
  "config": "C3",
  "params": 6583296,
  "train_time_s": 3288.3812091350555,
  "sec_per_epoch": 46.97687441621508,
  "test_bit_accuracy": 0.991681403344119,
  "test_char_accuracy": 0.9792019805100988,
  "test_sequence_accuracy": 0.9076452599388379,
  "test_levenshtein": 0.1577981651376147,
  "test_levenshtein_norm": 0.0025980652134508617,
  "test_bleu": 0.9794481544905806,
  "test_rouge_l": 0.9888820909927502,
  "peak_mem_mb": 1317.060096
}

Files

  • C3.pt - model weights, config and training arguments

Code: https://github.com/shaurya-kochar/anlp-assignment1 WandB: https://wandb.ai/shaurya-kochar-iiit-hyderabad/anlp-a1-transformer-ablation

Downloads last month

-

Downloads are not tracked for this model. How to track
Inference Providers NEW
This model isn't deployed by any Inference Provider. ๐Ÿ™‹ Ask for provider support