shomez commited on
Commit
97def29
·
verified ·
1 Parent(s): cb45b6d

Upload METADATA with huggingface_hub

Browse files
Files changed (1) hide show
  1. METADATA +47 -111
METADATA CHANGED
@@ -1,127 +1,63 @@
1
  Metadata-Version: 2.3
2
- Name: safetensors
3
- Version: 0.4.3
4
- Classifier: Development Status :: 5 - Production/Stable
 
 
 
 
 
 
 
 
 
 
 
5
  Classifier: Intended Audience :: Developers
6
- Classifier: Intended Audience :: Education
7
- Classifier: Intended Audience :: Science/Research
8
- Classifier: License :: OSI Approved :: Apache Software License
9
  Classifier: Operating System :: OS Independent
10
- Classifier: Programming Language :: Python :: 3
11
- Classifier: Programming Language :: Python :: 3.7
12
  Classifier: Programming Language :: Python :: 3.8
13
  Classifier: Programming Language :: Python :: 3.9
14
  Classifier: Programming Language :: Python :: 3.10
15
- Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
16
- Classifier: Typing :: Typed
17
- Requires-Dist: numpy >=1.21.6 ; extra == 'numpy'
18
- Requires-Dist: safetensors[numpy] ; extra == 'torch'
19
- Requires-Dist: torch >=1.10 ; extra == 'torch'
20
- Requires-Dist: safetensors[numpy] ; extra == 'tensorflow'
21
- Requires-Dist: tensorflow >=2.11.0 ; extra == 'tensorflow'
22
- Requires-Dist: safetensors[numpy] ; extra == 'pinned-tf'
23
- Requires-Dist: tensorflow ==2.11.0 ; extra == 'pinned-tf'
24
- Requires-Dist: safetensors[numpy] ; extra == 'jax'
25
- Requires-Dist: flax >=0.6.3 ; extra == 'jax'
26
- Requires-Dist: jax >=0.3.25 ; extra == 'jax'
27
- Requires-Dist: jaxlib >=0.3.25 ; extra == 'jax'
28
- Requires-Dist: mlx >=0.0.9 ; extra == 'mlx'
29
- Requires-Dist: safetensors[numpy] ; extra == 'paddlepaddle'
30
- Requires-Dist: paddlepaddle >=2.4.1 ; extra == 'paddlepaddle'
31
- Requires-Dist: black ==22.3 ; extra == 'quality'
32
- Requires-Dist: click ==8.0.4 ; extra == 'quality'
33
- Requires-Dist: isort >=5.5.4 ; extra == 'quality'
34
- Requires-Dist: flake8 >=3.8.3 ; extra == 'quality'
35
- Requires-Dist: safetensors[numpy] ; extra == 'testing'
36
- Requires-Dist: h5py >=3.7.0 ; extra == 'testing'
37
- Requires-Dist: huggingface-hub >=0.12.1 ; extra == 'testing'
38
- Requires-Dist: setuptools-rust >=1.5.2 ; extra == 'testing'
39
- Requires-Dist: pytest >=7.2.0 ; extra == 'testing'
40
- Requires-Dist: pytest-benchmark >=4.0.0 ; extra == 'testing'
41
- Requires-Dist: hypothesis >=6.70.2 ; extra == 'testing'
42
- Requires-Dist: safetensors[torch] ; extra == 'all'
43
- Requires-Dist: safetensors[numpy] ; extra == 'all'
44
- Requires-Dist: safetensors[pinned-tf] ; extra == 'all'
45
- Requires-Dist: safetensors[jax] ; extra == 'all'
46
- Requires-Dist: safetensors[paddlepaddle] ; extra == 'all'
47
- Requires-Dist: safetensors[quality] ; extra == 'all'
48
- Requires-Dist: safetensors[testing] ; extra == 'all'
49
- Requires-Dist: safetensors[all] ; extra == 'dev'
50
- Provides-Extra: numpy
51
- Provides-Extra: torch
52
- Provides-Extra: tensorflow
53
- Provides-Extra: pinned-tf
54
- Provides-Extra: jax
55
- Provides-Extra: mlx
56
- Provides-Extra: paddlepaddle
57
- Provides-Extra: quality
58
- Provides-Extra: testing
59
- Provides-Extra: all
60
- Provides-Extra: dev
61
- Author-email: Nicolas Patry <patry.nicolas@protonmail.com>
62
- Requires-Python: >=3.7
63
- Description-Content-Type: text/markdown; charset=UTF-8; variant=GFM
64
- Project-URL: Homepage, https://github.com/huggingface/safetensors
65
- Project-URL: Source, https://github.com/huggingface/safetensors
66
 
67
- ## Installation
 
 
68
 
69
- ```
70
- pip install safetensors
71
- ```
72
 
 
 
 
73
 
74
- ## Usage
 
 
75
 
76
- ### Numpy
 
 
77
 
78
- ```python
79
- from safetensors.numpy import save_file, load_file
80
- import numpy as np
81
 
82
- tensors = {
83
- "a": np.zeros((2, 2)),
84
- "b": np.zeros((2, 3), dtype=np.uint8)
85
- }
86
 
87
- save_file(tensors, "./model.safetensors")
88
 
 
89
 
90
- # Now loading
91
- loaded = load_file("./model.safetensors")
92
- ```
93
-
94
- ### Torch
95
-
96
- ```python
97
- from safetensors.torch import save_file, load_file
98
- import torch
99
-
100
- tensors = {
101
- "a": torch.zeros((2, 2)),
102
- "b": torch.zeros((2, 3), dtype=torch.uint8)
103
- }
104
-
105
- save_file(tensors, "./model.safetensors")
106
-
107
-
108
- # Now loading
109
- loaded = load_file("./model.safetensors")
110
- ```
111
-
112
- ### Developing
113
-
114
- ```
115
- # inside ./safetensors/bindings/python
116
- pip install .[dev]
117
- ```
118
- Should be enough to install this library locally.
119
-
120
- ### Testing
121
-
122
- ```
123
- # inside ./safetensors/bindings/python
124
- pip install .[dev]
125
- pytest -sv tests/
126
- ```
127
-
 
1
  Metadata-Version: 2.3
2
+ Name: referencing
3
+ Version: 0.35.1
4
+ Summary: JSON Referencing + Python
5
+ Project-URL: Documentation, https://referencing.readthedocs.io/
6
+ Project-URL: Homepage, https://github.com/python-jsonschema/referencing
7
+ Project-URL: Issues, https://github.com/python-jsonschema/referencing/issues/
8
+ Project-URL: Funding, https://github.com/sponsors/Julian
9
+ Project-URL: Tidelift, https://tidelift.com/subscription/pkg/pypi-referencing?utm_source=pypi-referencing&utm_medium=referral&utm_campaign=pypi-link
10
+ Project-URL: Changelog, https://referencing.readthedocs.io/en/stable/changes/
11
+ Project-URL: Source, https://github.com/python-jsonschema/referencing
12
+ Author-email: Julian Berman <Julian+referencing@GrayVines.com>
13
+ License-File: COPYING
14
+ Keywords: asyncapi,json,jsonschema,openapi,referencing
15
+ Classifier: Development Status :: 3 - Alpha
16
  Classifier: Intended Audience :: Developers
17
+ Classifier: License :: OSI Approved :: MIT License
 
 
18
  Classifier: Operating System :: OS Independent
19
+ Classifier: Programming Language :: Python
 
20
  Classifier: Programming Language :: Python :: 3.8
21
  Classifier: Programming Language :: Python :: 3.9
22
  Classifier: Programming Language :: Python :: 3.10
23
+ Classifier: Programming Language :: Python :: 3.11
24
+ Classifier: Programming Language :: Python :: 3.12
25
+ Classifier: Programming Language :: Python :: Implementation :: CPython
26
+ Classifier: Programming Language :: Python :: Implementation :: PyPy
27
+ Classifier: Topic :: File Formats :: JSON
28
+ Classifier: Topic :: File Formats :: JSON :: JSON Schema
29
+ Requires-Python: >=3.8
30
+ Requires-Dist: attrs>=22.2.0
31
+ Requires-Dist: rpds-py>=0.7.0
32
+ Description-Content-Type: text/x-rst
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
33
 
34
+ ===============
35
+ ``referencing``
36
+ ===============
37
 
38
+ |PyPI| |Pythons| |CI| |ReadTheDocs| |pre-commit|
 
 
39
 
40
+ .. |PyPI| image:: https://img.shields.io/pypi/v/referencing.svg
41
+ :alt: PyPI version
42
+ :target: https://pypi.org/project/referencing/
43
 
44
+ .. |Pythons| image:: https://img.shields.io/pypi/pyversions/referencing.svg
45
+ :alt: Supported Python versions
46
+ :target: https://pypi.org/project/referencing/
47
 
48
+ .. |CI| image:: https://github.com/python-jsonschema/referencing/workflows/CI/badge.svg
49
+ :alt: Build status
50
+ :target: https://github.com/python-jsonschema/referencing/actions?query=workflow%3ACI
51
 
52
+ .. |ReadTheDocs| image:: https://readthedocs.org/projects/referencing/badge/?version=stable&style=flat
53
+ :alt: ReadTheDocs status
54
+ :target: https://referencing.readthedocs.io/en/stable/
55
 
56
+ .. |pre-commit| image:: https://results.pre-commit.ci/badge/github/python-jsonschema/referencing/main.svg
57
+ :alt: pre-commit.ci status
58
+ :target: https://results.pre-commit.ci/latest/github/python-jsonschema/referencing/main
 
59
 
 
60
 
61
+ An implementation-agnostic implementation of JSON reference resolution.
62
 
63
+ See `the documentation <https://referencing.readthedocs.io/>`_ for more details.