Downloads · 30 days
25
13% of all-time downloads
AL-GR/Forge-T5-Base-s1
Forge-T5-Base-s1 is a text generation model from AL-GR. Use it when you need the model to write or continue text. It is set up for transformers. The card lists the license as apache-2.0.
This model is initialized from the pre-trained google-t5/t5-base and fine-tuned on the AL-GR/AL-GR-v1 dataset using the FORGE framework for 4 training epochs.
Downloads · 30 days
25
13% of all-time downloads
All-time downloads
193
Public
Parameters
273M
1.1 GB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors1.1 GB · 98%
From the Hugging Face model README
This model is initialized from the pre-trained google-t5/t5-base and fine-tuned on the AL-GR/AL-GR-v1 dataset using the FORGE framework for 4 training epochs.
More details can be found in the paper FORGE: Forming Semantic Identifiers for Generative Retrieval in Industrial Datasets.
Official Code: GitHub Repository
| Model | HR@20 | HR@100 | HR@500 | HR@1000 |
|---|---|---|---|---|
| Forge-Qwen 2.5-0.5B-Base-s1 | 0.0506 | 0.1277 | 0.2602 | 0.3068 |
| Forge-T5-Base-s1 | 0.0284 | 0.0689 | 0.1372 | 0.1557 |
Note: HR@K denotes Hit Rate at K — the proportion of test queries for which the correct answer appears in the top-K retrieved/generated results.
You can download this model locally using the huggingface_hub library:
import os
os.environ["HF_ENDPOINT"] = "https://hf-mirror.com" # Optional: use mirror for faster download in some regions
os.environ["KMP_DUPLICATE_LIB_OK"] = "True"
from huggingface_hub import snapshot_download
snapshot_download(
repo_id='AL-GR/Forge-T5-Base-s1',
local_dir='{YOUR_LOCAL_DIR}', # Replace with your desired local path
local_dir_use_symlinks=False,
)
After downloading, update the configuration file used by the FORGE framework. Specifically, replace the load_checkpoint_from field in the JSON config file:
File: algr/config/generate_t5base_3layer_tiny.json
Update to:
"load_checkpoint_from": "{YOUR_LOCAL_DIR}"
Replace
{YOUR_LOCAL_DIR}with the actual local path where you downloaded the model.
For more details about the training setup, dataset, or evaluation protocol, please refer to the FORGE framework repository.
If you find this work helpful, please cite the following paper:
@article{fu2025forge,
title={FORGE: Forming Semantic Identifiers for Generative Retrieval in Industrial Datasets},
author={Fu, Kairui and Zhang, Tao and Xiao, Shuwen and Wang, Ziyang and Zhang, Xinming and Zhang, Chenchi and Yan, Yuliang and Zheng, Junjun and others},
journal={arXiv preprint arXiv:2509.20904},
year={2025}
}