You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
`trackio` is a lightweight, free experiment tracking Python library built on top of Hugging Face Datasets and Spaces 🤗.
9
6
10
-
11
7

12
8
9
+
-**API compatible** with `wandb.init`, `wandb.log`, and `wandb.finish`. Drop-in replacement: just
13
10
14
-
-**API compatible** with `wandb.init`, `wandb.log`, and `wandb.finish` (drop-in replacement: just `import trackio as wandb`)
15
-
-*Local-first* design: dashboard runs locally by default. You can also host it on Spaces by specifying a `space_id`.
11
+
```python
12
+
import trackio as wandb
13
+
```
14
+
15
+
-**Local-first** design: dashboard runs locally by default. You can also host it on Spaces by specifying a `space_id`.
16
16
- Persists logs locally (or in a private Hugging Face Dataset)
17
17
- Visualize experiments with a Gradio dashboard locally (or on Hugging Face Spaces)
18
-
- Everything here, including hosting on Hugging Faces, is **free**!
19
-
20
-
Trackio is designed to be lightweight (the core codebase is <1,000 lines of Python code), not fully-featured. It is designed in an extensible way and written entirely in Python so that developers can easily fork the repository and add functionality that they care about.
18
+
- Everything here, including hosting on Hugging Face, is **free**!
21
19
20
+
Trackio is designed to be lightweight (the core codebase is <3,000 lines of Python code), not fully-featured. It is designed in an extensible way and written entirely in Python so that developers can easily fork the repository and add functionality that they care about.
22
21
23
22
## Installation
24
23
@@ -36,48 +35,51 @@ uv pip install trackio
36
35
37
36
## Usage
38
37
39
-
The usage of `trackio` is designed to be a identical to `wandb` in most cases:
38
+
To get started, you can run a simple example that logs some fake training metrics:
it will use an existing or automatically deploy a new Hugging Face Space as needed. You should be logged in with the `huggingface-cli` locally and your token should have write permissions to create the Space.
126
130
@@ -130,11 +134,10 @@ One of the reasons we created `trackio` was to make it easy to embed live dashbo
If you are hosting your Trackio dashboard on Spaces, then you can embed the url of that Space as an IFrame. You can even use query parameters to only specific projects and/or metrics, e.g.
it will use an existing or automatically deploy a new Hugging Face Space as needed. You should be logged in with the `huggingface-cli` locally and your token should have write permissions to create the Space.
20
+
21
+
## Embedding a Trackio Dashboard
22
+
23
+
One of the reasons we created `trackio` was to make it easy to embed live dashboards on websites, blog posts, or anywhere else you can embed a website.
You can also filter the dashboard to display only specific projects or metrics using query parameters. Supported parameters include:
34
+
35
+
*`project` (string): Show only a specific project.
36
+
*`metrics` (comma-separated list): Show only specific metrics, e.g., `train_loss,train_accuracy`.
37
+
*`sidebar` (string, `"hidden"` or `"collapsed"`):
38
+
39
+
*`"hidden"` hides the sidebar completely.
40
+
*`"collapsed"` keeps the sidebar initially collapsed, but the user can expand it. By default, the sidebar is visible and open.
41
+
42
+
You can customize your `<iframe>` using standard attributes such as `width`, `height`, and `style`. For more details, see [MDN Web Docs: `<iframe>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/iframe). For example:
`trackio` is a lightweight, free experiment tracking Python library built on top of Hugging Face Datasets and Spaces 🤗.
8
+
9
+

10
+
11
+
-**API compatible** with `wandb.init`, `wandb.log`, and `wandb.finish`. Drop-in replacement: just
12
+
13
+
```python
14
+
import trackio as wandb
15
+
```
16
+
17
+
-**Local-first** design: dashboard runs locally by default. You can also host it on Spaces by specifying a `space_id`.
18
+
- Persists logs locally (or in a private Hugging Face Dataset)
19
+
- Visualize experiments with a Gradio dashboard locally (or on Hugging Face Spaces)
20
+
- Everything here, including hosting on Hugging Face, is **free**!
21
+
22
+
Trackio is designed to be lightweight (the core codebase is <3,000 lines of Python code), not fully-featured. It is designed in an extensible way and written entirely in Python so that developers can easily fork the repository and add functionality that they care about.
0 commit comments