Skip to content

Commit 6c6f84c

Browse files
V4.2.7: Fix C++ type error in module_cleanup (PyObject* -> void*)
1 parent c953302 commit 6c6f84c

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

Crayon_Colab_Notebook.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
"""
2-
XERV CRAYON V4.2.6 - Production Omni-Backend Tokenizer
2+
XERV CRAYON V4.2.7 - Production Omni-Backend Tokenizer
33
=======================================================
44
Copy this ENTIRE script into a Google Colab cell and run it.
55
@@ -13,7 +13,7 @@
1313
import time
1414

1515
print("=" * 70)
16-
print("XERV CRAYON V4.2.6 INSTALLATION")
16+
print("XERV CRAYON V4.2.7 INSTALLATION")
1717
print("=" * 70)
1818

1919
# 1. Environment Check

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
44

55
[project]
66
name = "xerv-crayon"
7-
version = "4.2.6"
7+
version = "4.2.7"
88
description = "Omni-Backend Tokenizer - CPU (AVX2/512), CUDA (NVIDIA), ROCm (AMD) with automatic hardware detection"
99
readme = "README.md"
1010
requires-python = ">=3.10"

src/crayon/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
4545

4646
from __future__ import annotations
4747

48-
__version__ = "4.2.6"
48+
__version__ = "4.2.7"
4949
__author__ = "Xerv Research Engineering Division"
5050

5151
# ============================================================================

src/crayon/c_ext/gpu_engine_cuda.cu

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -295,7 +295,7 @@ static PyObject* tokenize_batch_gpu(PyObject* self, PyObject* args) {
295295
}
296296

297297
// FIX: Module destructor for cleanup
298-
static void module_cleanup(PyObject* module) {
298+
static void module_cleanup(void* module) {
299299
if (stream) cudaStreamDestroy(stream);
300300
if (d_cuda_base) cudaFree(d_cuda_base);
301301
if (d_cuda_check) cudaFree(d_cuda_check);

0 commit comments

Comments
 (0)