File size: 971 Bytes
d15f07c
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
---
sidebar_position: 9
---

# Variable name migration (`HUGGINGFACE_TOKEN` → `HF_TOKEN`)

## What changed?

Environment variables and docs now use **`HF_TOKEN`** (matches Hugging Face Hub conventions and `.env.example`).

| Old name | New name |
|----------|----------|
| `HUGGINGFACE_TOKEN` | `HF_TOKEN` |

`HF_USERNAME` is unchanged.

## Local `.env`

```bash
# Old (rename if present)
# HUGGINGFACE_TOKEN=hf_...

# Current
HF_TOKEN=hf_your_token_here
```

## GitHub Actions

Rename the repository secret **`HUGGINGFACE_TOKEN`** → **`HF_TOKEN`** (same token value). The workflow `.github/workflows/deploy-huggingface.yml` reads `secrets.HF_TOKEN`.

## Colab

Colab Secret name: **`HF_TOKEN`** (not `HUGGINGFACE_TOKEN`).

## Verification

```bash
echo $HF_TOKEN
python -m hosting.huggingface check-vars
```

## Summary

- **Canonical:** `HF_TOKEN` in `.env`, scripts, CI, and Colab.
- **Remove:** `HUGGINGFACE_TOKEN` from `.env` and GitHub secrets after migrating.