@@ -24,14 +24,15 @@ static TestRunListener()
24
24
25
25
public class TestRunCallbacks : ICallbacks
26
26
{
27
- public void RunStarted ( ITestAdaptor testsToRun ) { }
27
+ public void RunStarted ( ITestAdaptor testsToRun ) { }
28
28
29
29
public void RunFinished ( ITestResultAdaptor result )
30
30
{
31
31
LLMUnitySetup . FullLlamaLib = false ;
32
32
}
33
33
34
- public void TestStarted ( ITestAdaptor test ) {
34
+ public void TestStarted ( ITestAdaptor test )
35
+ {
35
36
LLMUnitySetup . FullLlamaLib = test . FullName . Contains ( "CUDA_full" ) ;
36
37
}
37
38
@@ -262,7 +263,7 @@ public async Task RunTestsTask()
262
263
await Tests ( ) ;
263
264
llm . OnDestroy ( ) ;
264
265
}
265
- catch ( Exception e )
266
+ catch ( Exception e )
266
267
{
267
268
error = e ;
268
269
}
@@ -299,7 +300,7 @@ public void TestInitParameters(int nkeep, int chats)
299
300
300
301
public void TestTokens ( List < int > tokens )
301
302
{
302
- Assert . AreEqual ( tokens , new List < int > { 40 } ) ;
303
+ Assert . AreEqual ( tokens , new List < int > { 40 } ) ;
303
304
}
304
305
305
306
public void TestWarmup ( )
@@ -323,7 +324,7 @@ public void TestEmbeddings(List<float> embeddings)
323
324
Assert . That ( embeddings . Count == 896 ) ;
324
325
}
325
326
326
- public virtual void OnDestroy ( ) { }
327
+ public virtual void OnDestroy ( ) { }
327
328
}
328
329
329
330
public class TestLLM_LLMManager_Load : TestLLM
@@ -543,12 +544,20 @@ public class TestLLM_CUDA_full : TestLLM_CUDA
543
544
public override void SetParameters ( )
544
545
{
545
546
base . SetParameters ( ) ;
546
- reply1 = "To increase your meme production output, you might consider using more advanced tools and techniques to generate memes faster" ;
547
- reply2 = "To increase your meme production output, you might consider using more advanced tools and techniques to generate memes faster" ;
547
+ if ( Application . platform == RuntimePlatform . WindowsEditor || Application . platform == RuntimePlatform . WindowsPlayer )
548
+ {
549
+ reply1 = "To increase your meme production output, you might consider using more modern tools and techniques to generate memes." ;
550
+ reply2 = "To increase your meme production output, you can try using various tools and techniques to generate more content quickly" ;
551
+ }
552
+ else
553
+ {
554
+ reply1 = "To increase your meme production output, you might consider using more advanced tools and techniques to generate memes faster" ;
555
+ reply2 = "To increase your meme production output, you might consider using more advanced tools and techniques to generate memes faster" ;
556
+ }
548
557
}
549
558
}
550
559
551
- public class TestLLM_CUDA_full_attention : TestLLM_CUDA
560
+ public class TestLLM_CUDA_full_attention : TestLLM_CUDA_full
552
561
{
553
562
public override LLM CreateLLM ( )
554
563
{
@@ -560,8 +569,10 @@ public override LLM CreateLLM()
560
569
public override void SetParameters ( )
561
570
{
562
571
base . SetParameters ( ) ;
563
- reply1 = "To increase your meme production output, you might consider using more advanced tools and techniques to generate memes faster" ;
564
- reply2 = "To increase your meme production output, you can try using various tools and techniques to generate more memes." ;
572
+ if ( Application . platform == RuntimePlatform . LinuxEditor || Application . platform == RuntimePlatform . LinuxPlayer )
573
+ {
574
+ reply2 = "To increase your meme production output, you can try using various tools and techniques to generate more memes." ;
575
+ }
565
576
}
566
577
}
567
578
}
0 commit comments