Update README.md
Browse files
README.md
CHANGED
@@ -1,3 +1,92 @@
|
|
1 |
-
---
|
2 |
-
license: mit
|
3 |
-
---
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
license: mit
|
3 |
+
---
|
4 |
+
# TA-SAE Model Card
|
5 |
+
|
6 |
+
This repository contains the trained Temporal-Aware Sparse AutoEncoder (TA-SAE) models for different layers.
|
7 |
+
|
8 |
+
## Model Description
|
9 |
+
|
10 |
+
TA-SAE is a specialized autoencoder model designed for temporal feature extraction and compression. Each layer model represents a different level of feature abstraction in the network.
|
11 |
+
|
12 |
+
|
13 |
+
## Usage
|
14 |
+
|
15 |
+
### Installation
|
16 |
+
|
17 |
+
```python
|
18 |
+
pip install huggingface_hub
|
19 |
+
```
|
20 |
+
|
21 |
+
### Loading Models
|
22 |
+
|
23 |
+
#### Download a specific file:
|
24 |
+
|
25 |
+
```python
|
26 |
+
from huggingface_hub import hf_hub_download
|
27 |
+
|
28 |
+
# Download specific layer model
|
29 |
+
file_path = hf_hub_download(
|
30 |
+
repo_id="jeix/TA-SAE",
|
31 |
+
filename="PixArt/SAE-Layer0/model.safetensors"
|
32 |
+
)
|
33 |
+
```
|
34 |
+
|
35 |
+
#### Download all files for a specific layer:
|
36 |
+
|
37 |
+
```python
|
38 |
+
from huggingface_hub import snapshot_download
|
39 |
+
|
40 |
+
# Download all files for layer0
|
41 |
+
local_dir = snapshot_download(
|
42 |
+
repo_id="jeix/TA-SAE",
|
43 |
+
repo_type="model",
|
44 |
+
allow_patterns="PixArt/SAE-Layer0/*"
|
45 |
+
)
|
46 |
+
```
|
47 |
+
|
48 |
+
#### Download all layers:
|
49 |
+
|
50 |
+
```python
|
51 |
+
local_dir = snapshot_download(
|
52 |
+
repo_id="jeix/TA-SAE",
|
53 |
+
repo_type="model",
|
54 |
+
allow_patterns="PixArt/SAE-Layer*/*"
|
55 |
+
)
|
56 |
+
```
|
57 |
+
|
58 |
+
### Using Command Line
|
59 |
+
|
60 |
+
#### Install CLI tool
|
61 |
+
|
62 |
+
```bash
|
63 |
+
pip install -U huggingface_hub
|
64 |
+
```
|
65 |
+
|
66 |
+
#### Download specific file
|
67 |
+
|
68 |
+
```bash
|
69 |
+
huggingface-cli download jeix/TA-SAE --local-dir ./download --include "PixArt/SAE-Layer0/model.safetensors"
|
70 |
+
```
|
71 |
+
|
72 |
+
## Model Files Description
|
73 |
+
|
74 |
+
Each layer directory contains the following files:
|
75 |
+
|
76 |
+
- `model.safetensors`: The main model weights
|
77 |
+
- `optimizer.bin`: Optimizer state
|
78 |
+
- `scheduler.bin`: Learning rate scheduler state
|
79 |
+
- `random_states_0.pkl`: Random state information
|
80 |
+
- `scaler.pt`: Data scaling parameters
|
81 |
+
|
82 |
+
<!-- ## License
|
83 |
+
|
84 |
+
[Add your license information here]
|
85 |
+
|
86 |
+
## Citation
|
87 |
+
|
88 |
+
[Add citation information if applicable]
|
89 |
+
|
90 |
+
## Contact
|
91 |
+
|
92 |
+
[Add your contact information or github profile] -->
|