nextrec 0.5.0__py3-none-any.whl → 0.5.1__py3-none-any.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.
- nextrec/__version__.py +1 -1
- nextrec/cli.py +1 -2
- nextrec/utils/torch_utils.py +6 -1
- {nextrec-0.5.0.dist-info → nextrec-0.5.1.dist-info}/METADATA +4 -4
- {nextrec-0.5.0.dist-info → nextrec-0.5.1.dist-info}/RECORD +8 -8
- {nextrec-0.5.0.dist-info → nextrec-0.5.1.dist-info}/WHEEL +0 -0
- {nextrec-0.5.0.dist-info → nextrec-0.5.1.dist-info}/entry_points.txt +0 -0
- {nextrec-0.5.0.dist-info → nextrec-0.5.1.dist-info}/licenses/LICENSE +0 -0
nextrec/__version__.py
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
__version__ = "0.5.
|
|
1
|
+
__version__ = "0.5.1"
|
nextrec/cli.py
CHANGED
|
@@ -14,7 +14,7 @@ Examples:
|
|
|
14
14
|
nextrec --mode=predict --predict_config=nextrec_cli_preset/predict_config.yaml
|
|
15
15
|
|
|
16
16
|
Date: create on 06/12/2025
|
|
17
|
-
Checkpoint: edit on
|
|
17
|
+
Checkpoint: edit on 29/01/2026
|
|
18
18
|
Author: Yang Zhou, zyaztec@gmail.com
|
|
19
19
|
"""
|
|
20
20
|
|
|
@@ -251,7 +251,6 @@ def train_model(train_config_path: str) -> None:
|
|
|
251
251
|
processor.fit_from_files(
|
|
252
252
|
file_paths=streaming_train_files or file_paths,
|
|
253
253
|
file_type=file_type,
|
|
254
|
-
chunk_size=dataloader_chunk_size,
|
|
255
254
|
)
|
|
256
255
|
processed = None
|
|
257
256
|
df = None # type: ignore[assignment]
|
nextrec/utils/torch_utils.py
CHANGED
|
@@ -61,7 +61,12 @@ def to_tensor(
|
|
|
61
61
|
) -> torch.Tensor:
|
|
62
62
|
if value is None:
|
|
63
63
|
raise ValueError("[Tensor Utils Error] Cannot convert None to tensor.")
|
|
64
|
-
|
|
64
|
+
if isinstance(value, torch.Tensor):
|
|
65
|
+
tensor = value
|
|
66
|
+
else:
|
|
67
|
+
if isinstance(value, np.ndarray):
|
|
68
|
+
value = value.copy()
|
|
69
|
+
tensor = torch.as_tensor(value)
|
|
65
70
|
if tensor.dtype != dtype:
|
|
66
71
|
tensor = tensor.to(dtype=dtype)
|
|
67
72
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: nextrec
|
|
3
|
-
Version: 0.5.
|
|
3
|
+
Version: 0.5.1
|
|
4
4
|
Summary: A comprehensive recommendation library with match, ranking, and multi-task learning models
|
|
5
5
|
Project-URL: Homepage, https://github.com/zerolovesea/NextRec
|
|
6
6
|
Project-URL: Repository, https://github.com/zerolovesea/NextRec
|
|
@@ -73,7 +73,7 @@ Description-Content-Type: text/markdown
|
|
|
73
73
|

|
|
74
74
|

|
|
75
75
|

|
|
76
|
-

|
|
77
77
|
[](https://deepwiki.com/zerolovesea/NextRec)
|
|
78
78
|
|
|
79
79
|
中文文档 | [English Version](README_en.md)
|
|
@@ -260,11 +260,11 @@ nextrec --mode=predict --predict_config=path/to/predict_config.yaml
|
|
|
260
260
|
|
|
261
261
|
预测结果固定保存到 `{checkpoint_path}/predictions/{name}.{save_data_format}`。
|
|
262
262
|
|
|
263
|
-
> 截止当前版本0.5.
|
|
263
|
+
> 截止当前版本0.5.1,NextRec CLI支持单机训练,分布式训练相关功能尚在开发中。
|
|
264
264
|
|
|
265
265
|
## 兼容平台
|
|
266
266
|
|
|
267
|
-
当前最新版本为0.5.
|
|
267
|
+
当前最新版本为0.5.1,所有模型和测试代码均已在以下平台通过验证,如果开发者在使用中遇到兼容问题,请在issue区提出错误报告及系统版本:
|
|
268
268
|
|
|
269
269
|
| 平台 | 配置 |
|
|
270
270
|
|------|------|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
nextrec/__init__.py,sha256=_M3oUqyuvQ5k8Th_3wId6hQ_caclh7M5ad51XN09m98,235
|
|
2
|
-
nextrec/__version__.py,sha256=
|
|
3
|
-
nextrec/cli.py,sha256=
|
|
2
|
+
nextrec/__version__.py,sha256=eZ1bOun1DDVV0YLOBW4wj2FP1ajReLjbIrGmzN7ASBw,22
|
|
3
|
+
nextrec/cli.py,sha256=lISpZYbdyQpKl6rWqm4ENXh4WqSfu-8jlC8jTDt1u1Y,29074
|
|
4
4
|
nextrec/basic/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
5
5
|
nextrec/basic/activation.py,sha256=rU-W-DHgiD3AZnMGmD014ChxklfP9BpedDTiwtdgXhA,2762
|
|
6
6
|
nextrec/basic/asserts.py,sha256=eaB4FZJ7Sbh9S8PLJZNiYd7Zi98ca2rDi4S7wSYCaEw,1473
|
|
@@ -78,10 +78,10 @@ nextrec/utils/embedding.py,sha256=akAEc062MG2cD7VIOllHaqtwzAirQR2gq5iW7oKpGAU,14
|
|
|
78
78
|
nextrec/utils/loss.py,sha256=GBWQGpDaYkMJySpdG078XbeUNXUC34PVqFy0AqNS9N0,4578
|
|
79
79
|
nextrec/utils/model.py,sha256=PI9y8oWz1lhktgapZsiXb8rTr2NrFFlc80tr4yOFHik,5334
|
|
80
80
|
nextrec/utils/onnx_utils.py,sha256=KIVV_ELYzj3kCswfsSBZ1F2OnSwRJnXj7sxDBwBoBaA,8668
|
|
81
|
-
nextrec/utils/torch_utils.py,sha256=
|
|
81
|
+
nextrec/utils/torch_utils.py,sha256=_a9e6GXa3QKuu0E5RL44QRZ1iJSobbtNcPB3vtaCsu8,12313
|
|
82
82
|
nextrec/utils/types.py,sha256=LFwYCBRo5WeYUh5LSCuyP1Lg9ez0Ih00Es3fUttGAFw,2273
|
|
83
|
-
nextrec-0.5.
|
|
84
|
-
nextrec-0.5.
|
|
85
|
-
nextrec-0.5.
|
|
86
|
-
nextrec-0.5.
|
|
87
|
-
nextrec-0.5.
|
|
83
|
+
nextrec-0.5.1.dist-info/METADATA,sha256=DswmHjwCt-xuCenbNsKJgeSMw2LqVOAJFVFjgEn2CRc,23532
|
|
84
|
+
nextrec-0.5.1.dist-info/WHEEL,sha256=WLgqFyCfm_KASv4WHyYy0P3pM_m7J5L9k2skdKLirC8,87
|
|
85
|
+
nextrec-0.5.1.dist-info/entry_points.txt,sha256=NN-dNSdfMRTv86bNXM7d3ZEPW2BQC6bRi7QP7i9cIps,45
|
|
86
|
+
nextrec-0.5.1.dist-info/licenses/LICENSE,sha256=COP1BsqnEUwdx6GCkMjxOo5v3pUe4-Go_CdmQmSfYXM,1064
|
|
87
|
+
nextrec-0.5.1.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|