File tree Expand file tree Collapse file tree 1 file changed +0
-13
lines changed Expand file tree Collapse file tree 1 file changed +0
-13
lines changed Original file line number Diff line number Diff line change @@ -581,22 +581,9 @@ struct llama_model_loader {
581
581
if (!llama_mmap::SUPPORTED) {
582
582
use_mmap = false ;
583
583
}
584
- if (use_mmap && alignment_prevents_mmap ()) {
585
- fprintf (stderr, " llama.cpp: can't use mmap because tensors are not aligned; convert to new format to avoid this\n " );
586
- use_mmap = false ;
587
- }
588
584
this ->use_mmap = use_mmap;
589
585
}
590
586
591
- bool alignment_prevents_mmap () {
592
- for (const llama_load_tensor & lt : tensors_map.tensors ) {
593
- if (lt.file_off & 3 ) {
594
- return true ;
595
- }
596
- }
597
- return false ;
598
- }
599
-
600
587
void calc_sizes (size_t * ctx_size_p, size_t * mmapped_size_p) const {
601
588
*ctx_size_p = *mmapped_size_p = 0 ;
602
589
for (const llama_load_tensor & lt : tensors_map.tensors ) {
You can’t perform that action at this time.
0 commit comments