Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .streamlit/config.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[theme]
base="light"

3 changes: 2 additions & 1 deletion configs/base.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ defaults:
- labeller: golden
- data: aeslc
- al: random
- _self_

experiment_name: ${al.strategy}
name: base
Expand Down Expand Up @@ -87,7 +88,7 @@ evaluation:
deepeval_async_mode: True
deepeval_verbose_mode: False
deepeval_truths_extraction_limit: 10

data:
assistant_response_start: ${model.assistant_response_start}
# test_subset_size: 3
Expand Down
1 change: 1 addition & 0 deletions configs/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ defaults:
- labeller: golden
- data: test
- al: random
- _self_

experiment_name: test
name: test
Expand Down
11 changes: 9 additions & 2 deletions pages/0_Configure_Experiment.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
import os
import tempfile
import traceback
import json
import logging
from json.decoder import JSONDecodeError
from datetime import datetime
from omegaconf import OmegaConf

import streamlit as st
import torch
import yaml
import pandas as pd
from datasets import load_from_disk, Dataset, DatasetDict
Expand All @@ -26,6 +28,9 @@
TEST_DATA_SPLIT_DEFAULT_NAME,
)

# Fix for Examining the path of torch.classes raised error
torch.classes.__path__ = []

# Custom CSS for better styling
st.set_page_config(
page_title="Configure Experiment",
Expand Down Expand Up @@ -378,7 +383,9 @@ def run_active_learning_with_progress(config, progress_callback=None):
update_experiment_status(STATUS_CANCELLED)
raise
except Exception as e:
update_experiment_status(STATUS_COMPLETED)
update_experiment_status(STATUS_FAILED)
print("Exception happened while running an experiment:")
print(traceback.format_exc())
raise


Expand Down Expand Up @@ -625,7 +632,7 @@ def main():
⚠️ Data Privacy Notice
</h4>
<p style="color: #856404; margin-bottom: 0; font-size: 0.9rem;">
<strong>Important:</strong> When using API-based labellers (OpenAI, Anthropic, etc.), your dataset will be sent to external services for processing.
<strong>Important:</strong> When using API-based labellers (OpenAI, Anthropic, etc.), your dataset will be sent to external services for processing.
Please ensure you have the necessary permissions and that your data complies with the respective service providers' terms of use and privacy policies.
Consider using local/custom models if your data contains sensitive or proprietary information.
</p>
Expand Down
4 changes: 2 additions & 2 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ benepar==0.2.0
bert-score==0.3.13
bitsandbytes==0.45.3
ctc_score==0.1.3
datasets==3.4.0
datasets==3.4.1
deepeval==2.5.5
evaluate==0.4.3
hydra-core==1.3.2
Expand All @@ -31,6 +31,6 @@ tabulate==0.9.0
transformers==4.52.4
trl==0.15.2
torchmetrics==1.4.1
unsloth==2025.3.17
unsloth==2025.8.1
vllm==0.8.1
xlrd==1.2.0
1 change: 1 addition & 0 deletions src/atgen/utils/load_model_tokenizer.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
import torch

if torch.cuda.is_available():
import unsloth
from unsloth import FastLanguageModel
else:

Expand Down