Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
sync_offline_wandb_runs
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
SC Recipe Book
AI Recipes
sync_offline_wandb_runs
Commits
d9541279
Commit
d9541279
authored
7 months ago
by
Ismail Khalfaoui
Browse files
Options
Downloads
Patches
Plain Diff
Update file README.md
parent
9710e746
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
README.md
+17
-14
17 additions, 14 deletions
README.md
with
17 additions
and
14 deletions
README.md
+
17
−
14
View file @
d9541279
### **Run the Script using `bashrc`**
### **Run the Script**
1.
**Change the path of the folder to monitor**
:
By default it is located at the path of
`wandb_sync_daemon.py`
/wandb
```
python
path_to_monitor
=
os
.
path
.
join
(
os
.
path
.
dirname
(
__file__
),
"
wandb
"
)
# Replace with the path you want to monitor
1.
**Edit your `~/.bashrc` file**
:
Open your
`.bashrc`
file:
```
bash
vim ~/.bashrc
```
```
2.
**Add the following line at the end of the file**
:
2.
**Run the following command**
:
Add this to run the script every time you log in:
```
bash
```
bash
nohup
python3 /path/to/wandb_sync_daemon.py
>
~/wandb_sync.log 2>&1 &
nohup
python3 /path/to/wandb_sync_daemon.py
>
~/wandb_sync.log 2>&1 &
```
```
This will start the
`wandb_sync_daemon.py`
script automatically each time you start a new shell session.
This will start the
`wandb_sync_daemon.py`
script automatically each time you start a new shell session.
3.
**Apply changes**
:
Reload your
`.bashrc`
file:
```
bash
source
~/.bashrc
```
---
---
## **How It Works**
## **How It Works**
...
@@ -30,6 +25,14 @@
...
@@ -30,6 +25,14 @@
---
---
## **How to Test it**
-
The file
`run.py`
provides a minimal wandb offline run to log.
```
bash
python3 run.py
```
---
## **Stopping the Script**
## **Stopping the Script**
To stop the script, you can
kill
the process:
To stop the script, you can
kill
the process:
1. Find the process:
1. Find the process:
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
sign in
to comment