Skip to content

Instantly share code, notes, and snippets.

View ParthPratim's full-sized avatar
👓
On the hunt to help Open Source grow !

Parth Pratim Chatterjee ParthPratim

👓
On the hunt to help Open Source grow !
View GitHub Profile
@ParthPratim
ParthPratim / model1.py
Last active September 4, 2025 19:36
Twin-Network Joint Learning Model
import torch
import json
import random
import re
import copy
import torch.nn.functional as F
import math
from dataclasses import dataclass
from accelerate import Accelerator
from torch.nn.utils import rnn
@ParthPratim
ParthPratim / rebuttal1.md
Last active July 31, 2025 08:49
Metrics Tables

Gaussian Random Projections

Task axb mrpc qnli sst5
axb 1.000 0.079 0.033 0.009
mrpc 0.079 1.000 0.050 -0.023
qnli 0.033 0.050 1.000 -0.007
sst5 0.009 -0.023 -0.007 1.000

Repmatch Score

@ParthPratim
ParthPratim / dce-device.c
Created March 10, 2021 07:35
Sample KernelHandle NetDevice implementations
#include <linux/ethtool.h>
#include <linux/etherdevice.h>
#include <linux/netdevice.h>
#include <linux/if_arp.h>
#include <linux/if_ether.h>
#include <linux/ethtool.h>
#include <asm/dce_handle_api.h>
struct SimDevice {
@ParthPratim
ParthPratim / dce-socket.c
Created March 10, 2021 07:32
Sample KernelHandle Socket implementations
#include <linux/net.h>
#include <linux/errno.h>
#include <linux/init.h>
#include <linux/version.h>
#include <net/sock.h>
#include <linux/cred.h>
#include <linux/rcupdate.h>
#include <linux/idr.h>
#include <asm/dce-types.h>
#include <linux/fs.h>