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 @@ -576,22 +576,9 @@ struct llama_model_loader {
576
576
if (!llama_mmap::SUPPORTED) {
577
577
use_mmap = false ;
578
578
}
579
- if (use_mmap && alignment_prevents_mmap ()) {
580
- fprintf (stderr, " llama.cpp: can't use mmap because tensors are not aligned; convert to new format to avoid this\n " );
581
- use_mmap = false ;
582
- }
583
579
this ->use_mmap = use_mmap;
584
580
}
585
581
586
- bool alignment_prevents_mmap () {
587
- for (const llama_load_tensor & lt : tensors_map.tensors ) {
588
- if (lt.file_off & 3 ) {
589
- return true ;
590
- }
591
- }
592
- return false ;
593
- }
594
-
595
582
void calc_sizes (size_t * ctx_size_p, size_t * mmapped_size_p) const {
596
583
*ctx_size_p = *mmapped_size_p = 0 ;
597
584
for (const llama_load_tensor & lt : tensors_map.tensors ) {
You can’t perform that action at this time.
0 commit comments