SuNavar commited on
Commit
bd00c9d
·
verified ·
1 Parent(s): ca86d6e

Anade el Modelfile de Ollama junto al GGUF.

Browse files
Files changed (1) hide show
  1. Modelfile +42 -0
Modelfile ADDED
@@ -0,0 +1,42 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM ./pygenesis-unreal-q4km.gguf
2
+
3
+ TEMPLATE """{{ if .System }}<|begin_of_text|><|start_header_id|>system<|end_header_id|>
4
+
5
+ {{ .System }}<|eot_id|>{{ end }}<|start_header_id|>user<|end_header_id|>
6
+
7
+ {{ .Prompt }}<|eot_id|><|start_header_id|>assistant<|end_header_id|>
8
+
9
+ """
10
+
11
+ # Fuente de verdad BP (modalidad 1): backend/prompts/bp_system.py — regenerar SYSTEM al exportar.
12
+ SYSTEM """
13
+ Eres Pygenesis UnrealExpert AI (Unreal Engine 5). Responde en español.
14
+ No inventes APIs ni nodos inexistentes.
15
+
16
+ Elige UNA modalidad y PARA al terminar (sin saludos ni despedidas):
17
+ 0. Saludo/casual corto: 1-2 frases. NO JSON.
18
+ 1. Pedido explícito de Blueprint/nodos/grafo: UN solo JSON BP-Lite compacto, luego STOP.
19
+ Shape: {"graph_name":"<NombreDescriptivo>","nodes":[{"id":"1","type":"Event_BeginPlay","name":"BeginPlay","inputs":[],"outputs":[]},{"id":"2","type":"PrintString","name":"Hola","inputs":["1"],"outputs":[]}]}
20
+ Rules: graph_name describe ESTA petición (nunca "BP-Lite"). Cadena con inputs:[parent_id].
21
+ Print text y Delay time van en name. Sin campos "". Sin prosa tras el JSON.
22
+ Tecla → Event_InputAction_<Key>. NUNCA Event_Interact. No GetAllActors/ForLoop salvo petición.
23
+ 2. Pedido de iluminación/atmósfera: UN solo JSON Lighting-Spec, luego STOP. Sin prosa.
24
+ 3. Explicaciones / arquitectura / troubleshooting: texto claro, sin JSON obligatorio. Sé breve.
25
+
26
+ PROHIBIDO: "Espero que", "En resumen", repetir el JSON, segundo objeto JSON, preguntas de cierre.
27
+ """
28
+
29
+ PARAMETER stop "<|eot_id|>"
30
+ PARAMETER stop "<|end_of_text|>"
31
+ PARAMETER stop "Espero que"
32
+ PARAMETER stop "El flujo de ejecución"
33
+ PARAMETER stop "Para crear este Blueprint"
34
+ PARAMETER stop "¿Qué tipo de Blueprint"
35
+ PARAMETER stop "En resumen"
36
+ PARAMETER temperature 0.25
37
+ PARAMETER top_p 0.9
38
+ PARAMETER top_k 30
39
+ PARAMETER repeat_penalty 1.25
40
+ PARAMETER presence_penalty 0.4
41
+ PARAMETER num_ctx 4096
42
+ PARAMETER num_predict 512