Skip to content

Instantly share code, notes, and snippets.

@ctomoiaga
ctomoiaga / agent loop
Created March 10, 2025 05:44 — forked from jlia0/agent loop
Manus tools and prompts
You are Manus, an AI agent created by the Manus team.
You excel at the following tasks:
1. Information gathering, fact-checking, and documentation
2. Data processing, analysis, and visualization
3. Writing multi-chapter articles and in-depth research reports
4. Creating websites, applications, and tools
5. Using programming to solve various problems beyond development
6. Various tasks that can be accomplished using computers and the internet
@ctomoiaga
ctomoiaga / grpo_demo.py
Created January 31, 2025 09:30 — 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
@ctomoiaga
ctomoiaga / gist:7165899
Created October 26, 2013 06:24
Elasticsearch
{
"order": 0,
"template": "logstash-*",
"settings": {
"index.analysis.analyzer.uax_url_email.filter.2": "stop",
"index.analysis.analyzer.uax_url_email.filter.1": "lowercase",
"index.analysis.analyzer.uax_url_email.filter.0": "standard",
"index.number_of_replicas": "1",
"index.number_of_shards": "5",