remove trtllm 0.18 reference
#2
by
laikh-nvidia
- opened
- LICENSE +0 -9
- README.md +1 -2
- generate_metadata.py +0 -36
LICENSE
DELETED
@@ -1,9 +0,0 @@
|
|
1 |
-
MIT License
|
2 |
-
Copyright (c) 2025 Nvidia
|
3 |
-
Copyright (c) 2023 DeepSeek
|
4 |
-
|
5 |
-
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
6 |
-
|
7 |
-
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
8 |
-
|
9 |
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
README.md
CHANGED
@@ -1,7 +1,6 @@
|
|
1 |
---
|
2 |
base_model:
|
3 |
- deepseek-ai/DeepSeek-R1
|
4 |
-
license: mit
|
5 |
---
|
6 |
# Model Overview
|
7 |
|
@@ -14,7 +13,7 @@ This model is ready for commercial/non-commercial use. <br>
|
|
14 |
This model is not owned or developed by NVIDIA. This model has been developed and built to a third-party’s requirements for this application and use case; see link to Non-NVIDIA [(DeepSeek R1) Model Card](https://huggingface.co/deepseek-ai/DeepSeek-R1).
|
15 |
|
16 |
### License/Terms of Use:
|
17 |
-
[
|
18 |
|
19 |
|
20 |
## Model Architecture:
|
|
|
1 |
---
|
2 |
base_model:
|
3 |
- deepseek-ai/DeepSeek-R1
|
|
|
4 |
---
|
5 |
# Model Overview
|
6 |
|
|
|
13 |
This model is not owned or developed by NVIDIA. This model has been developed and built to a third-party’s requirements for this application and use case; see link to Non-NVIDIA [(DeepSeek R1) Model Card](https://huggingface.co/deepseek-ai/DeepSeek-R1).
|
14 |
|
15 |
### License/Terms of Use:
|
16 |
+
[nvidia-open-model-license](https://www.nvidia.com/en-us/agreements/enterprise-software/nvidia-open-model-license/)
|
17 |
|
18 |
|
19 |
## Model Architecture:
|
generate_metadata.py
DELETED
@@ -1,36 +0,0 @@
|
|
1 |
-
#!/usr/bin/env python3
|
2 |
-
|
3 |
-
import glob
|
4 |
-
import json
|
5 |
-
import os
|
6 |
-
|
7 |
-
from safetensors import safe_open # pip install safetensors
|
8 |
-
|
9 |
-
|
10 |
-
def main():
|
11 |
-
# Collect all shard files matching "model-*-of-*.safetensors"
|
12 |
-
shard_files = sorted(glob.glob("model-*-of-*.safetensors"))
|
13 |
-
|
14 |
-
# Calculate total size of all shards (in bytes)
|
15 |
-
total_size = sum(os.path.getsize(sf) for sf in shard_files)
|
16 |
-
|
17 |
-
metadata = {"total_size": total_size}
|
18 |
-
weight_map = {}
|
19 |
-
|
20 |
-
# Iterate over each shard and map its tensor names to the shard filename
|
21 |
-
for shard_file in shard_files:
|
22 |
-
with safe_open(shard_file, framework="np") as f:
|
23 |
-
for tensor_name in f.keys():
|
24 |
-
weight_map[tensor_name] = os.path.basename(shard_file)
|
25 |
-
|
26 |
-
output_dict = {"metadata": metadata, "weight_map": weight_map}
|
27 |
-
|
28 |
-
# Write JSON structure to "model.safetensors.index.json"
|
29 |
-
with open("model.safetensors.index.json", "w", encoding="utf-8") as out_file:
|
30 |
-
json.dump(output_dict, out_file, indent=2)
|
31 |
-
|
32 |
-
print("Created model.safetensors.index.json with total size =", total_size, "bytes.")
|
33 |
-
|
34 |
-
|
35 |
-
if __name__ == "__main__":
|
36 |
-
main()
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|