@@ -255,7 +255,7 @@ describe("functionary", () => {
255255 freeRam : s1GB * 4.5
256256 } ) ;
257257 expect ( res . gpuLayers ) . to . eql ( 16 ) ;
258- expect ( res . contextSize ) . to . toMatchInlineSnapshot ( "3840 " ) ;
258+ expect ( res . contextSize ) . to . toMatchInlineSnapshot ( "4096 " ) ;
259259 }
260260 try {
261261 await resolveGpuLayers ( 16 , {
@@ -343,7 +343,7 @@ describe("functionary", () => {
343343 unifiedMemorySize : s1GB * 7.3
344344 } ) ;
345345 expect ( res . gpuLayers ) . to . eql ( 16 ) ;
346- expect ( res . contextSize ) . to . toMatchInlineSnapshot ( "1536 " ) ;
346+ expect ( res . contextSize ) . to . toMatchInlineSnapshot ( "1792 " ) ;
347347 }
348348 {
349349 const res = await resolveGpuLayers ( 16 , {
@@ -820,7 +820,7 @@ describe("functionary", () => {
820820 unifiedMemorySize : s1GB * 6
821821 } ) ;
822822 expect ( res . gpuLayers ) . to . eql ( 33 ) ;
823- expect ( res . contextSize ) . to . toMatchInlineSnapshot ( "2816 " ) ;
823+ expect ( res . contextSize ) . to . toMatchInlineSnapshot ( "3072 " ) ;
824824 }
825825 {
826826 const res = await resolveGpuLayers ( 33 , {
@@ -908,7 +908,7 @@ describe("functionary", () => {
908908 freeRam : s1GB * 1
909909 } ) ;
910910 expect ( res . gpuLayers ) . to . eql ( 33 ) ;
911- expect ( res . contextSize ) . to . toMatchInlineSnapshot ( "458 " ) ;
911+ expect ( res . contextSize ) . to . toMatchInlineSnapshot ( "501 " ) ;
912912 }
913913 {
914914 const res = await resolveGpuLayers ( "max" , {
@@ -918,7 +918,7 @@ describe("functionary", () => {
918918 freeRam : s1GB * 1
919919 } ) ;
920920 expect ( res . gpuLayers ) . to . eql ( 33 ) ;
921- expect ( res . contextSize ) . to . toMatchInlineSnapshot ( "768 " ) ;
921+ expect ( res . contextSize ) . to . toMatchInlineSnapshot ( "1024 " ) ;
922922 }
923923 } ) ;
924924
@@ -962,7 +962,7 @@ describe("functionary", () => {
962962 freeRam : s1GB * 8
963963 } ) ;
964964 expect ( res . gpuLayers ) . to . toMatchInlineSnapshot ( "7" ) ;
965- expect ( res . contextSize ) . to . toMatchInlineSnapshot ( "7424 " ) ;
965+ expect ( res . contextSize ) . to . toMatchInlineSnapshot ( "7936 " ) ;
966966 }
967967 {
968968 const res = await resolveGpuLayers ( "auto" , {
@@ -1125,7 +1125,7 @@ describe("functionary", () => {
11251125 freeRam : s1GB * 5
11261126 } ) ;
11271127 expect ( res . gpuLayers ) . to . toMatchInlineSnapshot ( "7" ) ;
1128- expect ( res . contextSize ) . to . toMatchInlineSnapshot ( "7424 " ) ;
1128+ expect ( res . contextSize ) . to . toMatchInlineSnapshot ( "7936 " ) ;
11291129 }
11301130 {
11311131 const res = await resolveGpuLayers ( "auto" , {
@@ -1349,7 +1349,7 @@ describe("functionary", () => {
13491349 expect ( res . gpuLayers ) . to . be . gte ( 16 ) ;
13501350 expect ( res . gpuLayers ) . to . be . lte ( 24 ) ;
13511351 expect ( res . gpuLayers ) . to . toMatchInlineSnapshot ( "16" ) ;
1352- expect ( res . contextSize ) . to . toMatchInlineSnapshot ( "3840 " ) ;
1352+ expect ( res . contextSize ) . to . toMatchInlineSnapshot ( "4096 " ) ;
13531353 }
13541354 } ) ;
13551355
@@ -1451,7 +1451,7 @@ describe("functionary", () => {
14511451 expect ( res . gpuLayers ) . to . be . gte ( 16 ) ;
14521452 expect ( res . gpuLayers ) . to . be . lte ( 24 ) ;
14531453 expect ( res . gpuLayers ) . to . toMatchInlineSnapshot ( "16" ) ;
1454- expect ( res . contextSize ) . to . toMatchInlineSnapshot ( "3840 " ) ;
1454+ expect ( res . contextSize ) . to . toMatchInlineSnapshot ( "4096 " ) ;
14551455 }
14561456 } ) ;
14571457 } ) ;
@@ -1479,8 +1479,8 @@ describe("functionary", () => {
14791479 totalRam : s1GB * 8 ,
14801480 freeRam : s1GB * 8
14811481 } ) ;
1482- expect ( res . gpuLayers ) . to . toMatchInlineSnapshot ( "21 " ) ;
1483- expect ( res . contextSize ) . to . toMatchInlineSnapshot ( "6400 " ) ;
1482+ expect ( res . gpuLayers ) . to . toMatchInlineSnapshot ( "22 " ) ;
1483+ expect ( res . contextSize ) . to . toMatchInlineSnapshot ( "5376 " ) ;
14841484 expect ( res . contextSize ) . to . be . gte ( contextSize ) ;
14851485 }
14861486 {
@@ -1492,7 +1492,7 @@ describe("functionary", () => {
14921492 freeRam : s1GB * 8
14931493 } ) ;
14941494 expect ( res . gpuLayers ) . to . toMatchInlineSnapshot ( "7" ) ;
1495- expect ( res . contextSize ) . to . toMatchInlineSnapshot ( "7424 " ) ;
1495+ expect ( res . contextSize ) . to . toMatchInlineSnapshot ( "7936 " ) ;
14961496 expect ( res . contextSize ) . to . be . gte ( contextSize ) ;
14971497 }
14981498 {
@@ -1569,7 +1569,7 @@ describe("functionary", () => {
15691569 freeRam : s1GB * 7
15701570 } ) ;
15711571 expect ( res . gpuLayers ) . to . toMatchInlineSnapshot ( "21" ) ;
1572- expect ( res . contextSize ) . to . toMatchInlineSnapshot ( "6400 " ) ;
1572+ expect ( res . contextSize ) . to . toMatchInlineSnapshot ( "6656 " ) ;
15731573 expect ( res . contextSize ) . to . be . gte ( contextSize ) ;
15741574 }
15751575 {
@@ -1581,7 +1581,7 @@ describe("functionary", () => {
15811581 freeRam : s1GB * 7
15821582 } ) ;
15831583 expect ( res . gpuLayers ) . to . toMatchInlineSnapshot ( "7" ) ;
1584- expect ( res . contextSize ) . to . toMatchInlineSnapshot ( "7424 " ) ;
1584+ expect ( res . contextSize ) . to . toMatchInlineSnapshot ( "7936 " ) ;
15851585 expect ( res . contextSize ) . to . be . gte ( contextSize ) ;
15861586 }
15871587 {
0 commit comments