Skip to content

Commit d925f74

Browse files
committed
update samples
1 parent 4f56824 commit d925f74

File tree

5 files changed

+98
-38
lines changed

5 files changed

+98
-38
lines changed

Samples~/AndroidDemo/Scene.unity

Lines changed: 88 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -167,11 +167,11 @@ MonoBehaviour:
167167
m_Script: {fileID: 11500000, guid: 708542fec6999ea3ebd7c69404932bb3, type: 3}
168168
m_Name:
169169
m_EditorClassIdentifier:
170-
llm: {fileID: 1047848254}
171170
llmCharacter: {fileID: 498662973}
172171
ChatPanel: {fileID: 1084608230}
173172
playerText: {fileID: 1966107897}
174173
AIText: {fileID: 887085510}
174+
ErrorText: {fileID: 1270508535}
175175
DownloadPanel: {fileID: 332743750}
176176
progressBar: {fileID: 332743752}
177177
progressText: {fileID: 381203299}
@@ -387,6 +387,7 @@ RectTransform:
387387
m_ConstrainProportionsScale: 0
388388
m_Children:
389389
- {fileID: 1688602497}
390+
- {fileID: 1270508536}
390391
- {fileID: 1705264488}
391392
- {fileID: 381203298}
392393
m_Father: {fileID: 158550917}
@@ -1323,24 +1324,18 @@ MonoBehaviour:
13231324
advancedOptions: 0
13241325
remote: 0
13251326
port: 13333
1326-
numThreads: 2
1327+
numThreads: -1
13271328
numGPULayers: 0
13281329
debug: 0
13291330
parallelPrompts: -1
13301331
asynchronousStartup: 1
13311332
dontDestroyOnLoad: 1
1332-
model: Phi-3-mini-4k-instruct-q4.gguf
1333-
downloadOnBuild: 1
1334-
modelURL: https://huggingface.co/microsoft/Phi-3-mini-4k-instruct-gguf/resolve/main/Phi-3-mini-4k-instruct-q4.gguf?download=true
1335-
lora:
13361333
contextSize: 0
13371334
batchSize: 512
13381335
basePrompt:
1339-
SelectedModel: 3
1340-
modelProgress: 1
1341-
modelCopyProgress: 1
1342-
modelHide: 1
1343-
chatTemplate: phi-3
1336+
model:
1337+
chatTemplate: chatml
1338+
lora:
13441339
--- !u!4 &1047848255
13451340
Transform:
13461341
m_ObjectHideFlags: 0
@@ -1554,6 +1549,85 @@ CanvasRenderer:
15541549
m_PrefabAsset: {fileID: 0}
15551550
m_GameObject: {fileID: 1171567417}
15561551
m_CullTransparentMesh: 1
1552+
--- !u!1 &1270508535
1553+
GameObject:
1554+
m_ObjectHideFlags: 0
1555+
m_CorrespondingSourceObject: {fileID: 0}
1556+
m_PrefabInstance: {fileID: 0}
1557+
m_PrefabAsset: {fileID: 0}
1558+
serializedVersion: 6
1559+
m_Component:
1560+
- component: {fileID: 1270508536}
1561+
- component: {fileID: 1270508537}
1562+
- component: {fileID: 1270508538}
1563+
m_Layer: 5
1564+
m_Name: DownloadError
1565+
m_TagString: Untagged
1566+
m_Icon: {fileID: 0}
1567+
m_NavMeshLayer: 0
1568+
m_StaticEditorFlags: 0
1569+
m_IsActive: 0
1570+
--- !u!224 &1270508536
1571+
RectTransform:
1572+
m_ObjectHideFlags: 0
1573+
m_CorrespondingSourceObject: {fileID: 0}
1574+
m_PrefabInstance: {fileID: 0}
1575+
m_PrefabAsset: {fileID: 0}
1576+
m_GameObject: {fileID: 1270508535}
1577+
m_LocalRotation: {x: -0, y: -0, z: -0, w: 1}
1578+
m_LocalPosition: {x: 0, y: 0, z: 0}
1579+
m_LocalScale: {x: 1, y: 1, z: 1}
1580+
m_ConstrainProportionsScale: 0
1581+
m_Children: []
1582+
m_Father: {fileID: 332743751}
1583+
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
1584+
m_AnchorMin: {x: 0.5, y: 0.5}
1585+
m_AnchorMax: {x: 0.5, y: 0.5}
1586+
m_AnchoredPosition: {x: -0.000025749, y: -30.2}
1587+
m_SizeDelta: {x: 160, y: 30}
1588+
m_Pivot: {x: 0.5, y: 0.5}
1589+
--- !u!222 &1270508537
1590+
CanvasRenderer:
1591+
m_ObjectHideFlags: 0
1592+
m_CorrespondingSourceObject: {fileID: 0}
1593+
m_PrefabInstance: {fileID: 0}
1594+
m_PrefabAsset: {fileID: 0}
1595+
m_GameObject: {fileID: 1270508535}
1596+
m_CullTransparentMesh: 1
1597+
--- !u!114 &1270508538
1598+
MonoBehaviour:
1599+
m_ObjectHideFlags: 0
1600+
m_CorrespondingSourceObject: {fileID: 0}
1601+
m_PrefabInstance: {fileID: 0}
1602+
m_PrefabAsset: {fileID: 0}
1603+
m_GameObject: {fileID: 1270508535}
1604+
m_Enabled: 1
1605+
m_EditorHideFlags: 0
1606+
m_Script: {fileID: 11500000, guid: 5f7201a12d95ffc409449d95f23cf332, type: 3}
1607+
m_Name:
1608+
m_EditorClassIdentifier:
1609+
m_Material: {fileID: 0}
1610+
m_Color: {r: 0.7716036, g: 0, b: 0, a: 1}
1611+
m_RaycastTarget: 1
1612+
m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0}
1613+
m_Maskable: 1
1614+
m_OnCullStateChanged:
1615+
m_PersistentCalls:
1616+
m_Calls: []
1617+
m_FontData:
1618+
m_Font: {fileID: 10102, guid: 0000000000000000e000000000000000, type: 0}
1619+
m_FontSize: 16
1620+
m_FontStyle: 0
1621+
m_BestFit: 0
1622+
m_MinSize: 1
1623+
m_MaxSize: 40
1624+
m_Alignment: 1
1625+
m_AlignByGeometry: 0
1626+
m_RichText: 1
1627+
m_HorizontalOverflow: 0
1628+
m_VerticalOverflow: 0
1629+
m_LineSpacing: 1
1630+
m_Text: Network error occured
15571631
--- !u!1 &1308766009
15581632
GameObject:
15591633
m_ObjectHideFlags: 0
@@ -1879,8 +1953,8 @@ RectTransform:
18791953
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
18801954
m_AnchorMin: {x: 0.5, y: 0.5}
18811955
m_AnchorMax: {x: 0.5, y: 0.5}
1882-
m_AnchoredPosition: {x: -0.000025749, y: 15.999993}
1883-
m_SizeDelta: {x: 160, y: 30}
1956+
m_AnchoredPosition: {x: 2.0648, y: 15.999993}
1957+
m_SizeDelta: {x: 164.1296, y: 30}
18841958
m_Pivot: {x: 0.5, y: 0.5}
18851959
--- !u!114 &1688602498
18861960
MonoBehaviour:
@@ -1915,7 +1989,7 @@ MonoBehaviour:
19151989
m_HorizontalOverflow: 0
19161990
m_VerticalOverflow: 0
19171991
m_LineSpacing: 1
1918-
m_Text: Downloading model...
1992+
m_Text: Downloading models...
19191993
--- !u!222 &1688602499
19201994
CanvasRenderer:
19211995
m_ObjectHideFlags: 0

Samples~/ChatBot/Scene.unity

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -665,15 +665,12 @@ MonoBehaviour:
665665
parallelPrompts: -1
666666
asynchronousStartup: 1
667667
dontDestroyOnLoad: 1
668-
model:
669-
lora:
670668
contextSize: 0
671669
batchSize: 512
672-
SelectedModel: 0
673-
modelProgress: 1
674-
modelCopyProgress: 1
675-
modelHide: 1
670+
basePrompt:
671+
model:
676672
chatTemplate: chatml
673+
lora:
677674
--- !u!1 &1051131186
678675
GameObject:
679676
m_ObjectHideFlags: 0

Samples~/KnowledgeBaseGame/Scene.unity

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7460,16 +7460,12 @@ MonoBehaviour:
74607460
parallelPrompts: -1
74617461
asynchronousStartup: 1
74627462
dontDestroyOnLoad: 1
7463-
model:
7464-
lora:
74657463
contextSize: 0
74667464
batchSize: 512
74677465
basePrompt:
7468-
SelectedModel: 0
7469-
modelProgress: 1
7470-
modelCopyProgress: 1
7471-
modelHide: 1
7466+
model:
74727467
chatTemplate: chatml
7468+
lora:
74737469
--- !u!4 &2142407557
74747470
Transform:
74757471
m_ObjectHideFlags: 0

Samples~/MultipleCharacters/Scene.unity

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1522,15 +1522,12 @@ MonoBehaviour:
15221522
parallelPrompts: -1
15231523
asynchronousStartup: 1
15241524
dontDestroyOnLoad: 1
1525-
model:
1526-
lora:
15271525
contextSize: 0
15281526
batchSize: 512
1529-
SelectedModel: 0
1530-
modelProgress: 1
1531-
modelCopyProgress: 1
1532-
modelHide: 1
1527+
basePrompt:
1528+
model:
15331529
chatTemplate: chatml
1530+
lora:
15341531
--- !u!4 &1047848255
15351532
Transform:
15361533
m_ObjectHideFlags: 0

Samples~/SimpleInteraction/Scene.unity

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1045,16 +1045,12 @@ MonoBehaviour:
10451045
parallelPrompts: -1
10461046
asynchronousStartup: 1
10471047
dontDestroyOnLoad: 1
1048-
model: smol_llama-220m-openhermes.q4_k_m.gguf
1049-
lora:
10501048
contextSize: 0
10511049
batchSize: 512
10521050
basePrompt:
1053-
SelectedModel: 0
1054-
modelProgress: 1
1055-
modelCopyProgress: 1
1056-
modelHide: 1
1051+
model: smol_llama-220m-openhermes.q4_k_m.gguf
10571052
chatTemplate: chatml
1053+
lora:
10581054
--- !u!4 &1047848255
10591055
Transform:
10601056
m_ObjectHideFlags: 0

0 commit comments

Comments
 (0)