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

相关推荐

  1. StarRocks本地部署

    2024-07-20 16:52:03       55 阅读
  2. 本地部署 SalesGPT

    2024-07-20 16:52:03       38 阅读
  3. 本地部署 RAGFlow

    2024-07-20 16:52:03       29 阅读

最近更新

  1. docker php8.1+nginx base 镜像 dockerfile 配置

    2024-07-20 16:52:03       52 阅读
  2. Could not load dynamic library ‘cudart64_100.dll‘

    2024-07-20 16:52:03       54 阅读
  3. 在Django里面运行非项目文件

    2024-07-20 16:52:03       45 阅读
  4. Python语言-面向对象

    2024-07-20 16:52:03       55 阅读

热门阅读

  1. C++案例四:简易记事本程序

    2024-07-20 16:52:03       18 阅读
  2. DNS解析过程

    2024-07-20 16:52:03       17 阅读
  3. axios

    axios

    2024-07-20 16:52:03      24 阅读
  4. 使用Spring Boot和RabbitMQ实现消息驱动微服务

    2024-07-20 16:52:03       20 阅读
  5. postgresql 大于当前时间升序,小于当前时间降序

    2024-07-20 16:52:03       18 阅读
  6. 在 C# .NET 中丢弃变量

    2024-07-20 16:52:03       20 阅读
  7. 基于深度学习的故障检测

    2024-07-20 16:52:03       20 阅读
  8. 【Spring Boot 自定义配置项详解】

    2024-07-20 16:52:03       19 阅读
  9. 13、.Net相关的书籍 - .Net循序渐进系列文章

    2024-07-20 16:52:03       21 阅读