wandb本地部署

pip install --upgrade wandb
wandb server start

(如果失败了)

docker pull wandb/local:latest

启动

docker run --rm -d -v wandb:/vol -p 8080:8080 --name wandb-local wandb/local:latest

打开http://localhost:8080/signup (有可能失败,就关了docker再开一次)
在这里插入图片描述

拿licence
https://deploy.wandb.ai/
有就复制,没有就创建
在这里插入图片描述
如果你的过期了license过期了,可以发邮件给contact@wandb.com
在这里插入图片描述
可以参考这个
在这里插入图片描述

然后在update lincense里复制进去
再点update
在这里插入图片描述
点update settings
在这里插入图片描述

此时就可以http://localhost:8080/home

登录

wandb login --relogin --host=http://localhost:8080

在这里插入图片描述
http://localhost:8080/authorize
这里找到key
在这里插入图片描述
跑个案例

import wandb
import random

# start a new wandb run to track this script
wandb.init(
    # set the wandb project where this run will be logged
    project="my-awesome-project",

    # track hyperparameters and run metadata
    config={
    "learning_rate": 0.02,
    "architecture": "CNN",
    "dataset": "CIFAR-100",
    "epochs": 10,
    }
)

# simulate training
epochs = 10
offset = random.random() / 5
for epoch in range(2, epochs):
    acc = 1 - 2 ** -epoch - random.random() / epoch - offset
    loss = 2 ** -epoch + random.random() / epoch + offset

    # log metrics to wandb
    wandb.log({"acc": acc, "loss": loss})

# [optional] finish the wandb run, necessary in notebooks
wandb.finish()

在这里插入图片描述
在这里插入图片描述

参考:
https://docs.wandb.ai/guides/hosting/self-managed/basic-setup

评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

Nightmare004

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值