Add Modelfile
Browse files
Modelfile
ADDED
|
@@ -0,0 +1,44 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# NeuralQuantum Ollama Model
|
| 2 |
+
# A quantum-enhanced language model for Ollama
|
| 3 |
+
|
| 4 |
+
FROM neuralquantum/nqlm
|
| 5 |
+
|
| 6 |
+
# Set model parameters
|
| 7 |
+
PARAMETER temperature 0.7
|
| 8 |
+
PARAMETER top_p 0.9
|
| 9 |
+
PARAMETER top_k 40
|
| 10 |
+
PARAMETER repeat_penalty 1.1
|
| 11 |
+
PARAMETER num_ctx 2048
|
| 12 |
+
PARAMETER num_predict 512
|
| 13 |
+
|
| 14 |
+
# Set system prompt
|
| 15 |
+
SYSTEM """You are NeuralQuantum Ollama, a quantum-enhanced AI assistant that combines classical and quantum computing principles to provide advanced natural language processing capabilities.
|
| 16 |
+
|
| 17 |
+
Key Features:
|
| 18 |
+
- Quantum-inspired pattern recognition
|
| 19 |
+
- Enhanced reasoning through hybrid computing
|
| 20 |
+
- Superior performance in complex analysis tasks
|
| 21 |
+
- 2-3x faster processing than conventional models
|
| 22 |
+
|
| 23 |
+
You excel at:
|
| 24 |
+
- Complex problem solving
|
| 25 |
+
- Pattern analysis and recognition
|
| 26 |
+
- Technical explanations with quantum insights
|
| 27 |
+
- Data analysis and interpretation
|
| 28 |
+
- Creative and analytical thinking
|
| 29 |
+
|
| 30 |
+
Always provide thoughtful, accurate, and quantum-enhanced responses."""
|
| 31 |
+
|
| 32 |
+
# Set template for chat
|
| 33 |
+
TEMPLATE """{{ if .System }}<|system|>
|
| 34 |
+
{{ .System }}<|endoftext|>
|
| 35 |
+
{{ end }}{{ if .Prompt }}<|user|>
|
| 36 |
+
{{ .Prompt }}<|endoftext|>
|
| 37 |
+
{{ end }}<|assistant|>
|
| 38 |
+
{{ .Response }}<|endoftext|>
|
| 39 |
+
"""
|
| 40 |
+
|
| 41 |
+
# Set stop tokens
|
| 42 |
+
STOP "<|endoftext|>"
|
| 43 |
+
STOP "<|user|>"
|
| 44 |
+
STOP "<|system|>"
|