21 Commits

Author SHA1 Message Date
Bill Holcombe
dc8494bb2a Fix all four Phase 1 correctness bugs (dynamic buffer, DLPack ownership, thread safety, padding)
- 1.1: Remove hardcoded 4096*512 buffer from PinnedBatcher; allocate host+device per-call
- 1.2: Wrap CudaSlice in DLPackContext owned by DLManagedTensor.manager_ctx; deleter frees
  device memory when PyTorch releases tensor — no more silent overwrite across calls
- 1.3: batch_encode_to_gpu now takes &self (no mutable shared state); TokenizerEngine wraps
  Arc<PinnedBatcher> and encode_batch takes &self — safe for concurrent Python threads
- 1.4: seq_len = max across all encodings; host buffer prefilled with pad_id before token write

Also: switch cudarc gpu feature from cuda-version-from-build-system to cuda-12050 to fix
build on machines with CUDA 13.x (cudarc 0.11.9 only knows up to 12.5)

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-21 14:10:31 -06:00
f8ad40d302 made zero-copy JSON - shared memory logic 2026-02-11 06:29:08 +00:00
Bill
258f7e09aa configurable batch size for hardware optimizations 2025-11-25 01:14:45 -07:00
Bill
2811d97c47 fixed task switching latency and implemented string killer 2025-11-25 00:01:41 -07:00
Bill
06a6dcdd31 fixing for pypi upload 2025-11-22 23:37:57 -07:00
Bill
c338fcae65 make tracy optional, add readme.md, continue fixing thrashing for sequential reads for workers 2025-11-22 22:11:08 -07:00
Bill
9525aa8878 profiler set up! cpu starvation identified 2025-11-19 11:04:31 -07:00
Bill
e041912108 freeze state, no good 2025-11-18 20:51:03 -07:00
Bill
e8673a3bcf set up to_pandas logic and rerun for failed task 2025-11-18 17:45:48 -07:00
Bill
2888c0b5e7 keep postgress connections open and switch tasks between them 2025-11-18 13:08:32 -07:00
Bill
ac61f58f01 optimizing hardware limits in Rust 2025-11-18 12:40:08 -07:00
Bill
92348cb3a1 optimizing by reducing copy 2025-11-18 12:15:01 -07:00
Bill
6e477933d0 optimizing by reducing copy 2025-11-18 11:52:28 -07:00
Bill
69c709b77f implemented zero-copy via cursor movement and reduced overhead. 2025-11-18 11:27:10 -07:00
Bill
b2224a15b8 debugged parallelization logic 2025-11-18 09:59:49 -07:00
c91c3ad2f7 Update parser.rs via mobile 2025-11-17 22:58:59 -07:00
Bill
b4359cc98a go brrrrr 2025-11-17 19:53:25 -07:00
Bill
9acfc919b8 improving efficiency and writing to file 2025-11-17 18:49:57 -07:00
Bill
d84e52a9f3 improving efficiency and writing to file 2025-11-17 16:22:54 -07:00
Bill
6e5c0acb58 initial commit 2025-11-17 14:29:06 -07:00
Bill
ef8f0d8b96 Initial commit 2025-11-17 14:23:03 -07:00