GithubHelp home page GithubHelp logo

swanhubx / swanlab-docs Goto Github PK

View Code? Open in Web Editor NEW
5.0 0.0 2.0 33.05 MB

SwanLab Official Documentation | SwanLab官方文档

Home Page: https://docs.swanlab.cn

TypeScript 92.79% CSS 1.73% JavaScript 1.32% Dockerfile 4.17%
javascript vue3 vite

swanlab-docs's Introduction

swanlab-docs

本仓库托管了SwanLab的官方文档,基于vitepress

如何为文档做贡献

很简单!只需要增添或修改Markdown文件,提交他们,创建一个PR就可以。

本地开发流程

  1. 克隆本仓库
git clone https://github.com/SwanHubX/SwanLab-Docs
  1. 安装环境
npm add -D vitepress
  1. 本地开发,在项目根目录运行:
npm run docs:dev
  1. 打包与预览
npm run docs:build
npm run docs:preview

swanlab-docs's People

Contributors

feudalman avatar kashiwabyte avatar shaohonchen avatar zeyi-lin avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

swanlab-docs's Issues

第一版文档TODO LIST

  • 查看实验结果
  • 集成-PyTorch
  • 集成-OpenAI
  • 补齐图片素材
  • 案例-猫狗分类
  • 案例-MNIST-补文案
  • 案例-FashionMNIST
  • 案例-Hello World模拟实验

[Integration] 更新对于Transformers的集成文档——增加eval callback的构建案例指引

class LLMSwanLabCallback(SwanLabCallback):    
    def on_epoch_end(self, args, state, control, **kwargs):
        test_text_list = []
        for index, row in test_df.iterrows():
            instruction = row['instruction']
            input_value = row['input']
            
            messages = [
                {"role": "system", "content": f"{instruction}"},
                {"role": "user", "content": f"{input_value}"}
            ]

            response = predict(messages, model, tokenizer)
            messages.append({"role": "assistant", "content": f"{response}"})
            result_text = f"{messages[0]}\n\n{messages[1]}\n\n{messages[2]}"
            test_text_list.append(swanlab.Text(result_text, caption=response))
            
        swanlab.log({"Prediction": test_text_list}, step=state.global_step)

🚑 Any additional [like screenshots]

  • SwanLab Version: v0.3.10

v0.3.2 文档更新

  • #3
  • v0.3.2 更新日志
  • 集成-Tensorboard
  • 案例-MNIST代码优化
  • API-swanlab.Audio修改
  • 论文中引用-增加doi

[Integration] accelerate库

🚀 Content

添加关于swanlab与accelerate库的集成文档。

添加方式:

  1. npm run docs:dev开启文档开发模式
  2. /.vitepress/config.mts下的如下部分添加一行HuggingFace Accelerate,这里的作用是在官方文档的侧边栏增加一个链接;其中text代表标题,link则是文档markdown的名称
  {
    text: '⚡️ 集成',
    // collapsed: false,
    items: [
      { text: 'Argparse', link:'integration/integration-argparse' },
      ...
      { text: 'HuggingFace Accelerate', link:'integration/integration-huggingface-accelerate'}
      ...
      { text: 'ZhipuAI', link: 'integration/integration-zhipuai'},
    ]
  },
  1. zh/guide_cloud/integration下创建一个integration-huggingface-accelerate.md,然后参考其他文档格式写Markdown即可

🚑 Any additional [like screenshots]

  • SwanLab Version: v0.3.9

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.