Skip to content

Instantly share code, notes, and snippets.

View Meowu's full-sized avatar
🎯
Focusing

Meowu Meowu

🎯
Focusing
View GitHub Profile
@Meowu
Meowu / grpo_demo.py
Created February 11, 2025 03:57 — 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
Title: Douma: Part 1 - Deception In Plain Sight
URL Source: https://www.medialens.org/2018/douma-part-1-deception-in-plain-sight/
Published Time: 2018-04-25T06:48:12+0100
Markdown Content:
![Image 20](https://www.medialens.org/wp-content/uploads/2018/04/rsz_douma_attack-678x330.png)
UK corporate media are under a curious kind of military occupation. Almost all print and broadcast media now employ a number of reporters and commentators who are relentless and determined warmongers. Despite the long, unarguable history of US-UK lying on war, and the catastrophic results, these journalists instantly confirm the veracity of atrocity claims made against Official Enemies, while having little or nothing to say about the proven crimes of the US, UK, Israel and their allies. They shriek with a level of moral outrage from which their own government is forever spared. They laud even the most obviously biased, tinpot sources blaming the ‘Enemy’, while dismissing out of hand the best scientific researchers, investigati
@Meowu
Meowu / RELEASE-NOTES.md
Created July 26, 2022 03:18 — forked from andreasonny83/RELEASE-NOTES.md
Release Notes Template

Release Notes Template

Based off https://palantir.quip.com/pzRwAVr1bpzf

Pro-tip: look through the github diff between the previous release to see what's changed. The commit titles should give an outline of what's happened.

Upgrade Steps

  • List out, as concretely as possible, any steps users have to take when they upgrade beyond just dumping the dependency.
  • Write pseudocode that highlights what code should change and how.
let map = {}; //定义一个map对象,用来存放每一ms的数据量, key: 毫秒 value: 字节数,示例: 1578648506560: 50
let map_max_key = 0;// 当前map中最大的key
const change = async (i, value) => {
map[i] = value;
map_max_key = i
};
/**
* 上传文件至阿里云
@Meowu
Meowu / monitor.js
Last active November 23, 2024 08:34
/**
*
* @param {url} url 异步加载js
*/
function insertJs (url = '') {
return new Promise(function (resolve, reject) {
let script = document.createElement("script");
script.type = "text/javascript";