Downloads · 30 days
15
24% of all-time downloads
Charles59/lens-pretrained
lens-pretrained is a machine learning model from Charles59. Use it for the machine learning task on the model card, and read the license before you ship it in a product. It is set up for transformers. The card lists the license as cc-by-nc-4.0.
Pretrained checkpoint of Lens, a knowledge-guided foundation model for network traffic (TMLR). The backbone is T5-v1.1-base (~0.25B params) with a network-specific BBPE tokenizer (vocab 32,112), pretrained on network-…
Downloads · 30 days
15
24% of all-time downloads
All-time downloads
63
Public
Repo size
990 MB
Likes
1
Public
Click a slice to open those files.
.bin990 MB · 100%
From the Hugging Face model README
Pretrained checkpoint of Lens, a knowledge-guided foundation model for network traffic (TMLR). The backbone is T5-v1.1-base (~0.25B params) with a network-specific BBPE tokenizer (vocab 32,112), pretrained on network-traffic flows with a knowledge-guided masked-span objective.
pytorch_model.bin — pretrained weights (loads cleanly into T5ForConditionalGeneration).config.json — model config (T5-v1.1-base, vocab_size=32112).tokenizer.json, tokenizer_config.json, special_tokens_map.json — the network BBPE tokenizer.from transformers import T5ForConditionalGeneration, AutoTokenizer
tokenizer = AutoTokenizer.from_pretrained("Charles59/lens-pretrained")
model = T5ForConditionalGeneration.from_pretrained("Charles59/lens-pretrained")
The released Lens code adds the special tokens <SIP> / <DIP> (anonymized source/destination
IP) at fine-tuning time and can run the optimized flash-attention variant
(attention_type='flash'). For exact reproduction, load this checkpoint with the Lens training
scripts and the corresponding downstream data.
Charles59/lens-network-trafficCharles59/lens-network-traffic-generationCC-BY-NC-4.0. Underlying data comes from academic datasets via NetBench (Qian et al., 2024); their original terms also apply.
@article{li2026lens,
title = {Lens: A Knowledge-Guided Foundation Model for Network Traffic},
author = {Li, Xiaochang and Qian, Chen and Wang, Qineng and Kong, Jiangtao and Wang, Yuchen and Yao, Ziyu and Ji, Bo and Cheng, Long and Zhou, Gang and Shao, Huajie},
journal = {Transactions on Machine Learning Research},
issn = {2835-8856},
year = {2026},
url = {https://openreview.net/forum?id=cGDwTgnJIR},
note = {arXiv:2402.03646}
}