Skip to content

redis-cli --raw AI.MODELGET mymodel BLOB > model.ext doesn't round trip models  #458

Open
@guyroyse

Description

@guyroyse

The documentation in commands.md is incorrect. Admittedly in a small way. It states:

You can also save it to the local file 'model.ext' with redis-cli like so:

$ redis-cli --raw AI.MODELGET mymodel BLOB > model.ext

However, you cannot. redis-cli will tack on a newline to the end of the blob when you use the file redirection. I confirmed this with a hex editor. The same thing happens with tensors (however tensors don't have documents saying this works). This isn't a problem with RedisAI per se, so much as a problem with (or limitation of) redis-cli.

Probably the best solution would be to remove this from the documentation. Or modify redis-cli to have a flag to suppress the new line on output.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions