diff options
| author | YurenHao0426 <blackhao0426@gmail.com> | 2026-01-27 09:57:37 -0600 |
|---|---|---|
| committer | YurenHao0426 <blackhao0426@gmail.com> | 2026-01-27 09:57:37 -0600 |
| commit | dc801c07cf38b0c495686463e6ca6f871a64440e (patch) | |
| tree | 599f03114775921dbc472403c701f4a3a8ea188a /collaborativeagents/slurm/generate_profiles.sh | |
| parent | e43b3f8aa36c198b95c1e46bea2eaf3893b13dc3 (diff) | |
Add collaborativeagents module and update gitignore
- Add collaborativeagents subproject with adapters, agents, and evaluation modules
- Update .gitignore to exclude large binary files (.whl, .tar), wandb logs, and results
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Diffstat (limited to 'collaborativeagents/slurm/generate_profiles.sh')
| -rw-r--r-- | collaborativeagents/slurm/generate_profiles.sh | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/collaborativeagents/slurm/generate_profiles.sh b/collaborativeagents/slurm/generate_profiles.sh new file mode 100644 index 0000000..936a1e6 --- /dev/null +++ b/collaborativeagents/slurm/generate_profiles.sh @@ -0,0 +1,39 @@ +#!/bin/bash +#SBATCH --job-name=gen_profiles +#SBATCH --account=bfqt-delta-gpu +#SBATCH --partition=cpu +#SBATCH --nodes=1 +#SBATCH --ntasks=1 +#SBATCH --cpus-per-task=4 +#SBATCH --mem=16G +#SBATCH --time=00:30:00 +#SBATCH --output=logs/gen_profiles_%j.out +#SBATCH --error=logs/gen_profiles_%j.err + +# Generate 100 user profiles from schema (no LLM required) +# This is fast and doesn't need GPU + +set -e + +cd /projects/bfqt/users/yurenh2/ml-projects/personalization-user-model + +# Create logs directory +mkdir -p collaborativeagents/slurm/logs +mkdir -p collaborativeagents/data/complex_profiles_v2 + +echo "Starting profile generation at $(date)" +echo "Job ID: $SLURM_JOB_ID" + +# Use the eval environment (has required packages) +source /u/yurenh2/miniforge3/etc/profile.d/conda.sh +conda activate eval + +# Generate profiles from schema (no LLM needed) +python collaborativeagents/scripts/generate_profiles_v2.py \ + --num_profiles 100 \ + --from_schema collaborativeagents/data/preference_schema_v2_sample.json \ + --output collaborativeagents/data/complex_profiles_v2/profiles_100.jsonl \ + --seed 42 + +echo "Profile generation completed at $(date)" +echo "Output: collaborativeagents/data/complex_profiles_v2/profiles_100.jsonl" |
