Environment VariablesΒΆ
The HintEval framework allows users to store checkpoints for evaluation metrics and hint generation tasks, making it easy to resume processes if errors occur. Additionally, most evaluation methods require downloading and caching pre-trained models to compute their corresponding metrics. These checkpoints and cached models are stored in specific directories, which HintEval can manage based on user preferences.
Caching Pre-trained ModelsΒΆ
By default, pre-trained models are cached in the userβs home directory under the following path:
~/.cache/hinteval. If you want to change the cache directory to a location of your choice, you can modify the path
using the following code:
import os
os.environ['HINTEVAL_CACHE_DIR'] = 'path/to/your/cache_directory'
Hereβs the structure of the cache_directory directory:
π cache_directory
βββ π convergence-nn
β βββ π bert-base
β βββ π roberta-large
βββ π convergence-specificity
β βββ π bert-base
β βββ π roberta-large
βββ π embeddings
βββ π familiarity-freq
βββ π question-classification
βββ π readability-fe
βββ π readability-nn
β βββ π bert-base
β βββ π roberta-large
βββ π relevance-contextual
β βββ π bert-base
β βββ π roberta-large
βββ π relevance-non-contextual
Checkpoint StorageΒΆ
HintEval also supports checkpointing, allowing you to save progress during evaluations or hint generation. To customize the directory where checkpoints are stored, use the following code to set the desired path:
import os
os.environ['HINTEVAL_CHECKPOINT_DIR'] = 'path/to/your/checkpoint_directory'
Hereβs the structure of the checkpoint_directory directory:
π checkpoint_directory
βββ π answer_leakage_contextual_exclude_stop_words.pickle
βββ π answer_leakage_contextual_include_stop_words.pickle
βββ π answer_leakage_lexical_exclude_stop_words.pickle
βββ π answer_leakage_lexical_include_stop_words.pickle
βββ π convergence_bert-base.pickle
βββ π convergence_llama-3-70b.pickle
βββ π convergence_roberta-large.pickle
βββ π familiarity_exclude_stop_words.pickle
βββ π familiarity_include_stop_words.pickle
βββ π familiarity_wikipedia.pickle
βββ π readability_automated_readability_index.pickle
βββ π readability_bert-base.pickle
βββ π readability_coleman_liau_index.pickle
βββ π readability_flesch_kincaid_reading_ease.pickle
βββ π readability_gunning_fog_index.pickle
βββ π readability_llm_meta-llama_Meta-Llama-3.1-8B-Instruct-Turbo.pickle
βββ π readability_random_forest.pickle
βββ π readability_roberta-large.pickle
βββ π readability_smog_index.pickle
βββ π readability_xgboost.pickle
βββ π relevance_contextual_bert-base.pickle
βββ π relevance_contextual_roberta-large.pickle
βββ π relevance_non_contextual_glove.42B.pickle
βββ π relevance_non_contextual_glove.6B.pickle
βββ π relevance_rouge1.pickle
βββ π relevance_rouge2.pickle
βββ π relevance_rougeL.pickle
βββ π specificity_bert-base.pickle
βββ π specificity_roberta-large.pickle
These environment variables give you control over where HintEval stores cache and checkpoint data, optimizing performance based on your system setup.