cryptotensors-koalavault-vllm 0.1.0__cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- cryptotensors_koalavault_vllm/__init__.py +6 -0
- cryptotensors_koalavault_vllm/_native.cpython-311-x86_64-linux-gnu.so +0 -0
- cryptotensors_koalavault_vllm/_native.cpython-311-x86_64-linux-gnu.so.sig +1 -0
- cryptotensors_koalavault_vllm-0.1.0.dist-info/METADATA +188 -0
- cryptotensors_koalavault_vllm-0.1.0.dist-info/RECORD +7 -0
- cryptotensors_koalavault_vllm-0.1.0.dist-info/WHEEL +5 -0
- cryptotensors_koalavault_vllm-0.1.0.dist-info/entry_points.txt +2 -0
|
Binary file
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
00/fuhBXShQLobvsX/EMEWFDFSyGRJ3CVOrT2sqnYX8X8AEkBX8PRg8H9fvBHeU+UhbM+LK8AvcbibEGm822AQ==
|
|
@@ -0,0 +1,188 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: cryptotensors-koalavault-vllm
|
|
3
|
+
Version: 0.1.0
|
|
4
|
+
Classifier: Development Status :: 4 - Beta
|
|
5
|
+
Classifier: Intended Audience :: Developers
|
|
6
|
+
Classifier: Topic :: Security :: Cryptography
|
|
7
|
+
Classifier: Topic :: Software Development :: Libraries :: Python Modules
|
|
8
|
+
Classifier: Programming Language :: Python :: 3
|
|
9
|
+
Classifier: Programming Language :: Python :: 3.9
|
|
10
|
+
Classifier: Programming Language :: Python :: 3.10
|
|
11
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
12
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
13
|
+
Classifier: Operating System :: OS Independent
|
|
14
|
+
Requires-Dist: cryptotensors>=0.2.0
|
|
15
|
+
Requires-Dist: pytest>=7.0 ; extra == 'dev'
|
|
16
|
+
Requires-Dist: pytest>=7.0 ; extra == 'integration'
|
|
17
|
+
Requires-Dist: pytest-asyncio>=0.23.0 ; extra == 'integration'
|
|
18
|
+
Requires-Dist: fastapi>=0.109.0 ; extra == 'integration'
|
|
19
|
+
Requires-Dist: uvicorn>=0.27.0 ; extra == 'integration'
|
|
20
|
+
Requires-Dist: cryptography>=42.0.0 ; extra == 'integration'
|
|
21
|
+
Requires-Dist: pyjwt>=2.8.0 ; extra == 'integration'
|
|
22
|
+
Requires-Dist: httpx>=0.27.0 ; extra == 'integration'
|
|
23
|
+
Requires-Dist: requests>=2.31.0 ; extra == 'integration'
|
|
24
|
+
Provides-Extra: dev
|
|
25
|
+
Provides-Extra: integration
|
|
26
|
+
Summary: KoalaVault Key Provider for CryptoTensors - Secure key management for encrypted model deployment with vLLM
|
|
27
|
+
Keywords: cryptotensors,koalavault,key-management,encryption,vllm,provider
|
|
28
|
+
Home-Page: https://koalavault.com
|
|
29
|
+
Author: KoalaVault Team
|
|
30
|
+
License: Proprietary
|
|
31
|
+
Requires-Python: >=3.9
|
|
32
|
+
Description-Content-Type: text/markdown; charset=UTF-8; variant=GFM
|
|
33
|
+
Project-URL: Bug Tracker, https://pypi.org/project/cryptotensors-koalavault-vllm/
|
|
34
|
+
Project-URL: Documentation, https://docs.koalavault.com
|
|
35
|
+
Project-URL: Homepage, https://koalavault.com
|
|
36
|
+
Project-URL: Repository, https://pypi.org/project/cryptotensors-koalavault-vllm/
|
|
37
|
+
|
|
38
|
+
# cryptotensors-koalavault-vllm
|
|
39
|
+
|
|
40
|
+
[](https://badge.fury.io/py/cryptotensors-koalavault-vllm)
|
|
41
|
+
[](https://crates.io/crates/cryptotensors-koalavault-vllm)
|
|
42
|
+
|
|
43
|
+
KoalaVault Key Provider for CryptoTensors - A secure key management provider for encrypted model deployment with vLLM.
|
|
44
|
+
|
|
45
|
+
> **Note**: This package is distributed as pre-compiled binaries. The Rust source code is proprietary and not publicly available.
|
|
46
|
+
|
|
47
|
+
## Overview
|
|
48
|
+
|
|
49
|
+
`cryptotensors-koalavault-vllm` is a Key Provider implementation for the [CryptoTensors](https://github.com/aiyah-meloken/cryptotensors) library, specifically designed for secure model deployment with vLLM. It provides:
|
|
50
|
+
|
|
51
|
+
- **Secure Key Management**: Automatic key retrieval from KoalaVault servers
|
|
52
|
+
- **Attestation Support**: Framework integrity verification for secure deployments
|
|
53
|
+
- **vLLM Integration**: Seamless integration with vLLM for encrypted model serving
|
|
54
|
+
- **Native Performance**: Rust-based implementation with Python bindings
|
|
55
|
+
- **Binary Distribution**: Pre-compiled native libraries for easy installation
|
|
56
|
+
|
|
57
|
+
## Installation
|
|
58
|
+
|
|
59
|
+
### From PyPI
|
|
60
|
+
|
|
61
|
+
```bash
|
|
62
|
+
pip install cryptotensors-koalavault-vllm
|
|
63
|
+
```
|
|
64
|
+
|
|
65
|
+
The package includes pre-compiled binaries for common platforms. No compilation or Rust toolchain is required.
|
|
66
|
+
|
|
67
|
+
## Quick Start
|
|
68
|
+
|
|
69
|
+
### Basic Usage
|
|
70
|
+
|
|
71
|
+
```python
|
|
72
|
+
import cryptotensors
|
|
73
|
+
|
|
74
|
+
# Initialize the KoalaVault provider
|
|
75
|
+
cryptotensors.init_key_provider(
|
|
76
|
+
"koalavault-vllm",
|
|
77
|
+
api_key="your-api-key",
|
|
78
|
+
model_owner="model-owner",
|
|
79
|
+
model_name="model-name",
|
|
80
|
+
model_path="/path/to/model"
|
|
81
|
+
)
|
|
82
|
+
|
|
83
|
+
# Now you can use cryptotensors to load encrypted models
|
|
84
|
+
from cryptotensors import safe_open
|
|
85
|
+
|
|
86
|
+
with safe_open("model.safetensors", framework="pt") as f:
|
|
87
|
+
tensor = f.get_tensor("layer.weight")
|
|
88
|
+
```
|
|
89
|
+
|
|
90
|
+
### With vLLM
|
|
91
|
+
|
|
92
|
+
The provider is typically initialized automatically when using the KoalaVault vLLM container:
|
|
93
|
+
|
|
94
|
+
```bash
|
|
95
|
+
docker run --rm \
|
|
96
|
+
-e KOALAVAULT_API_KEY=your-api-key \
|
|
97
|
+
-v /path/to/models:/models \
|
|
98
|
+
koalavault/vllm:latest \
|
|
99
|
+
--koalavault-api-key your-api-key \
|
|
100
|
+
--koalavault-model owner/model-name \
|
|
101
|
+
--model /models/model-name
|
|
102
|
+
```
|
|
103
|
+
|
|
104
|
+
## Architecture
|
|
105
|
+
|
|
106
|
+
This package implements the `KeyProvider` trait from the CryptoTensors core library. When initialized, it:
|
|
107
|
+
|
|
108
|
+
1. **Authenticates** with the KoalaVault server using the provided API key
|
|
109
|
+
2. **Performs Attestation** to verify the framework integrity
|
|
110
|
+
3. **Retrieves Keys** for decrypting the encrypted model tensors
|
|
111
|
+
4. **Manages Keys** securely in memory without exposing them to Python
|
|
112
|
+
|
|
113
|
+
## API Reference
|
|
114
|
+
|
|
115
|
+
### Python API
|
|
116
|
+
|
|
117
|
+
#### `cryptotensors.init_key_provider(name, **config)`
|
|
118
|
+
|
|
119
|
+
Initialize and activate a key provider.
|
|
120
|
+
|
|
121
|
+
**Parameters:**
|
|
122
|
+
- `name` (str): Provider name, must be `"koalavault-vllm"`
|
|
123
|
+
- `api_key` (str): KoalaVault API key
|
|
124
|
+
- `model_owner` (str): Model owner identifier
|
|
125
|
+
- `model_name` (str): Model name identifier
|
|
126
|
+
- `model_path` (str): Path to the model directory
|
|
127
|
+
|
|
128
|
+
**Example:**
|
|
129
|
+
```python
|
|
130
|
+
cryptotensors.init_key_provider(
|
|
131
|
+
"koalavault-vllm",
|
|
132
|
+
api_key="sk-...",
|
|
133
|
+
model_owner="my-org",
|
|
134
|
+
model_name="my-model",
|
|
135
|
+
model_path="/models/my-model"
|
|
136
|
+
)
|
|
137
|
+
```
|
|
138
|
+
|
|
139
|
+
### Rust API
|
|
140
|
+
|
|
141
|
+
The Rust crate provides the `KoalaVaultProvider` struct that implements the `KeyProvider` trait. The crate is distributed as a binary library (cdylib) and can be used via FFI:
|
|
142
|
+
|
|
143
|
+
```rust
|
|
144
|
+
use cryptotensors::{KeyProvider, CryptoTensorsError};
|
|
145
|
+
|
|
146
|
+
// Provider is created via FFI function exported from the binary
|
|
147
|
+
// extern "C" fn cryptotensors_create_provider() -> *mut dyn KeyProvider
|
|
148
|
+
```
|
|
149
|
+
|
|
150
|
+
> **Note**: The Rust source code for this provider is proprietary. Only pre-compiled binary libraries are distributed via crates.io.
|
|
151
|
+
|
|
152
|
+
## Security Features
|
|
153
|
+
|
|
154
|
+
- **Signature Verification**: All provider libraries are cryptographically signed and verified before loading
|
|
155
|
+
- **Key Isolation**: Cryptographic keys never pass through the Python interpreter
|
|
156
|
+
- **Attestation**: Framework integrity is verified before key retrieval
|
|
157
|
+
- **Secure Storage**: Keys are stored in memory with automatic cleanup
|
|
158
|
+
|
|
159
|
+
## Requirements
|
|
160
|
+
|
|
161
|
+
- Python >= 3.9
|
|
162
|
+
- `cryptotensors` core library (>= 0.2.0)
|
|
163
|
+
|
|
164
|
+
## Distribution
|
|
165
|
+
|
|
166
|
+
This package is distributed as pre-compiled binary wheels for:
|
|
167
|
+
- Linux (x86_64, aarch64)
|
|
168
|
+
- macOS (x86_64, arm64)
|
|
169
|
+
- Windows (x86_64)
|
|
170
|
+
|
|
171
|
+
The Rust source code is proprietary and not available for public inspection or modification. Only the compiled binary libraries are distributed via PyPI and crates.io.
|
|
172
|
+
|
|
173
|
+
## License
|
|
174
|
+
|
|
175
|
+
This package is distributed under a proprietary license. The binary libraries are provided for use with the CryptoTensors ecosystem. See the package metadata for specific license terms.
|
|
176
|
+
|
|
177
|
+
## Links
|
|
178
|
+
|
|
179
|
+
- [CryptoTensors Core Library](https://github.com/aiyah-meloken/cryptotensors) (Open Source)
|
|
180
|
+
- [KoalaVault Documentation](https://docs.koalavault.com)
|
|
181
|
+
- [PyPI Package](https://pypi.org/project/cryptotensors-koalavault-vllm/)
|
|
182
|
+
- [Crates.io Package](https://crates.io/crates/cryptotensors-koalavault-vllm)
|
|
183
|
+
|
|
184
|
+
## Support
|
|
185
|
+
|
|
186
|
+
For issues and questions, please contact KoalaVault support or refer to the official documentation.
|
|
187
|
+
|
|
188
|
+
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
cryptotensors_koalavault_vllm/__init__.py,sha256=ikI-RzAc3PxBNotyaRfTohVZ-yIf8TxIAUIU-lqFOsQ,98
|
|
2
|
+
cryptotensors_koalavault_vllm/_native.cpython-311-x86_64-linux-gnu.so,sha256=6NkjZKYbJtnGRkRwVAAs_ufv6IbiGMfNZsQ-EX7U0H4,7126560
|
|
3
|
+
cryptotensors_koalavault_vllm/_native.cpython-311-x86_64-linux-gnu.so.sig,sha256=ShONKtg7Lrxrg10pJeRuTnkxuq8AKrJiHRdXRDutNcM,88
|
|
4
|
+
cryptotensors_koalavault_vllm-0.1.0.dist-info/METADATA,sha256=kuRwF0sEZcstrmNXrIIlUp2t_rt7_CbBI9rPcjsPsSA,6894
|
|
5
|
+
cryptotensors_koalavault_vllm-0.1.0.dist-info/WHEEL,sha256=KmtbzEMhBG7ILlpCgdxkDv7AlFCmdxefhRI54YAwnLk,147
|
|
6
|
+
cryptotensors_koalavault_vllm-0.1.0.dist-info/entry_points.txt,sha256=G7PjakhoAKSQMc7m244aqYpbA0DW6EYhLz8nK-tgwAs,72
|
|
7
|
+
cryptotensors_koalavault_vllm-0.1.0.dist-info/RECORD,,
|