]>
khamidou — GitHub mirrors - safetensors.git/log
Craig Chan [Wed, 26 Feb 2025 09:18:09 +0000 (04:18 -0500)]
Add safestructures to project list (#570)
Ilyas Moutawwakil [Tue, 25 Feb 2025 11:11:12 +0000 (12:11 +0100)]
hpu index (#578)
spikedoanz [Sun, 23 Feb 2025 17:48:52 +0000 (12:48 -0500)]
removed DS_Store (#573)
Nicolas Patry [Thu, 6 Feb 2025 11:53:30 +0000 (12:53 +0100)]
Demoing zero-copy save. (#567)
* Demoing zero-copy save.
* Fixing clippy issue.
* Some cleanup.
* Sdist doesn't require feature ?
* Incorrect clean.
* Clippy ?
* Sanity check
* Fixing the doc builder?
* Using pre-commit for quality.
* This should work.
* Clippy variant.
* pyfeature typo.
* Bypassing the necessity for an env ?
* Remove maturin.
* BigEndian fix.
* Only black.
* We need to check both features.
* ??
* Asking for readonly is not possible.
* Before the build.
* Fixing byte-endian?
Oliver Ford [Tue, 4 Feb 2025 10:31:44 +0000 (10:31 +0000)]
Return error on out of range index (#565)
* Return error on out of range index
Fix issue #560, return a SliceOutOfRange error if the stop value
exceeds the available span.
* Improve the fix.
* Revert this change.
* Adding unit test around invalid range
* Checking for too many slices too.
* Small cleanup.
---------
Co-authored-by: Nicolas Patry <patry.nicolas@protonmail.com>
Christian Heimes [Tue, 4 Feb 2025 08:25:26 +0000 (09:25 +0100)]
Restore compatibility with Rust 1.74 (#563)
* Restore compatibility with Rust 1.74
PR #544 added support for `no_std` feature. The PR changed
`std::error::Error` to `core::error::Error`. The `core::error` trait was
stabilized in Rust 1.81, so the change bumped MSRV to 1.81. Before the
Python package built with Rust 1.66 and the `safetensors` create with
all features built with 1.74.
This commit restores compatibility with Rust 1.74 for `std` builds:
- `mixed_integer_ops` feature requires 1.66
- `half v2.4.1` requires 1.70
- `clap_lex v0.7.4` requires 1.74
I'm also adding `rust-version` to `Cargo.toml`, so cargo creates a
backwards compatible `Cargo.lock`. By default, Cargo >= 1.83 creates a
`v4` lock file, which is not compatible with Cargo < 1.78.
Signed-off-by: Christian Heimes <christian@python.org>
* Merging the test matrix.
---------
Signed-off-by: Christian Heimes <christian@python.org>
Co-authored-by: Nicolas Patry <patry.nicolas@protonmail.com>
Asaf Karnieli [Tue, 4 Feb 2025 08:06:26 +0000 (10:06 +0200)]
Add support for Intel Gaudi hpu accelerators (#566)
* Add support for Intel Gaudi hpu accelerators
* Fixing the `find_spec` dep.
* Fixing unused import.
---------
Co-authored-by: Nicolas Patry <patry.nicolas@protonmail.com>
Nicolas Patry [Thu, 9 Jan 2025 10:37:55 +0000 (11:37 +0100)]
Updating the dev number. (#558)
SunghwanShim [Wed, 8 Jan 2025 17:17:49 +0000 (02:17 +0900)]
Fix wrong signature of `safe_open.__init__` in stub file (#557)
* fix: pyi binding bug
* Fixing the stubbing script (breaking change in PyO3).
---------
Co-authored-by: Nicolas Patry <patry.nicolas@protonmail.com>
ZC [Tue, 7 Jan 2025 11:48:53 +0000 (19:48 +0800)]
support no_std (#556)
* support no_std (#544)
* Simpler clippy check (no features in safetensors really).
---------
Co-authored-by: Nicolas Patry <patry.nicolas@protonmail.com>
Nicolas Patry [Thu, 2 Jan 2025 17:50:57 +0000 (18:50 +0100)]
Fixing the stub? (#554)
Nicolas Patry [Thu, 2 Jan 2025 17:07:11 +0000 (18:07 +0100)]
Memory map as private pure copy. (#553)
Nicolas Patry [Thu, 2 Jan 2025 15:36:55 +0000 (16:36 +0100)]
Revert "Upgrade version number. (#551)" (#552)
This reverts commit
4439b19e6394fbbbd8315741e33f13dc10cb458a .
Nicolas Patry [Thu, 2 Jan 2025 15:35:49 +0000 (16:35 +0100)]
Upgrade version number. (#551)
Nicolas Patry [Thu, 2 Jan 2025 15:29:22 +0000 (16:29 +0100)]
Upgrade version number. (#550)
* Upgrade version number.
* Adding dynamic property.
Ivan Carvalho [Thu, 2 Jan 2025 15:20:02 +0000 (10:20 -0500)]
Upgrading PyO3 to 0.23 (#543)
* Update pyo3 to 0.23 and remove calls to deprecated methods
* Implement IntoPyObject trait
* Migrate IntoPy to IntoPyObject for Device
* Remove into_py calls pt1
* Remove into_py calls pt2
* Remove into_py calls pt3
* Macos-12 is deprecated.
* Clippy.
* Remove codecov.
---------
Co-authored-by: Nicolas Patry <patry.nicolas@protonmail.com>
huismiling [Thu, 2 Jan 2025 10:06:14 +0000 (18:06 +0800)]
Add support for mlu devices (#535)
Nicolas Patry [Thu, 7 Nov 2024 07:17:35 +0000 (15:17 +0800)]
Attempt to fix bench + update TF + maturin abi3 CI. (#540)
* Attempt to fix bench + update TF + maturin abi3 CI.
* Bench only on main
Nicolas Patry [Wed, 6 Nov 2024 15:10:38 +0000 (23:10 +0800)]
Trying some new CI. (#539)
* Trying some new CI.
* Not too new, thanks TF.
* Use the correct token.
Darion [Tue, 8 Oct 2024 05:14:52 +0000 (01:14 -0400)]
Update __init__.pyi (#533)
small spelling error
Nicolas Patry [Thu, 5 Sep 2024 13:35:48 +0000 (15:35 +0200)]
Prepare for 0.4.5 (#525)
* Prepare for 0.4.5
* Write packages for s390x
* Fix repo location.
Georgijs [Thu, 5 Sep 2024 12:42:47 +0000 (05:42 -0700)]
fix lifetimes, add tensors iterator (#518)
* fix lifetimes, add tensors iterator
* add test for lifetimes
Omar Sanseviero [Mon, 2 Sep 2024 13:34:08 +0000 (15:34 +0200)]
Use id rather than modelId
Nicolas Patry [Mon, 5 Aug 2024 12:20:18 +0000 (14:20 +0200)]
Forcing empty list/empty tuple behavior. (#514)
* Forcing empty list/empty tuple behavior.
* Tailscale.
* No tailscale anymore ?
* Do not push the package it's not necessary.
* Remove `Debug`.
Nicolas Patry [Mon, 5 Aug 2024 10:28:27 +0000 (12:28 +0200)]
Fixing release workflow. (#513)
Nicolas Patry [Mon, 5 Aug 2024 07:35:21 +0000 (09:35 +0200)]
Upgrading the version. (#511)
Nicolas Patry [Thu, 1 Aug 2024 15:07:06 +0000 (17:07 +0200)]
Respects torch.device(0) new behavior without breaking backward compatibility (#509)
* Respects torch.device(0) new behavior without breaking backward
compatibilty.
* Fixing anonymous device type, apparently number string is not ok.
Nicolas Patry [Wed, 31 Jul 2024 12:30:40 +0000 (14:30 +0200)]
Fixing zero-width tensor for in memory loading. (#510)
Nicolas Patry [Wed, 31 Jul 2024 08:07:44 +0000 (10:07 +0200)]
Improving bf16 tests (#507)
* Add mlx.
* Add flax.
* Yaml is possibly worse than XML at this point.
* .
* Fixing BF16+BigEndian+Torch on Torch > 2.1
* Fix macos-13 so Python 3.8 is supported.
* Clippy fix.
* Adding macos-latest (ARM) to the test suite.
* Fmt.
* Installing cargo audit.
* I.
* Fixing format.
* Update 2 locations.
* tf.random.normal
* Random normal flax
* Fixing flax test.
* Remove bool test for flax.
* Attempting to upgrade numpy version.
* Revert pyproject.toml
* Fixing bool test (PT).
* Fixing new ARM element of matrix.
* Install mlx on ARM.
* Ignoring flax on macos arm.
* No bfloat16 on mlx.
* Reference issue in code.
* Re-enabling jax tests ?
* Removing ARM+macos target.
* Irrelevant changes.
* Trying to debug remotely.
* Different logs.
* This isn't counterproductive dev speed.
* Install mlx on old non arm macos.
* Adding a clone ?
* Checking bfloat16 serialized values.
* Linter.
* Hopefully fixing the byteswapping.
* Run mlx only on Python 3.11.
* Yaml..
* Fixing MLX tests (making it optional/skipped unfortunately).
* Much better fix that doesn't depend on torch version.
* Cleaner escape for MLX.
* Fixing F8XXX dtypes too on big endians + torch.
* inplace actually modifies storage.
* Inplace for numpy requires new holding place.
Eric Meier [Tue, 30 Jul 2024 17:29:22 +0000 (10:29 -0700)]
Add support for xla devices (#494)
* Add support for xla devices
* :broom:
Luc Georges [Mon, 29 Jul 2024 16:52:41 +0000 (18:52 +0200)]
feat(ci): add trufflehog secrets detection (#484)
* feat(ci): add trufflehog secrets detection
* fix(ci): remove unnecessary permissions
Mishig [Mon, 29 Jul 2024 10:17:45 +0000 (12:17 +0200)]
Change doc-builder workflow container (#508)
* Change doc-builder workflow container
* trigger the action
Nicolas Patry [Fri, 26 Jul 2024 10:04:48 +0000 (12:04 +0200)]
Revert "Improving the bf16 tests for PT+TF. (#505)" (#506)
This reverts commit
3bfe61321b1f6ad870685f92a600f87c10593ff2 .
Nicolas Patry [Fri, 26 Jul 2024 10:03:34 +0000 (12:03 +0200)]
Improving the bf16 tests for PT+TF. (#505)
Nicolas Patry [Thu, 25 Jul 2024 12:42:21 +0000 (14:42 +0200)]
Upgrading Pyo3 0.22 (with gil-refs) (#504)
* Upgrading Pyo3 0.22 (with gil-refs)
* Cleanup.
* Upgrading to 0.22
Quentin Lhoest [Thu, 18 Jul 2024 17:36:23 +0000 (19:36 +0200)]
Minor correction about Arrow in README.md (#488)
Nicolas Patry [Wed, 24 Apr 2024 08:24:00 +0000 (10:24 +0200)]
Fixing empty serialization (no tensor) with some metadata. (#472)
* Fixing empty serialization (no tensor) with some metadata.
* Fixing test value
* Add audit component.
* Install cargo audit.
Nicolas Patry [Mon, 15 Apr 2024 10:05:12 +0000 (12:05 +0200)]
Upgrading pyo3 to 0.21. (#468)
Lucain [Mon, 15 Apr 2024 07:50:22 +0000 (09:50 +0200)]
Add support for `device` in `safetensors.torch.load_model` (#449)
* fix typo
* allow loading torch model to device
* fix device type
* update device type
Nicolas Patry [Thu, 11 Apr 2024 08:04:18 +0000 (10:04 +0200)]
Updating doc. (#465)
Nicolas Patry [Fri, 16 Feb 2024 09:14:24 +0000 (10:14 +0100)]
Adding support for integer indexing `[0, :2, -1]`. (#440)
* Adding support for integer indexing `[0, :2, -1]`.
* Clean up error for too large indexing.
Nicolas Patry [Tue, 23 Jan 2024 10:23:14 +0000 (11:23 +0100)]
Updating minor after release 0.4.2 (#433)
Nicolas Patry [Tue, 23 Jan 2024 09:00:04 +0000 (10:00 +0100)]
Remove py313 windows. (#432)
* Remove py313 windows.
* Fix aarch+linux interpreter.
* Remove incorrect modification ?
Nicolas Patry [Thu, 18 Jan 2024 16:53:37 +0000 (17:53 +0100)]
Skip MLX bench for the bench runner. (#429)
Nicolas Patry [Thu, 18 Jan 2024 12:37:46 +0000 (13:37 +0100)]
Add "xpu" device tag to the device list to support Intel GPU (#428)
* Support XPU device
* Fmt.
---------
Co-authored-by: Jiong Gong <jiong.gong@intel.com>
Hayden Donnelly [Thu, 18 Jan 2024 12:36:38 +0000 (07:36 -0500)]
Fix mispelling of dictionary. (#410)
Arseny Kapoulkine [Thu, 18 Jan 2024 12:21:01 +0000 (04:21 -0800)]
Implement PyTorch support for float8 types (F8_E5M2 and F8_E4M3) (#404)
* Implement PyTorch support for float8 types (F8_E5M2 and F8_E4M3)
Note that PyTorch name for e4m3 type has an extra "fn" prefix to match
MLIR, but the format should be the same ("fn" means "finite").
We also test that -0.5 roundtrips in both formats, which makes sure that
the format is preserved properly - both types are single-byte and have
the same representation for zero, but different representations for
-0.5.
* Transparently support PyTorch before 2.1 by ignoring float8 formats
Ben Beasley [Thu, 18 Jan 2024 12:10:45 +0000 (07:10 -0500)]
Fix missing Apache-2.0 license file in the published crate (#416)
Add a symbolic link to the top-level LICENSE file.
Nicolas Patry [Wed, 17 Jan 2024 16:38:44 +0000 (17:38 +0100)]
Removing old doc. (#427)
* Removing old doc.
* Update pyo3 to get clippy happy.
* Optional MLX install.
* Mlx only on python 3.10.
Pedro Cuenca [Thu, 11 Jan 2024 09:26:03 +0000 (10:26 +0100)]
Fix path in version_tag_suffix (#426)
Followup to #420. Sorry.
We're almost there, examine the first `<source>` link in https://huggingface.co/docs/safetensors/api/torch to verify.
Mishig [Mon, 8 Jan 2024 22:42:52 +0000 (23:42 +0100)]
[docs] Use `hfoptions` for metadata (#424)
* [docs] Use `hfoptions` for metadata
* better wording
Pedro Cuenca [Mon, 8 Jan 2024 09:24:21 +0000 (10:24 +0100)]
[docs, untested] Attempt to fix links to source (#420)
Nicolas Patry [Fri, 5 Jan 2024 13:36:08 +0000 (14:36 +0100)]
Adding MLX backend. (#419)
* Adding MLX backend.
* Apply suggestions from code review
Co-authored-by: Pedro Cuenca <pedro@huggingface.co>
* Update bindings/python/py_src/safetensors/mlx.py
Co-authored-by: Pedro Cuenca <pedro@huggingface.co>
* Update bindings/python/py_src/safetensors/mlx.py
Co-authored-by: Pedro Cuenca <pedro@huggingface.co>
---------
Co-authored-by: Pedro Cuenca <pedro@huggingface.co>
Mishig [Thu, 4 Jan 2024 11:00:24 +0000 (12:00 +0100)]
[docs] Update list of projects using safetensors (#418)
Add `mlx` & `candle`
Lucain [Thu, 4 Jan 2024 11:00:11 +0000 (12:00 +0100)]
Document `huggingface_hub.get_safetensors_metadata` (#417)
* Document huggingface_hub.get_safetensors_metadata
* Update docs/source/metadata_parsing.mdx
Co-authored-by: Mishig <dmishig@gmail.com>
* Update docs/source/metadata_parsing.mdx
Co-authored-by: Mishig <dmishig@gmail.com>
* add import line
* Update docs/source/metadata_parsing.mdx
Co-authored-by: Mishig <dmishig@gmail.com>
---------
Co-authored-by: Mishig <dmishig@gmail.com>
Nicolas Patry [Tue, 5 Dec 2023 15:00:09 +0000 (16:00 +0100)]
Adding stale action. (#398)
* Releasing for python 3.12/3.13 and testing on 3.11.
No 3.12 yet torch... https://github.com/pytorch/pytorch/issues/110436
* Fix dev version.
* Removing paddlepaddle for default tests. protobuf conflict issue being
too old.
* Skip paddle when not installed.
* Adding a stale action.
Nicolas Patry [Mon, 27 Nov 2023 14:42:37 +0000 (15:42 +0100)]
Releasing for python 3.12/3.13 and testing on 3.11. (#393)
* Releasing for python 3.12/3.13 and testing on 3.11.
No 3.12 yet torch... https://github.com/pytorch/pytorch/issues/110436
* Fix dev version.
* Removing paddlepaddle for default tests. protobuf conflict issue being
too old.
* Skip paddle when not installed.
lachlancahill [Mon, 27 Nov 2023 13:58:28 +0000 (02:58 +1300)]
Fix/errors for some models including Mistral-7b and Flan-ul2 (#388)
* For some models like Mistral and Flan-UL2, when downloaded from the hub the binary files write to a snapshots/<uuid> subdirectory. Then when the files are committed, they cannot be found and the commit fails with an error.
* Changed `local.split("/")[-1]` to os.path.basename(local) for compatibility with all OS including Windows.
* Removed snapshots section
* Removed additional line break.
---------
Co-authored-by: Lachlan Cahill <lachlan.cahill@gmail.com>
Nicolas Patry [Mon, 27 Nov 2023 11:08:23 +0000 (12:08 +0100)]
Upgrade dev version. (#392)
Nicolas Patry [Mon, 20 Nov 2023 10:22:45 +0000 (11:22 +0100)]
Fix convert. (#390)
Hz, Ji [Mon, 20 Nov 2023 09:23:44 +0000 (17:23 +0800)]
Adding support for Ascend NPU (#372)
* Adding support for Ascend NPU
* remove the unnecessary hack code
* test more dtype
* npu doesn't support calling torch.allclose with bf16 for now
Nicolas Patry [Fri, 17 Nov 2023 18:04:45 +0000 (19:04 +0100)]
Ignore closed PRs to avoid spam. (#385)
Nicolas Patry [Fri, 17 Nov 2023 17:28:16 +0000 (18:28 +0100)]
Better convert. (#384)
Nicolas Patry [Fri, 17 Nov 2023 13:52:58 +0000 (14:52 +0100)]
Support fp8_e4m3/fp8_e5m2 (#383)
* Support fp8_e4m3/fp8_e5m2
* Moving to regular README include, which is easier to manage.
* Update README.md
Jonathan Chang [Fri, 17 Nov 2023 13:45:02 +0000 (21:45 +0800)]
Fix typo (#377)
Signed-off-by: Jonathan Chang <31893406+cccntu@users.noreply.github.com>
Nicolas Patry [Fri, 17 Nov 2023 13:31:47 +0000 (14:31 +0100)]
Supporting bfloat16 for tensorflow + jax (was failing because of (#382)
intermediary numpy).
Nicolas Patry [Wed, 4 Oct 2023 15:06:19 +0000 (17:06 +0200)]
Preparing a new release (0.4.0). (#366)
* Preparing a new release (0.4.0).
- Moving to 0.4.1 for the dev mode already
- Major upgrade just because the build system was revamped, not actual
major or breaking changes.
* Fix dep
bart [Wed, 20 Sep 2023 15:07:58 +0000 (17:07 +0200)]
fix: add py.typed (#365)
Nicolas Patry [Mon, 18 Sep 2023 14:45:47 +0000 (16:45 +0200)]
Stop recreating the hashmap all the time. (#363)
* Stop recreating the hashmap all the time.
Fixes #361
Potentially superseeds #362
Co-Authored-By: Batuhan Taskaya <batuhan@python.org>
* Adding the benches.
---------
Co-authored-by: Batuhan Taskaya <batuhan@python.org>
Paul Bricman [Mon, 18 Sep 2023 14:45:28 +0000 (17:45 +0300)]
Minor docstring edit to flax.py (#359)
Nicolas Patry [Fri, 8 Sep 2023 11:38:51 +0000 (13:38 +0200)]
Fixing release script for windows aarch64 and 3.12 (#348)
Kevin Hu [Fri, 8 Sep 2023 07:25:12 +0000 (00:25 -0700)]
Update torch.py (#356)
Steven Liu [Wed, 6 Sep 2023 07:52:14 +0000 (00:52 -0700)]
[docs] Convert weights (#345)
* Create convert-weights.md
* Update _toctree.yml
* convert space option only
cospectrum [Wed, 30 Aug 2023 11:13:13 +0000 (14:13 +0300)]
Reduce memory allocations (#350)
Nicolas Patry [Fri, 25 Aug 2023 07:26:20 +0000 (09:26 +0200)]
Trying out maturin. (#344)
* Trying out maturin.
* Yaml.
* We don't need lock right now.
* Dont skip.
* Working dir.
* Default working dir.
* Wroking dir here ?
* Fix ls
* Maturin makes things simpler.
* Clippy.
* New version number
* Update conda build.
* Conda.
* Conda.
* Drop 3.7, add 3.11
* Linux update 3.11
* Version
* Done.
* Remove afl
* Put rust code also in dev mode.
* Pre-release requires explicit everywhere.
* Remove manual sdist
* Remove custom builds
* Requires lock
* Fix sdist.
* Sed.
Nicolas Patry [Thu, 24 Aug 2023 08:16:18 +0000 (10:16 +0200)]
win64 (#343)
Nicolas Patry [Thu, 24 Aug 2023 07:28:59 +0000 (09:28 +0200)]
Win64. (#342)
Nicolas Patry [Wed, 23 Aug 2023 14:28:00 +0000 (16:28 +0200)]
Python 3.8 for arm (#339)
Nicolas Patry [Wed, 23 Aug 2023 13:20:09 +0000 (15:20 +0200)]
Fixing release script. (#338)
Nicolas Patry [Wed, 23 Aug 2023 11:25:47 +0000 (13:25 +0200)]
Don't release rust versions on RC (#337)
Nicolas Patry [Wed, 23 Aug 2023 11:22:28 +0000 (13:22 +0200)]
Temporary revert of the breaking change (keep it for 0.4.0). (#336)
Nicolas Patry [Wed, 23 Aug 2023 11:00:06 +0000 (13:00 +0200)]
Preparing small patch release (Big Endian fix). (#335)
Nicolas Patry [Tue, 22 Aug 2023 09:25:11 +0000 (11:25 +0200)]
Reworked the release script entirely (#334)
* Rework the release script entirely.
* New release script.
* Ok.
Corey Lowman [Mon, 21 Aug 2023 07:14:25 +0000 (03:14 -0400)]
impl `View` for `TensorView` (#329)
The existing impl only exists for `&TensorView`, which means you cannot pass a `Vec<(String, TensorView)>` into `serialize_to_file`. With this new impl, you can.
Thomas Chaigneau [Mon, 21 Aug 2023 07:13:55 +0000 (09:13 +0200)]
Add NumPy for all backends dependencies (#332)
* Add NumPy for all backends dependencies
* numpy as extras
Nicolas Patry [Thu, 17 Aug 2023 06:58:26 +0000 (08:58 +0200)]
Fixing boolean + numpy > 1.20 (#326)
* Fixing boolean + numpy > 1.20
* Adding bool numpy test.
Nicolas Patry [Thu, 17 Aug 2023 06:44:48 +0000 (08:44 +0200)]
Fixing big endian. (#327)
* Fixing big endian.
- Many more tests, with numpy coverage.
- Actually test values on disk.
* Re-enabling bf16 (we piggy back f16 byteswap).
* Fmt.
* Black.
Nicolas Patry [Wed, 16 Aug 2023 18:16:20 +0000 (20:16 +0200)]
Yaml is nice. (#325)
Nicolas Patry [Wed, 16 Aug 2023 16:06:37 +0000 (18:06 +0200)]
Fix Bench GH action. (#323)
Thomas Chaigneau [Wed, 16 Aug 2023 15:52:12 +0000 (17:52 +0200)]
add tensorshare to featured projects (#322)
Nicolas Patry [Fri, 11 Aug 2023 21:29:45 +0000 (23:29 +0200)]
Supporting whisper conversion. (#320)
Nicolas Patry [Fri, 11 Aug 2023 14:12:47 +0000 (16:12 +0200)]
Cache dir all the time. (#319)
Nicolas Patry [Wed, 9 Aug 2023 07:15:33 +0000 (09:15 +0200)]
Fixing macos 13 release script (by prebuilding). (#315)
* Fixing macos 13 release script (by prebuilding).
* Yaml indent...
Nicolas Patry [Wed, 9 Aug 2023 07:14:23 +0000 (09:14 +0200)]
Adding new target for m1 (#317)
* Adding new target for m1
* Indent fix.
Aarni Koskela [Tue, 8 Aug 2023 10:04:20 +0000 (12:04 +0200)]
Clarify specification around endianness and header padding (#306)
* Clarify that `N` is little-endian
* Clarify the header JSON structure:
* note the data must begin with a `{` byte
* note the data may be padded at the end with whitespace
* Update README.md
Co-authored-by: Nicolas Patry <patry.nicolas@protonmail.com>
---------
Co-authored-by: Nicolas Patry <patry.nicolas@protonmail.com>
Nicolas Patry [Tue, 8 Aug 2023 10:04:14 +0000 (12:04 +0200)]
Back on dev. (#313)
Nicolas Patry [Mon, 7 Aug 2023 21:36:24 +0000 (23:36 +0200)]
Fixes release scripts - Release ready version (#312)
* Creating 0.3.2.rc1 release
* Fixing release.
* Fix mv 2
* Ignore failing mv.
* ?
* Wtf ?
* ???
* What is happenin to my files...
* macos-latest.
* Fixing up release.
Nicolas Patry [Mon, 7 Aug 2023 13:46:19 +0000 (15:46 +0200)]
Creating 0.3.2.rc1 release (#311)
Nicolas Patry [Mon, 7 Aug 2023 12:53:19 +0000 (14:53 +0200)]
feat: Supporting big endian architecture. (#310)
* Supporting big endian architecture.
`byteswap` before saving and `byteswap` on read.
* Specify platform ?
* Revert "Specify platform ?"
This reverts commit
8d82bbd15374d066eb2578a00f38c7dc91b83f74 .
* GH
* With cache ?
* Switch driver for cache ?
* Push
* Using internal registry
* Fix build push.
* Add platform ?
* PlatformS
Nicolas Patry [Mon, 7 Aug 2023 07:08:02 +0000 (09:08 +0200)]
feat: Add filter for shared storage non overlapping tensors (#309)
* feat: Add filter for shared storage non overlapping tensors
Deepspeed does some tensor sharing but not actually overlapping
tensors. (It's not exactly clear why).
This PR fixes it by adding a global check for all shared tensors if the
actual offsets are overlapping or not.
It looks at all (start, stop) pointers of the tensors, sorts them by start pointer, and decides 2 tensors are disjoint if stop(previous) <= start(next)
* Style.
* Update for zero-sized tensors.
* Update test that now passes.