Spaces:
Sleeping
Sleeping
File size: 1,380 Bytes
d1d1260 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 | {
"cells": [
{
"cell_type": "markdown",
"metadata": {},
"source": ["# Autonomic DBRE — GRPO Training\n", "Runtime → Change runtime type → T4 GPU"]
},
{
"cell_type": "code",
"metadata": {},
"source": ["!pip install -q transformers accelerate peft bitsandbytes trl psycopg2-binary faker sqlparse gymnasium datasets\n", "!apt-get update -qq && apt-get install -y -qq postgresql postgresql-client > /dev/null 2>&1\n", "!service postgresql start\n", "!su - postgres -c \"psql -c \\\"CREATE USER dbre_admin WITH PASSWORD 'dbre_pass';\\\"\" 2>/dev/null\n", "!su - postgres -c \"psql -c \\\"CREATE DATABASE dbre OWNER dbre_admin;\\\"\" 2>/dev/null"],
"execution_count": null,
"outputs": []
},
{
"cell_type": "code",
"metadata": {},
"source": ["import os\n", "os.environ.update({'DB_USER':'dbre_admin','DB_PASSWORD':'dbre_pass','DB_NAME':'dbre','DB_HOST':'localhost','DB_PORT':'5432'})\n", "!git clone https://github.com/ZeroiJ/autonomus-DBRE.git\n", "%cd autonomus-DBRE"],
"execution_count": null,
"outputs": []
},
{
"cell_type": "code",
"metadata": {},
"source": ["!DB_USER=dbre_admin DB_PASSWORD=dbre_pass python3 train.py"],
"execution_count": null,
"outputs": []
}
],
"metadata": {"kernelspec": {"display_name": "Python 3", "language": "python", "name": "python3"}},
"nbformat": 4, "nbformat_minor": 2
}
|