Skip to content

Enable saving (and loading) zero size arrays #2587

@pcmoritz

Description

@pcmoritz

Dear all,

I wonder if it would be possible to support saving and loading zero size arrays. I saw it was deactivated in #1570. Allowing it would be very useful for us for saving rank 0 lora adapters for https://github.com/NovaSky-AI/SkyRL/tree/main/skyrl-tx (we use rank 0 lora adapters to allow users to selectively deactivate adapters for certain layers). Currently we have to write a bunch of code to work around this, whereas I don't see a reason why orbax shouldn't be able to handle it, since zero size arrays are valid arrays.

All the best and let us know if you have any further questions about the use case.

-- Philipp.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions