Commit Graph

158 Commits

Author SHA1 Message Date
1740bff7a6 Revert "Upgrade python versions."
This reverts commit b81ec467a6.
2024-11-06 13:18:03 +08:00
b81ec467a6 Upgrade python versions. 2024-11-06 13:17:22 +08:00
0f3a3f957e update workflow 2024-11-04 18:38:32 +01:00
6c15458868 Bump actions versions (#1669)
* Update docs-check.yml

Bump actions/setup-python to v5
Bump python-version to 3.12 (default on ubuntu-latest)
Switch actions-rs/toolchain to dtolnay/rust-toolchain as the former one is no longer maintained

* Update node-release.yml

Bump actions/setup-python to v5
Switch actions-rs/toolchain to dtolnay/rust-toolchain as the former one is no longer maintained
Bump actions/cache to v4
Bump actions/setup-node to v4
Bump actions/upload-artifact to v4
Bump actions/download-artifact to v4

* Update node.yml

Switch actions-rs/toolchain to dtolnay/rust-toolchain as the former one is no longer maintained
Bump actions/cache to v4
Bump actions/setup-node to v4

* Update python-release-conda.yml

Switch actions-rs/toolchain to dtolnay/rust-toolchain as the former one is no longer maintained
Bump conda-incubator/setup-miniconda to v3

* Update python-release.yml

Bump actions/setup-python to v5
Bump actions/download-artifact to v4

* Update rust-release.yml

Switch actions-rs/toolchain to dtolnay/rust-toolchain as the former one is no longer maintained
Bump actions/cache to v4

* Update stale.yml

Bump actions/stale to v9

* Update python.yml

Bump actions/setup-python to v5
2024-11-01 10:19:35 +01:00
41e0eaa561 Bump actions/checkout to v4 (#1667)
Signed-off-by: tinyboxvk <tinyboxvk@users.noreply.github.com>
2024-10-29 14:32:07 +01:00
3d51a1695f Fix documentation build (#1642)
* use v4

* fix ruff

* style
2024-10-01 14:48:02 +02:00
b4a38c4f63 Bump actions/download-artifact from 3 to 4.1.7 in /.github/workflows (#1626)
Bumps [actions/download-artifact](https://github.com/actions/download-artifact) from 3 to 4.1.7.
- [Release notes](https://github.com/actions/download-artifact/releases)
- [Commits](https://github.com/actions/download-artifact/compare/v3...v4.1.7)

---
updated-dependencies:
- dependency-name: actions/download-artifact
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-09-30 16:38:28 +02:00
85cc05a32f Fix CI (#1607) 2024-08-08 17:09:30 +02:00
7b80359dd2 Fixing release CI strict (taken from safetensors). 2024-08-06 09:11:30 +02:00
418c35c09e feat(ci): add trufflehog secrets detection (#1551)
* feat(ci): add trufflehog secrets detection

* fix(ci): remove unnecessary permissions
2024-06-10 16:10:23 +02:00
25aee8b88c [BREAKING CHANGE] Ignore added_tokens (both special and not) in the decoder (#1513)
* [BREAKING CHANGE] Ignore added_tokens (both special and not) in the
decoder

Causes issues with `ByteLevel` messing up some `AddedTokens` with some
utf-8 range used in the bytelevel mapping.

This commit tests the extend of the damage of ignoring the decoder for
those tokens.

* Format.

* Installing cargo audit.

* Minor fix.

* Fixing "bug" in node/python.

* Autoformat.

* Clippy.

* Only prefix space when there's no decoder.
2024-05-06 11:49:38 +02:00
f2ec3b239b remove enforcement of non special when adding tokens (#1521)
* remove enforcement of non special when adding tokens

* mut no longer needed

* add a small test

* nit

* style

* audit

* ignore cargo audit's own vulnerability

* update

* revert

* remove CVE
2024-04-30 15:53:47 +02:00
e0defa7355 Remove 3.13 (potential undefined behavior.) (#1497) 2024-04-16 15:56:47 +02:00
accd0650b8 Update release for python3.12 windows (#1438)
Co-authored-by: Nicolas Patry <patry.nicolas@protonmail.com>
2024-01-19 15:56:47 +01:00
8f9b945c75 Stale bot. (#1404) 2023-12-05 14:11:37 +01:00
985d49ae64 fix: remove useless token (#1371) 2023-10-19 14:29:01 +02:00
aed491df8c Fixing the progressbar. (#1353)
* Fixing the progressbar.

* Upgrade deps.

* Update cargo audit

* Ssh this action.

* Fixing esaxx by using slower rust version.

* Trying the new esaxx version.

* Publish.

* Get cache again.
2023-10-05 15:33:58 +02:00
d2010d5165 Move to maturing mimicking move for safetensors. + Rewritten node bindings. (#1331)
* Move to maturing mimicking move for `safetensors`.

* Tmp.

* Fix sdist.

* Wat?

* Clippy 1.72

* Remove if.

* Conda sed.

* Fix doc check workflow.

* Moving to maturin AND removing http + openssl mess (smoothing transition
moving to `huggingface_hub`)

* Fix dep

* Black.

* New node bindings.

* Fix docs + node cache ?

* Yarn.

* Working dir.

* Extension module.

* Put back interpreter.

* Remove cache.

* New attempt

* Multi python.

* Remove FromPretrained.

* Remove traces of `fromPretrained`.

* Drop 3.12 for windows?

* Typo.

* Put back the default feature for ignoring links during simple test.

* Fix ?

* x86_64 -> x64.

* Remove warning for windows bindings.

* Excluse aarch.

* Include/exclude.

* Put back workflows in correct states.
2023-08-28 16:24:14 +02:00
f2952020d5 Python 38 arm (#1330) 2023-08-23 16:29:16 +02:00
6c350d88fe Re-using scritpts from safetensors. (#1328) 2023-08-23 15:37:38 +02:00
b35d33f981 Release all at once for simplicity. (#1320) 2023-08-14 13:49:45 +02:00
862046ac94 CD backports (#1318)
* CD backports

follow
huggingface/safetensors#317

* fix node bindings?

`cargo check` doesnt work on my local configuration from `tokenizers/bindings/node/native`
i don't think it will be a problem but i have difficulty telling

* backport #315

* safetensors#317 back ports
2023-08-10 18:52:22 +02:00
348ed70e58 [doc build] Use secrets (#1273) 2023-06-09 12:58:27 +02:00
a03330607b Update all GH Actions with dependency on actions/checkout from v[1,2] to v3 to notably improve performance (retrieve only the commit being checked-out) (#1256) 2023-05-22 14:50:00 +02:00
daf3fcc976 Rvert main hiccup. 2023-05-15 18:01:29 +02:00
b58227c7f1 Never gonna make you cry 2023-05-12 16:28:57 +02:00
02ad59edc1 Never gonna run around and desert you 2023-05-12 16:27:06 +02:00
8d07696c38 Never gonna let you down 2023-05-12 16:24:26 +02:00
d19bc63c67 Merge pull request #1212 from huggingface/fix-node-release
Fix node release
2023-04-06 16:25:29 +02:00
a714aac6f6 revert changes 2023-04-06 14:07:46 +00:00
ceb73dbd29 publish npm 2023-04-06 13:35:29 +00:00
42b110587c Fix conda release (#1211)
* runs-on: ubuntu-latest

* update jobs

* remove uploads

* upload conda package, remove python-release CI

* revert changes

* revart whitespace removal
2023-04-06 12:30:14 +02:00
fbd8d6188e update for testing 2023-04-06 10:29:42 +00:00
daf8aebd76 Adding python 3.8 for M1 (#1147) 2023-01-16 16:40:46 +01:00
5a94a2b6e7 Add missing build targets (#1145)
* M1 3.11 was not out neither windows amd64.

* python@v4.

* Actually upload.

* Update needs.

* Preparing the actual PR.
2023-01-15 10:18:08 +01:00
bfa842e063 Adding stale bot ? (#1123)
* Adding stale bot ?

* Clippy.
2022-12-19 13:50:48 +01:00
1649d74536 Fixing conda ssl location (#1124)
* Fixing conda build ?

* Reduce the scope to speedup testing.

* Reduce more.

* Trying to link to conda lib.

* Trying to enable `pkg-config` on the codna env.

* Really publish.

* Update conda builds.

* Remove 3.11

* Putting releases back onto release track.
2022-12-19 13:50:36 +01:00
67080e163a Include license file in Rust crate (#1115)
* Include license file in Rust crate

* Ignore security warning.

* Also for python.

* Upgrading ubuntu version.

Co-authored-by: Nicolas Patry <patry.nicolas@protonmail.com>
2022-11-30 23:17:56 +01:00
ffcf5a4136 Revert "Update pr docs actions (#1101)"
This reverts commit 99c06c82e0.
2022-11-16 11:41:38 +01:00
bbae829a72 Adding rust audit. (#1099)
* Adding rust audit.

* Update clap version + derive_builder (they clashed).

* Ignoring specific CVE which can be ignored

https://github.com/Azure/iot-identity-service/issues/481

* Updating python lock.

* Revert `derive-builder` update.

* Adding back help msg.
2022-11-09 12:59:36 +01:00
99c06c82e0 Update pr docs actions (#1101) 2022-11-09 11:09:52 +01:00
11bb2e00f2 Add python 3.11 to manylinux buildwheels (#1096)
* Add python 3.11 to manylinux buildwheels

* Fixing clippy.

* Node clippy.

* Python clippy.

* Changelog + version number update.

Co-authored-by: Nicolas Patry <patry.nicolas@protonmail.com>
2022-11-07 08:45:04 +01:00
96a9e5715c New version. (#1082)
* New version.

The actual release will happen *before* PyO3 0.17.2 because
the tests were ran before than.

* Manylinux2014 necessary now with Rust 1.64.
2022-10-06 15:45:56 +02:00
4ef0afbeb6 Update old gh actions, remove deprecated doc building. (#1069) 2022-10-05 17:59:46 +02:00
6113666624 Updating python formatting. (#1079)
* Updating python formatting.

* Forgot gh action.

* Skipping isort to prevent circular imports.

* Updating stub.

* Removing `isort` (it contradicts `stub.py`).

* Fixing weird stub black/isort disagreeement.
2022-10-05 15:29:33 +02:00
c174b5bd34 Adding m1 build to the release process for Python. (#1055)
* Adding m1 build to the release process for Python.

* typo.
2022-08-25 11:06:03 +02:00
519cc13be0 Upgrade pyo3 to 0.16 (#956)
* Upgrade pyo3 to 0.15

Rebase-conflicts-fixed-by: H. Vetinari <h.vetinari@gmx.com>

* Upgrade pyo3 to 0.16

Rebase-conflicts-fixed-by: H. Vetinari <h.vetinari@gmx.com>

* Install Python before running cargo clippy

* Fix clippy warnings

* Use `PyArray_Check` instead of downcasting to `PyArray1<u8>`

* Enable `auto-initialize` of pyo3 to fix `cargo test
--no-default-features`

* Fix some test cases

Why do they change?

* Refactor and add SAFETY comments to `PyArrayUnicode`

Replace deprecated `PyUnicode_FromUnicode` with `PyUnicode_FromKindAndData`

Co-authored-by: messense <messense@icloud.com>
2022-05-05 15:48:40 +02:00
37957f67f1 Fix typo in doc-build GH workflow 2022-04-21 16:42:04 +02:00
dad9c6c0d2 Revert dev changes 2022-04-21 16:08:22 +02:00
95b5d066d5 Update doc build gh workflow to install rust 2022-04-21 09:20:20 +02:00