Here we present the accompanying code for the following paper
Make sure to install all the requirements first
pip install -r requirements.txtIf your account is able to download LLaMA 3 models, log into huggingface first
huggingface-cli loginFor better loss logging, especially for GLiNER log into WandB
wandb loginTo download the data and preprocess it from the root directory run
bash src/data_preparation.shTo run training, validation generation and then get metrics from the root directory run
bash src/training.shFor finetuning GLiNER you can find the relevant code under
src/gliner/gliner_raytune.ipynb