Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(core): 🦀 commence operation SDKrab 🦀 #6000

Merged
merged 149 commits into from
Dec 21, 2023
Merged

feat(core): 🦀 commence operation SDKrab 🦀 #6000

merged 149 commits into from
Dec 21, 2023

Conversation

dmitryduev
Copy link
Member

@dmitryduev dmitryduev commented Aug 3, 2023

Description

What does the PR do? It makes the W&B SDK rusty.

# set up cargo and maturin
nox -s develop
# PROFIT!!1

Testing

How was this PR tested?

Test script

import random
import secrets
import time

import tqdm
import wandb


def get_value():
    return 0.82 + min(0.18, (random.random() - 0.5) / secrets.choice((1, 2, 5, 10)))


def train():
    run = wandb.init()

    n_epochs = 100

    print()
    print(f"Training for {n_epochs} epochs...")
    for i in tqdm.tqdm(range(n_epochs)):
        run.log(
            {
                "epoch": i,
                "loss": 1.0 / (i + 1),
                "metric": get_value(),
            },
        )
        time.sleep(0.25)
    print()

    run.finish()


if __name__ == "__main__":
    train()

@dmitryduev dmitryduev requested a review from a team as a code owner August 3, 2023 20:08
@github-actions github-actions bot removed the cc-feat label Dec 20, 2023
@dmitryduev dmitryduev changed the title feat(nexus): make the SDK rusty! feat(core): make the SDK rusty! 🦀 🦀 🦀 Dec 20, 2023
@github-actions github-actions bot added cc-feat and removed cc-feat labels Dec 20, 2023
core/pkg/server/sender.go Outdated Show resolved Hide resolved
core/pkg/server/server.go Outdated Show resolved Hide resolved
Copy link

codecov bot commented Dec 21, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (8f04cb9) 79.39% compared to head (43c237c) 79.56%.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #6000      +/-   ##
==========================================
+ Coverage   79.39%   79.56%   +0.16%     
==========================================
  Files         447      447              
  Lines       49589    49589              
==========================================
+ Hits        39373    39456      +83     
+ Misses       9972     9888      -84     
- Partials      244      245       +1     
Flag Coverage Δ
func 52.12% <ø> (+0.02%) ⬆️
system 64.18% <ø> (+0.63%) ⬆️
unit 58.86% <ø> (+<0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

see 21 files with indirect coverage changes

@dmitryduev dmitryduev changed the title feat(core): make the SDK rusty! 🦀 🦀 🦀 feat(core): 🦀 commence operation SDKrab 🦀 Dec 21, 2023
@github-actions github-actions bot added cc-feat and removed cc-feat labels Dec 21, 2023
@dmitryduev dmitryduev merged commit 6d7ca08 into main Dec 21, 2023
79 checks passed
@dmitryduev dmitryduev deleted the nexus branch December 21, 2023 20:20
@kptkin kptkin added this to the sdk-2024-01.1 milestone Jan 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants