Upload Modelfile with huggingface_hub
Browse files
Modelfile
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
FROM ./data-sql-7b-oracle-postgresql-v2-Q4_K_M.gguf
|
| 2 |
+
|
| 3 |
+
TEMPLATE """{{ if .System }}<|system|>
|
| 4 |
+
{{ .System }}<|end|>
|
| 5 |
+
{{ end }}{{ if .Prompt }}<|user|>
|
| 6 |
+
{{ .Prompt }}<|end|>
|
| 7 |
+
{{ end }}<|assistant|>
|
| 8 |
+
{{ .Response }}<|end|>
|
| 9 |
+
"""
|
| 10 |
+
|
| 11 |
+
PARAMETER temperature 0.1
|
| 12 |
+
PARAMETER top_p 0.9
|
| 13 |
+
PARAMETER stop "<|end|>"
|
| 14 |
+
PARAMETER stop "<|endoftext|>"
|
| 15 |
+
|
| 16 |
+
SYSTEM """You are an expert SQL converter specializing in Oracle to PostgreSQL migrations. Convert Oracle SQL queries to PostgreSQL syntax accurately, especially CONNECT BY PRIOR queries with correct parent-child relationships."""
|