]> khamidou — GitHub mirrors - safetensors.git/log
safetensors.git
2 years agoFixing zero-width tensor for in memory loading. (#510)
Nicolas Patry [Wed, 31 Jul 2024 12:30:40 +0000 (14:30 +0200)]
Fixing zero-width tensor for in memory loading. (#510)

2 years agoImproving bf16 tests (#507)
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.

2 years agoAdd support for xla devices (#494)
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:

2 years agofeat(ci): add trufflehog secrets detection (#484)
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

2 years agoChange doc-builder workflow container (#508)
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

2 years agoRevert "Improving the bf16 tests for PT+TF. (#505)" (#506)
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.

2 years agoImproving the bf16 tests for PT+TF. (#505)
Nicolas Patry [Fri, 26 Jul 2024 10:03:34 +0000 (12:03 +0200)]
Improving the bf16 tests for PT+TF. (#505)

2 years agoUpgrading Pyo3 0.22 (with gil-refs) (#504)
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

2 years agoMinor correction about Arrow in README.md (#488)
Quentin Lhoest [Thu, 18 Jul 2024 17:36:23 +0000 (19:36 +0200)]
Minor correction about Arrow in README.md (#488)

2 years agoFixing empty serialization (no tensor) with some metadata. (#472)
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.

2 years agoUpgrading pyo3 to 0.21. (#468)
Nicolas Patry [Mon, 15 Apr 2024 10:05:12 +0000 (12:05 +0200)]
Upgrading pyo3 to 0.21. (#468)

2 years agoAdd support for `device` in `safetensors.torch.load_model` (#449)
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

2 years agoUpdating doc. (#465)
Nicolas Patry [Thu, 11 Apr 2024 08:04:18 +0000 (10:04 +0200)]
Updating doc. (#465)

2 years agoAdding support for integer indexing `[0, :2, -1]`. (#440)
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.

2 years agoUpdating minor after release 0.4.2 (#433)
Nicolas Patry [Tue, 23 Jan 2024 10:23:14 +0000 (11:23 +0100)]
Updating minor after release 0.4.2 (#433)

2 years agoRemove py313 windows. (#432)
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 ?

2 years agoSkip MLX bench for the bench runner. (#429)
Nicolas Patry [Thu, 18 Jan 2024 16:53:37 +0000 (17:53 +0100)]
Skip MLX bench for the bench runner. (#429)

2 years agoAdd "xpu" device tag to the device list to support Intel GPU (#428)
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>
2 years agoFix mispelling of dictionary. (#410)
Hayden Donnelly [Thu, 18 Jan 2024 12:36:38 +0000 (07:36 -0500)]
Fix mispelling of dictionary. (#410)

2 years agoImplement PyTorch support for float8 types (F8_E5M2 and F8_E4M3) (#404)
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

2 years agoFix missing Apache-2.0 license file in the published crate (#416)
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.

2 years agoRemoving old doc. (#427)
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.

2 years agoFix path in version_tag_suffix (#426)
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.

2 years ago[docs] Use `hfoptions` for metadata (#424)
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

2 years ago[docs, untested] Attempt to fix links to source (#420)
Pedro Cuenca [Mon, 8 Jan 2024 09:24:21 +0000 (10:24 +0100)]
[docs, untested] Attempt to fix links to source (#420)

2 years agoAdding MLX backend. (#419)
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>
2 years ago[docs] Update list of projects using safetensors (#418)
Mishig [Thu, 4 Jan 2024 11:00:24 +0000 (12:00 +0100)]
[docs] Update list of projects using safetensors (#418)

Add `mlx` & `candle`

2 years agoDocument `huggingface_hub.get_safetensors_metadata` (#417)
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>
2 years agoAdding stale action. (#398)
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.

3 years agoReleasing for python 3.12/3.13 and testing on 3.11. (#393)
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.

3 years agoFix/errors for some models including Mistral-7b and Flan-ul2 (#388)
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>
3 years agoUpgrade dev version. (#392)
Nicolas Patry [Mon, 27 Nov 2023 11:08:23 +0000 (12:08 +0100)]
Upgrade dev version. (#392)

3 years agoFix convert. (#390)
Nicolas Patry [Mon, 20 Nov 2023 10:22:45 +0000 (11:22 +0100)]
Fix convert. (#390)

3 years agoAdding support for Ascend NPU (#372)
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

3 years agoIgnore closed PRs to avoid spam. (#385)
Nicolas Patry [Fri, 17 Nov 2023 18:04:45 +0000 (19:04 +0100)]
Ignore closed PRs to avoid spam. (#385)

3 years agoBetter convert. (#384)
Nicolas Patry [Fri, 17 Nov 2023 17:28:16 +0000 (18:28 +0100)]
Better convert. (#384)

3 years agoSupport fp8_e4m3/fp8_e5m2 (#383)
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

3 years agoFix typo (#377)
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>
3 years agoSupporting bfloat16 for tensorflow + jax (was failing because of (#382)
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).

3 years agoPreparing a new release (0.4.0). (#366)
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

3 years agofix: add py.typed (#365)
bart [Wed, 20 Sep 2023 15:07:58 +0000 (17:07 +0200)]
fix: add py.typed (#365)

3 years agoStop recreating the hashmap all the time. (#363)
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>
3 years agoMinor docstring edit to flax.py (#359)
Paul Bricman [Mon, 18 Sep 2023 14:45:28 +0000 (17:45 +0300)]
Minor docstring edit to flax.py (#359)

3 years agoFixing release script for windows aarch64 and 3.12 (#348)
Nicolas Patry [Fri, 8 Sep 2023 11:38:51 +0000 (13:38 +0200)]
Fixing release script for windows aarch64 and 3.12 (#348)

3 years agoUpdate torch.py (#356)
Kevin Hu [Fri, 8 Sep 2023 07:25:12 +0000 (00:25 -0700)]
Update torch.py (#356)

3 years ago[docs] Convert weights (#345)
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

3 years agoReduce memory allocations (#350)
cospectrum [Wed, 30 Aug 2023 11:13:13 +0000 (14:13 +0300)]
Reduce memory allocations (#350)

3 years agoTrying out maturin. (#344)
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.

3 years agowin64 (#343)
Nicolas Patry [Thu, 24 Aug 2023 08:16:18 +0000 (10:16 +0200)]
win64 (#343)

3 years agoWin64. (#342)
Nicolas Patry [Thu, 24 Aug 2023 07:28:59 +0000 (09:28 +0200)]
Win64. (#342)

3 years agoPython 3.8 for arm (#339)
Nicolas Patry [Wed, 23 Aug 2023 14:28:00 +0000 (16:28 +0200)]
Python 3.8 for arm (#339)

3 years agoFixing release script. (#338)
Nicolas Patry [Wed, 23 Aug 2023 13:20:09 +0000 (15:20 +0200)]
Fixing release script. (#338)

3 years agoDon't release rust versions on RC (#337)
Nicolas Patry [Wed, 23 Aug 2023 11:25:47 +0000 (13:25 +0200)]
Don't release rust versions on RC (#337)

3 years agoTemporary revert of the breaking change (keep it for 0.4.0). (#336)
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)

3 years agoPreparing small patch release (Big Endian fix). (#335)
Nicolas Patry [Wed, 23 Aug 2023 11:00:06 +0000 (13:00 +0200)]
Preparing small patch release (Big Endian fix). (#335)

3 years agoReworked the release script entirely (#334)
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.

3 years agoimpl `View` for `TensorView` (#329)
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.

3 years agoAdd NumPy for all backends dependencies (#332)
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

3 years agoFixing boolean + numpy > 1.20 (#326)
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.

3 years agoFixing big endian. (#327)
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.

3 years agoYaml is nice. (#325)
Nicolas Patry [Wed, 16 Aug 2023 18:16:20 +0000 (20:16 +0200)]
Yaml is nice. (#325)

3 years agoFix Bench GH action. (#323)
Nicolas Patry [Wed, 16 Aug 2023 16:06:37 +0000 (18:06 +0200)]
Fix Bench GH action. (#323)

3 years agoadd tensorshare to featured projects (#322)
Thomas Chaigneau [Wed, 16 Aug 2023 15:52:12 +0000 (17:52 +0200)]
add tensorshare to featured projects (#322)

3 years agoSupporting whisper conversion. (#320)
Nicolas Patry [Fri, 11 Aug 2023 21:29:45 +0000 (23:29 +0200)]
Supporting whisper conversion. (#320)

3 years agoCache dir all the time. (#319)
Nicolas Patry [Fri, 11 Aug 2023 14:12:47 +0000 (16:12 +0200)]
Cache dir all the time. (#319)

3 years agoFixing macos 13 release script (by prebuilding). (#315)
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...

3 years agoAdding new target for m1 (#317)
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.

3 years agoClarify specification around endianness and header padding (#306)
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>
3 years agoBack on dev. (#313)
Nicolas Patry [Tue, 8 Aug 2023 10:04:14 +0000 (12:04 +0200)]
Back on dev. (#313)

3 years agoFixes release scripts - Release ready version (#312)
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.

3 years agoCreating 0.3.2.rc1 release (#311)
Nicolas Patry [Mon, 7 Aug 2023 13:46:19 +0000 (15:46 +0200)]
Creating 0.3.2.rc1 release (#311)

3 years agofeat: Supporting big endian architecture. (#310)
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

3 years agofeat: Add filter for shared storage non overlapping tensors (#309)
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.

3 years agofix typo in `attacks/README.md` (#305)
Benson Liu [Tue, 1 Aug 2023 12:55:58 +0000 (05:55 -0700)]
fix typo in `attacks/README.md` (#305)

3 years agoAdding `slice` `get_dtype()` method to get the dtype directly on slices. (#303)
Nicolas Patry [Mon, 31 Jul 2023 14:41:25 +0000 (16:41 +0200)]
Adding `slice` `get_dtype()` method to get the dtype directly on slices. (#303)

3 years agoPassing the token around. (#302)
Nicolas Patry [Mon, 31 Jul 2023 14:00:59 +0000 (16:00 +0200)]
Passing the token around. (#302)

* Passing the token around.

* Update Python version (flax is broken on 3.7)

* Fixing flax ?

* Apply suggestions from code review

3 years agoSupport musicgen conversion. (#296)
Nicolas Patry [Tue, 11 Jul 2023 12:52:00 +0000 (14:52 +0200)]
Support musicgen conversion. (#296)

3 years agoFix link to shared tensor page (#294)
Wouter Zwerink [Fri, 7 Jul 2023 13:05:57 +0000 (15:05 +0200)]
Fix link to shared tensor page (#294)

3 years agoAutodoc for save_model and load_model (#293)
Wouter Zwerink [Fri, 7 Jul 2023 11:21:02 +0000 (13:21 +0200)]
Autodoc for save_model and load_model (#293)

3 years agoAdding more control to the chosen weights saved on disk. (#292)
Nicolas Patry [Fri, 7 Jul 2023 09:33:14 +0000 (11:33 +0200)]
Adding more control to the chosen weights saved on disk. (#292)

3 years agoFix docstring Args names. (#290)
Akinori Mitani [Tue, 4 Jul 2023 14:41:59 +0000 (07:41 -0700)]
Fix docstring Args names. (#290)

Fix docstring Args names.

3 years agoRevert dev change (#288)
Mishig [Fri, 30 Jun 2023 13:13:17 +0000 (15:13 +0200)]
Revert dev change (#288)

3 years agoFix failing doc build workflows (#287)
Mishig [Fri, 30 Jun 2023 10:30:41 +0000 (12:30 +0200)]
Fix failing doc build workflows (#287)

* [wip: fix docs]

* wip

* pin tf version for doc-builder

3 years agoSuperseed #279 (#285)
Nicolas Patry [Fri, 30 Jun 2023 08:32:00 +0000 (10:32 +0200)]
Superseed #279 (#285)

* Update README.md

Add note about arbitrary JSON not allowed in __metadata__.

* Update README.md

Co-authored-by: Julien Chaumond <julien@huggingface.co>
* Update other readmes.

---------

Co-authored-by: by321 <by321@hotmail.com>
Co-authored-by: Julien Chaumond <julien@huggingface.co>
3 years agoFixing uniform empty tensor handling (#283)
Nicolas Patry [Fri, 30 Jun 2023 07:53:38 +0000 (09:53 +0200)]
Fixing uniform empty tensor handling (#283)

- Fixes #280

3 years agoFix wrong docstring for SafeTensors' names method (#250) (#284)
Alvaro Moran [Fri, 30 Jun 2023 07:16:05 +0000 (09:16 +0200)]
Fix wrong docstring for SafeTensors' names method (#250) (#284)

3 years agoMissing files. (#282)
Nicolas Patry [Tue, 27 Jun 2023 09:39:55 +0000 (11:39 +0200)]
Missing files. (#282)

* Update README.md

* Missing files.

---------

Co-authored-by: iacore <74560659+iacore@users.noreply.github.com>
3 years agofix syntax error in import statement (#276)
Jakub Kaczmarzyk [Wed, 21 Jun 2023 10:21:48 +0000 (06:21 -0400)]
fix syntax error in import statement (#276)

3 years agoAdd a reference to tch-rs (#274)
Laurent Mazare [Thu, 15 Jun 2023 15:00:03 +0000 (16:00 +0100)]
Add a reference to tch-rs (#274)

3 years agoMake tensor identifier a bit more robust, and transformers compatible (#264)
Thomas Wang [Tue, 13 Jun 2023 16:20:19 +0000 (18:20 +0200)]
Make tensor identifier a bit more robust, and transformers compatible (#264)

* Make tensor identifier a bit more robust, and transformers compatible

* Prove that you need to storage storage size as well

* Lint

* Backward compatility for torch version

* Lint

* Fixing tests.

* Test supporting mutliple torch versions.

* Fixing _flatten share pointer detection.

* More code reuse.

* Better error message.

* Attempting to debug what's wrong.

* Fixing torch 1.13... God this is awful.

* Latest python ?

* Dancing with versions.

* ..

---------

Co-authored-by: Nicolas Patry <patry.nicolas@protonmail.com>
3 years ago[doc build] Use secrets (#270)
Mishig [Fri, 9 Jun 2023 10:59:02 +0000 (12:59 +0200)]
[doc build] Use secrets (#270)

3 years agoRemove ISSUE links. (#269)
Nicolas Patry [Wed, 7 Jun 2023 11:56:51 +0000 (13:56 +0200)]
Remove ISSUE links. (#269)

3 years agoAdding issue templates. (#268)
Nicolas Patry [Wed, 7 Jun 2023 11:45:47 +0000 (13:45 +0200)]
Adding issue templates. (#268)

3 years agofix typos (#257)
Kazuaki Ishizaki [Tue, 6 Jun 2023 13:14:50 +0000 (13:14 +0000)]
fix typos (#257)

3 years ago Add BERTopic in Featured Projects (#267)
Daniel van Strien [Tue, 6 Jun 2023 13:12:43 +0000 (14:12 +0100)]
 Add BERTopic in Featured Projects (#267)

3 years agoAdding error checking, convertion can fail on schedulers. (#266)
Nicolas Patry [Tue, 6 Jun 2023 11:03:30 +0000 (13:03 +0200)]
Adding error checking, convertion can fail on schedulers. (#266)

* Adding error checking, convertion can fail on schedulers.

* Printing messages on using the script directly.

3 years agoAdd `safejax` in "Featured Projects" (#260)
Alvaro Bartolome [Mon, 5 Jun 2023 14:40:06 +0000 (16:40 +0200)]
Add `safejax` in "Featured Projects" (#260)

3 years agoUpdate metadata_parsing.mdx (#261)
Mishig [Fri, 2 Jun 2023 08:26:28 +0000 (10:26 +0200)]
Update metadata_parsing.mdx (#261)

Add links to featured models

3 years agoFixing the spec with mention about the buffer which cannot be non-contiguous. (#253)
Nicolas Patry [Mon, 22 May 2023 14:07:24 +0000 (16:07 +0200)]
Fixing the spec with mention about the buffer which cannot be non-contiguous. (#253)

* Adding specification that the byte buffer needs to be contiguous and
full.

* Fix cargo.lock which messes up benchmarks.

3 years ago[docs] Safetensors format (#248)
Mishig [Mon, 22 May 2023 14:00:54 +0000 (16:00 +0200)]
[docs] Safetensors format (#248)

* [docs] Safetensors format

* More text

* Add format illustration