Skip to content

PKU-PCNI/WiFo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 

Repository files navigation

WiFo

B. Liu, S. Gao, X. Liu, X. Cheng, L. Yang. “WiFo: Wireless Foundation Model for Channel Prediction. ” SCIENCE CHINA Information Sciences, June 2025, 68(6): 162302.

📢 Latest Updates

🔥🔥🔥 Last Updated on 2025.11.27 🔥🔥🔥

Dependencies and Installation

  • Python 3.9 (Recommend to use Anaconda)
  • Pytorch 2.0.0
  • NVIDIA GPU + CUDA
  • Python packages: pip install -r requirements.txt

Dataset Preparation

The dataset used for inference is available in [Testing Dataset]. The dataset used for pre-training is available in [Pretraining Dataset]

Get Started

We have released the pre-trained weights of WiFo-Large/Base/Small/Little/Tiny for inference in [Model].

Inference command for multi-dataset unified learning

python main.py --device_id 1 --size base --mask_strategy_random none --mask_strategy temporal --dataset D1*D2*D3*D4*D5*D6*D7*D8*D9*D10*D11*D12*D13*D14*D15*D16 --file_load_path ./weights/wifo_base --few_ratio 0.0 --t_patch_size 4 --patch_size 4 --batch_size 128 --pos_emb SinCos_3D
python main.py --device_id 1 --size base --mask_strategy_random none --mask_strategy fre --dataset D1*D2*D3*D4*D5*D6*D7*D8*D9*D10*D11*D12*D13*D14*D15*D16 --file_load_path ./weights/wifo_base --few_ratio 0.0 --t_patch_size 4 --patch_size 4 --batch_size 128 --pos_emb SinCos_3D

Inference command for zero-shot generalization

python main.py --device_id 1 --size base --mask_strategy_random none --mask_strategy temporal --dataset D17 --file_load_path ./weights/wifo_base --few_ratio 0.0 --t_patch_size 4 --patch_size 4 --batch_size 128 --pos_emb SinCos_3D

Citation

If you find this repo helpful, please cite our paper.

@article{liu2025wifo,
  author  = {Liu, Boxun and Gao, Shijian and Liu, Xuanyu and Cheng, Xiang and Yang, Liuqing},
  title   = {{WiFo: Wireless Foundation Model for Channel Prediction}},
  journal = {Sci. China Inf. Sci.},
  volume  = {68},
  pages   = {162302},
  year    = {2025},
  month   = {May},
  doi     = {10.1007/s11432-025-4349-0}
}

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages