Skip to content

Instantly share code, notes, and snippets.

View anis-marrouchi's full-sized avatar
🚙
If AI is the car I'm the driver

Anis Marrouchi anis-marrouchi

🚙
If AI is the car I'm the driver
View GitHub Profile
@anis-marrouchi
anis-marrouchi / grpo_demo.py
Created February 1, 2025 10:35 — 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
@anis-marrouchi
anis-marrouchi / yt-chroma-db-multi-doc-retriever-langchain-part1.ipynb
Created May 10, 2023 10:42
YT Chroma DB Multi doc retriever Langchain Part1.ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@anis-marrouchi
anis-marrouchi / AutoML_data_preparation_AIA023.ipynb
Created March 20, 2023 10:52 — forked from yufengg/AutoML_data_preparation_AIA023.ipynb
Notebook for preparing a CSV for Google Cloud AutoML Vision
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@anis-marrouchi
anis-marrouchi / EmailExampleTest.php
Created November 20, 2017 13:08 — forked from GesJeremie/EmailExampleTest.php
Email test case for testing emails with Mailtrap.io in Phpunit
<?php
/*
|--------------------------------------------------------------------------
| EmailExampleTest
|--------------------------------------------------------------------------
|
| Email test case for testing emails with Mailtrap.io in Phpunit
|
| Requirements:
| - Laravel 5.1
@anis-marrouchi
anis-marrouchi / materialize_form_theme.html.twig
Created May 18, 2017 20:54 — forked from JusteLeblanc/materialize_form_theme.html.twig
Symfony2 form theme to integrate Materialize in your Symfony2 forms
{% extends 'form_div_layout.html.twig' %}
{% block form_row -%}
<div class="row{% if (not compound or force_error|default(false)) and not valid %} has-error{% endif %}">
<div class="input-field col s12">
{{- form_widget(form) -}}
{{- form_label(form) -}}
{{- form_errors(form) -}}
</div>
</div>