Skip to content

Fix Hydra integration example AttributeError#2822

Merged
mdlinville merged 5 commits into
mainfrom
DOCS-2496
Jun 26, 2026
Merged

Fix Hydra integration example AttributeError#2822
mdlinville merged 5 commits into
mainfrom
DOCS-2496

Conversation

@mdlinville

@mdlinville mdlinville commented Jun 26, 2026

Copy link
Copy Markdown
Contributor

Fix Hydra integration example AttributeError

Double-checked against Hydra docs

Fixes DOCS-2496
Fixes #1964

Testing

  • Local build succeeds without errors (mint dev)
  • Local link check succeeds without errors (mint broken-links)
  • PR tests succeed

@mdlinville mdlinville requested a review from Copilot June 26, 2026 18:51
@mdlinville mdlinville requested a review from a team as a code owner June 26, 2026 18:51
@w-b-hivemind

w-b-hivemind Bot commented Jun 26, 2026

Copy link
Copy Markdown

HiveMind Sessions

1 session · 1m · $0.21

Session Agent Duration Tokens Cost Lines
Fix Hydra Integration Documentation Issue cursor 1m 50.1K $0.21 +16 -7
Total 1m 50.1K $0.21 +16 -7

View all sessions in HiveMind →

Comment thread models/integrations/hydra.mdx Outdated

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates the Hydra integration documentation example to avoid the AttributeError: property 'config' of 'Run' object has no setter by switching from assigning to run.config to passing a plain-Python config dict into wandb.init(config=...).

Changes:

  • Rewrote the “Track hyperparameters” guidance to convert omegaconf.DictConfig into a plain dict via OmegaConf.to_container().
  • Updated the code example to initialize W&B with config=cfg_dict (and removed the previous double-wandb.init() pattern).
  • Adjusted downstream config access to use dictionary-style lookups for nested values.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread models/integrations/hydra.mdx Outdated
Comment thread models/integrations/hydra.mdx
@github-actions

github-actions Bot commented Jun 26, 2026

Copy link
Copy Markdown
Contributor

📚 Mintlify Preview Links

🔗 View Full Preview

📝 Changed (1 total)

📄 Pages (1)

File Preview
models/integrations/hydra.mdx Hydra

🤖 Generated automatically when Mintlify deployment succeeds
📍 Deployment: 3267d2c at 2026-06-26 19:31:00 UTC

@github-actions

Copy link
Copy Markdown
Contributor

🔗 Link Checker Results

All links are valid!

No broken links were detected.

Checked against: https://wb-21fd5541-docs-2496.mintlify.app

@mintlify

mintlify Bot commented Jun 26, 2026

Copy link
Copy Markdown
Contributor

Preview deployment for your docs. Learn more about Mintlify Previews.

Project Status Preview Updated (UTC)
wandb 🟢 Ready View Preview Jun 26, 2026, 7:12 PM

Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Comment thread models/integrations/hydra.mdx Outdated

@ngrayluna ngrayluna left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Minor comment.

Comment thread models/integrations/hydra.mdx Outdated
Co-authored-by: Noah Luna <15202580+ngrayluna@users.noreply.github.com>
@mdlinville mdlinville requested a review from ngrayluna June 26, 2026 19:29
@mdlinville mdlinville merged commit 676b28d into main Jun 26, 2026
7 checks passed
@mdlinville mdlinville deleted the DOCS-2496 branch June 26, 2026 19:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Issue on docs: Hydra integration gives AttributeError: property 'config' of 'Run' object has no setter

3 participants