Skip to content
View dhcode-cpp's full-sized avatar
🐒
Making AI Safer
🐒
Making AI Safer

Block or report dhcode-cpp

Block user

Prevent this user from interacting with your repositories and sending you notifications. Learn more about blocking users.

You must be logged in to block users.

Maximum 250 characters. Please don't include any personal information such as legal names or email addresses. Markdown supported. This note will be visible to only you.
Report abuse

Contact GitHub support about this user’s behavior. Learn more about reporting abuse.

Report abuse
118 stars written in Python
Clear filter

A numpy-only implementation of a Convolutional Neural Network, from the ground up.

Python 230 78 Updated Nov 19, 2018

The absolute most basic example of AlphaZero and Monte Carlo Tree Search I could come up with

Python 223 37 Updated Apr 3, 2023

Code for STaR: Bootstrapping Reasoning With Reasoning (NeurIPS 2022)

Python 218 23 Updated Feb 21, 2023

General Reasoner: Advancing LLM Reasoning Across All Domains [NeurIPS25]

Python 198 11 Updated Oct 29, 2025

LLM Unlearning

Python 177 20 Updated Oct 20, 2023

Implementation of FlashAttention in PyTorch

Python 172 20 Updated Jan 12, 2025

Variational Autoencoder implemented with PyTorch, Trained over CelebA Dataset

Python 171 50 Updated Sep 19, 2017

Recreating PyTorch from scratch (C/C++, CUDA, NCCL and Python, with multi-GPU support and automatic differentiation!)

Python 160 11 Updated Jun 6, 2024
Python 153 12 Updated Oct 27, 2025

Code for reproducing results in the sliced score matching paper (UAI 2019)

Python 147 24 Updated Jan 7, 2020

cnn

Python 134 23 Updated Sep 8, 2019

Flash Attention Triton kernel with support for second-order derivatives

Python 110 10 Updated Oct 21, 2025

Large scale 4D parallelism pre-training for 🤗 transformers in Mixture of Experts *(still work in progress)*

Python 87 19 Updated Dec 14, 2023

[ICML 2024 Oral] Official code repository for MLLM-as-a-Judge.

Python 86 6 Updated Feb 17, 2025

Pipeline Parallelism Emulation and Visualization

Python 70 5 Updated Jun 12, 2025

Utility scripts for PyTorch (e.g. Make Perfetto show some disappearing kernels, Memory profiler that understands more low-level allocations such as NCCL, ...)

Python 64 5 Updated Sep 11, 2025

[ICML 2024] On Discrete Prompt Optimization for Diffusion Models - Google

Python 62 2 Updated Aug 14, 2024
Python 59 8 Updated Mar 9, 2023

ICML 2024 - Official Repository for EXO: Towards Efficient Exact Optimization of Language Model Alignment

Python 57 1 Updated Jun 16, 2024

A re-implementation of the "Red Teaming Language Models with Language Models" paper by Perez et al., 2022

Python 35 3 Updated Oct 9, 2023

GaLore: Memory-Efficient LLM Training by Gradient Low-Rank Projection

Python 22 1 Updated Mar 7, 2024

The official evaluation suite and dynamic data release for MixEval.

Python 11 2 Updated Sep 23, 2024

Safe-RLHF: Constrained Value Alignment via Safe Reinforcement Learning from Human Feedback

Python 4 Updated May 16, 2024

Example code demonstrating how LLMs could be Red Teamed.

Python 2 Updated Aug 8, 2025

A Port of Fréchet Inception Distance (FID score) to PyTorch

Python 1 1 Updated Jan 31, 2019