Repository navigation
air: Note in config help that some parameter floats load as strings - #7827
Merged
Merged
Conversation
air run re-encodes parameters, writing floats such as 2e-5 and 1e6 in exponent form without a decimal point, which PyYAML's yaml.safe_load reads as strings. Co-authored-by: Isaac <no-reply@databricks.com>
Co-authored-by: Isaac <no-reply@databricks.com>
caroline-db
force-pushed
the
air-parameters-float-help
branch
from
November 19, 2026 20:35
ad0db94 to
5ca5521
Compare
Collaborator
✅ Integration test reportCommit: 3f1bac4
Top 6 slowest tests (at least 2 minutes):
|
pardis-beikzadeh-db
approved these changes
Nov 21, 2026
Contributor
|
Commit: Regression test reportSelected 1 changed tests (limit=20, 0 not selected) 1 tests: regression=1 unreleased=0 coverage=0 failing=0
TestAccept/air/config-help: branch ✅ | main (396e51a) ❌ | latest (v1.27.0) ❌main (396e51a): latest (v1.27.0): |
camielstee-db
pushed a commit
to camielstee-db/cli
that referenced
this pull request
Nov 24, 2026
## Why The 1.28.0 changelog had 48 entries, many of them long paragraphs describing internals, and several features and their follow-up fixes were split across separate lines. ## Changes - Merge entries for one feature or its follow-up fixes into one line that links every PR: AI tools auto-install (6 PRs), `fs` retries, `aitools --skills-only`, `sandbox ssh`, `air convert-to-dabs`, app start/deploy, Go SDK bumps. - Shorten entries over ~30 words to what changed for the user. - Remove help-text-only entries (databricks#7572, databricks#7827, databricks#7863). - Add a missing entry for databricks#7804, and fold databricks#7588, databricks#7780 and databricks#7870 into related lines. - Mark the `sandbox ssh --port` removal as breaking (the AIR `compute.pool_id` entry already is). Merged entries are kept in the file of one of their original PRs, so each still links the PR that introduced it. This pull request and its description were written by Isaac. --------- Co-authored-by: Isaac <no-reply@databricks.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Changes
air run -h config.parametersnow explains that parameters are written as YAML to$HYPERPARAMETERS_PATH. It warns that Python'syaml.safe_loadmay return very small or large floats as strings and tells Python users to convert them withfloat()after loading. Theair run -h configfield summary now identifies the destination file.Why
air runre-encodesparametersbefore uploading them, and go-yaml writes floats below 1e-4 or at least 1e6 in exponent form, usually without a decimal point (1e-05,1e+06). PyYAML'syaml.safe_load, the usual way Python scripts read this file, follows YAML 1.1 and returns that form as a string, so training scripts that don't convert the value can fail at optimizer setup. This PR documents that behavior without changing how the file is written.Tests
air run -h config.parametersoutput locally.acceptance/air/config-helpsnapshot and rango test ./acceptance -run TestAccept/air/config-help.This pull request and its description were written by Isaac.