fix(colab): resolve Colab execution OOM and kwargs validation error
836ba4f
Anderson Santoscommited on
fix: keep _MASTER_RIS_MASK and base_past_key_values on CPU RAM to free 3.0GB VRAM and guarantee OOM-free inference
a472b68
Anderson Santoscommited on
fix: recursively move all DynamicCache layers (cache.layers[i].keys) to target device to prevent CPU vs CUDA device mismatch during cat in generate
fde542b
Anderson Santoscommited on
fix: pass explicit cache_position and attention_mask to model.generate() to prevent transformers from trimming input_ids to empty tensor when past_key_values has 38k tokens
89972b2
Anderson Santoscommited on
fix: remove broken exec-based ris_attention patch and add full traceback to error handler
24ad850
Anderson Santoscommited on
fix: remove stopping_criteria from model.generate - rely entirely on native eos_token_id for stopping
06d823f
Anderson Santoscommited on
fix: set chunk_size=256 and patch ris_attention.py to remove float32 casting during prefill (50% VRAM saving)
d75e7d8
Anderson Santoscommited on
fix: load cached KV-cache with map_location=cpu and stream to GPU to avoid PyTorch deserialization memory peak
2bd8b9a
Anderson Santoscommited on
fix: patch StopOnTokens and SemanticStoppingCriteria in inference_ris_v3.py against empty tensor index errors
8d20d46
Anderson Santoscommited on
feat: add persistent KV-cache caching (torch.save/torch.load) to skip document ingestion on repeat runs
cc51dc6
Anderson Santoscommited on
fix: make StopOnTokens stopping criteria safe against empty tensors and remove static position_ids/attention_mask from generate call
61e4152
Anderson Santoscommited on
fix: force-delete previous model objects and run CUDA ipc_collect before model load to ensure full 14.56GB VRAM is free on cell re-execution
5967a44
Anderson Santoscommited on
fix: set TOTAL_CAPACITY=40000 and RIS_DENSITY=0.025 to optimize RIS matrix memory footprint to 2.9GB for zero OOM risk
2a74973
Anderson Santoscommited on
fix: load 100% of Qwen2.5-3B-Instruct directly on cuda:0 to eliminate multi-device mismatch and maximize free VRAM headroom
214081d
Anderson Santoscommited on
feat: select Qwen2.5-3B-Instruct (bfloat16) for Kaggle Dual-GPU — guarantees 11.4GB free VRAM per GPU with zero OOM risk
96bf936
Anderson Santoscommited on
fix: adjust dual-GPU split to 10 layers on GPU 0 and 18 layers on GPU 1 to prevent PyTorch safetensors materialization buffer peak
daa3739
Anderson Santoscommited on
fix: use explicit 50/50 layer split device_map dictionary for bfloat16 7B model to guarantee equal 7.1GB VRAM balance on Dual-GPU
f01ff1d
Anderson Santoscommited on
fix: set max_memory={0: '9GiB', 1: '14GiB'} for bfloat16 7B model to reserve 5.5GB free VRAM on GPU 0 for RIS geometry
9662d8b
Anderson Santoscommited on
fix: remove partial CPU mask patch in ris_attention.py to avoid device mismatch between CPU mask and GPU tensors
5f6916d
Anderson Santoscommited on
fix: pass device_map=auto in non-4bit branch of inference_ris_v3.py so bfloat16 models load on GPUs
754940c
Anderson Santoscommited on
fix: force cuda:0 for model inputs and add tqdm progress bar for context ingestion
cc3f5de
Anderson Santoscommited on
fix: detect embed_tokens device dynamically after model load — resolves device mismatch with multi-GPU device_map=auto
0b1234d
Anderson Santoscommited on
fix: add import gc prior to gc.collect in patched inference_ris_v3.py
9cb543f
Anderson Santoscommited on
feat: switch dual-GPU to Qwen2.5-7B bfloat16 — fixes accelerate CPU-offload bug with NF4 models
2ba1a60
Anderson Santoscommited on
refactor(notebook): separate into dedicated RIS-Kernel-Colab.ipynb and RIS-Kernel-Kaggle.ipynb files
16f6d29
Anderson Santoscommited on
refactor(notebook): separate raw Python format for Colab and JSON Notebook format for Kaggle
bd39166
Anderson Santoscommited on
fix(notebook): set pip install retries=1 and timeout=5 for faster offline detection
477fe76
Anderson Santoscommited on
feat(notebook): add multi-tier GPU/CPU strategy for Kaggle (Single T4 vs Dual T4) and Colab
fa4c0a2
Anderson Santoscommited on
feat(notebook): add adaptive CPU/GPU mode, optimize memory for CPU execution, and localize messages to US English
02e2c72
Anderson Santoscommited on
fix(notebook): remove container-restricted swapon calls and lock Qwen2.5-3B-Instruct for Colab
1fab103
Anderson Santoscommited on
fix(notebook): use dd block allocation for swapfile to resolve swapon Invalid argument Linux error
c3405cb
Anderson Santoscommited on
feat(notebook): update Colab model selection to ultra-fast Qwen2.5-3B-Instruct (4-bit NF4) for 100% CPU RAM safety
e66db0b
Anderson Santoscommited on
feat(notebook): implement adaptive model strategy - Qwen2.5-7B-Instruct for Colab and Qwen2.5-14B-Instruct for Kaggle
df5d8a0
Anderson Santoscommited on
feat(notebook): make notebook 100% universal for both Google Colab and Kaggle Notebooks
40d2f90
Anderson Santoscommited on
feat(notebook): integrate Qwen2.5-14B 4-bit NF4 with auto disk cleanup and memory optimizations
50592a0
Anderson Santoscommited on
fix(transformers): bypass caching_allocator_warmup to prevent 8.94GiB dummy VRAM allocation
d8d23e6
Anderson Santoscommited on
fix(ris_attention): calculate mask sum on CPU to eliminate PyTorch CUDA 11.92GiB int64 allocation
7c553c3
Anderson Santoscommited on
fix(quantization): set device_map={: 0} and enable fp32 cpu offload for 4-bit loading
8d460a2
Anderson Santoscommited on
fix(ris_attention): remove 5.96GB VRAM spike in ens_density calculation
6bf539a
Anderson Santoscommited on
feat(engine): add lazy 4-bit NF4 quantization support to load_ris_model