Skip to content

Instantly share code, notes, and snippets.

View JihoChoi's full-sized avatar
☘️
🪴 🌱

Jiho Choi JihoChoi

☘️
🪴 🌱
View GitHub Profile
@shreydesai
shreydesai / additive_attention.py
Last active October 7, 2024 22:59
PyTorch Additive Attention
import torch
import torch.nn as nn
class AdditiveAttention(nn.Module):
def __init__(self, hidden_dim):
super().__init__()
self.hidden_dim = hidden_dim
@coolaj86
coolaj86 / Create a Bootable MacOS Recovery USB with Linux.md
Last active May 8, 2025 23:51
How to create Apple's Bootable MacOS Rescue Image from Linux

See bootableinstaller.com

How to create a Bootable MacOS Recovery USB from Linux

If your Mac is out-of-order or you otherwise cannot download macOS from the App Store, you can still create a bootable OS X recovery USB, and you can use that to create an Installer USB.

The downloads used in this process are legal and freely avaliable - including disk images directly from Apple's IT support pages, and open source utilities for extracting and converting pkg, dmg, and HFS+.

@janbenetka
janbenetka / bq_date_loop.sql
Last active November 20, 2022 12:46
[BQ Loop over days] Date loop for backfills #bigquery #sql #date #loop
DECLARE i INT64 DEFAULT 0;
DECLARE DATES ARRAY<DATE>;
DECLARE event_date DATE;
SET DATES = GENERATE_DATE_ARRAY(DATE(2019,1,1), DATE(2019, 12, 31), INTERVAL 1 DAY);
LOOP
SET i = i + 1;
IF i > ARRAY_LENGTH(DATES) THEN
@GzuPark
GzuPark / pytorch.Dockerfile
Created February 3, 2022 08:20
Sample Dockerfiles for TensorFlow & PyTorch
ARG UBUNTU_VERSION=20.04
ARG CUDA_VERSION=11.3.1
ARG CUDA=11.3
ARG CUDNN_VERSION=8
FROM nvidia/cuda:${CUDA_VERSION}-cudnn${CUDNN_VERSION}-devel-ubuntu${UBUNTU_VERSION}
LABEL maintainer "http://gzupark.dev"
ARG CUDA_VERSION
ARG CUDA
@Pusnow
Pusnow / CS 분야 우수 학술대회 목록.csv
Last active May 16, 2025 06:06
CS 분야 우수 학술대회 목록
약자 한국정보과학회 (2024) BK21플러스 IF (2018) KAIST CS (2022) SNU CSE (2024.4) POSTECH CSE (2024.9) 평균 (정규화) 학회명 DBLP Key
AAAI 최우수 4 O O 최우수 1.00 AAAI Conference on Artificial Intelligence (AAAI) conf/aaai
AAMAS 우수 2 0.20 International Conference on Autonomous Agents and Multiagent Systems (AAMAS) conf/ifaamas
ACCV 우수 1 우수 0.25 Asian Conference on Computer Vision (ACCV) conf/accv
ACL 최우수 4 O O 최우수 1.00 Annual Meeting of the Association for Computational Linguistics (ACL) conf/acl
ACL Findings 우수 우수 0.20 Findings of ACL series/findacl
ACNS 우수 0.10 International Conference on Applied Cryptography and Network Security (ACNS) conf/acns
ACSAC 우수 2 우수 0.30 Annual Computer Security Applications Conference (ACSAC) conf/acsac
AIED 우수 0.10 International Conference on Artificial Intelligence in Education (AIED) conf/aied
AISTATS 우수 1 우수 0.25 International Conference on Artificial Intelligence and Statistics (AISTATS) conf/aistats
@denguir
denguir / cuda_install.md
Last active May 16, 2025 10:35
Installation procedure for CUDA / cuDNN / TensorRT

How to install CUDA / cuDNN / TensorRT on Ubuntu

Install NVIDIA drivers

Update & upgrade

sudo apt update && sudo apt upgrade

Remove previous NVIDIA installation

import argparse
import copy
import numpy as np
import os
import random
import torch
import torch.nn as nn
import torch.nn.functional as F
import torchvision.transforms as T
import tqdm