taohu commited on
Commit
2c50b20
·
verified ·
1 Parent(s): 0839907

Upload FastGen/README.md with huggingface_hub

Browse files
Files changed (1) hide show
  1. FastGen/README.md +50 -0
FastGen/README.md CHANGED
@@ -50,6 +50,56 @@ cd FastGen
50
  pip install -e .
51
  ```
52
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
53
  ### Credentials (Optional)
54
 
55
  For W&B logging, [get your API key](https://wandb.ai/settings) and save it to `credentials/wandb_api.txt` or set the `WANDB_API_KEY` environment variable.
 
50
  pip install -e .
51
  ```
52
 
53
+ ### Offline Installation
54
+
55
+ For air-gapped or isolated environments without internet access, use the pre-packaged offline bundle from HuggingFace:
56
+
57
+ ```bash
58
+ # On a machine WITH internet: download the offline package (~68 GB)
59
+ pip install huggingface_hub
60
+ huggingface-cli download taohu/fastgen-offline --local-dir ./offline_package
61
+
62
+ # Transfer to offline machine (USB, rsync, etc.)
63
+ # rsync -avz ./offline_package user@offline-machine:/path/to/
64
+ ```
65
+
66
+ On the offline machine:
67
+
68
+ ```bash
69
+ cd /path/to/offline_package
70
+
71
+ # Run the setup script (creates conda env, installs packages, configures paths)
72
+ bash FastGen/scripts/setup_offline_env.sh
73
+
74
+ # Activate the environment
75
+ source activate_fastgen.sh
76
+
77
+ # Verify installation
78
+ python -c "import torch; print(f'PyTorch: {torch.__version__}')"
79
+ python -c "from diffusers import WanPipeline; print('Diffusers: OK')"
80
+ python -c "from fastgen.networks.Wan.network import Wan; print('FastGen: OK')"
81
+ ```
82
+
83
+ Run data-free training (no video dataset required):
84
+
85
+ ```bash
86
+ cd FastGen
87
+ python train.py --config=fastgen/configs/experiments/WanT2V/config_sf_datafree.py
88
+ ```
89
+
90
+ The offline package includes:
91
+ - Python wheels for all dependencies (~3.3 GB)
92
+ - Wan-T2V-1.3B model from HuggingFace (~27 GB)
93
+ - Self-Forcing checkpoints (~38 GB)
94
+ - FastGen source code
95
+
96
+ To prepare your own offline package (e.g., for different Python version or platform):
97
+
98
+ ```bash
99
+ python scripts/prepare_offline_package.py --output-dir ./my_offline_package \
100
+ --python-version 311 --platform manylinux2014_x86_64 --create-archive
101
+ ```
102
+
103
  ### Credentials (Optional)
104
 
105
  For W&B logging, [get your API key](https://wandb.ai/settings) and save it to `credentials/wandb_api.txt` or set the `WANDB_API_KEY` environment variable.