Skip to content

Instantly share code, notes, and snippets.

View mohayl's full-sized avatar

Mohammed Ayalew Belay mohayl

  • NTNU
View GitHub Profile
@mohayl
mohayl / grpo_demo.py
Created January 31, 2025 14:58 — forked from willccbb/grpo_demo.py
GRPO Llama-1B
# train_grpo.py
import re
import torch
from datasets import load_dataset, Dataset
from transformers import AutoTokenizer, AutoModelForCausalLM
from peft import LoraConfig
from trl import GRPOConfig, GRPOTrainer
# Load and prep dataset
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@mohayl
mohayl / Anomaly_Detection.ipynb
Created January 4, 2022 12:55 — forked from thedatajango/Anomaly_Detection.ipynb
Anomaly Detection using Gaussian (Normal) Distribution
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
#main {
width: 400px;
}
#container {
width: 400px;
}
#answer {
font-color: red;