textilelabs commited on
Commit
90fc752
·
verified ·
1 Parent(s): cc7cbee

Upload 2 files

Browse files
Files changed (2) hide show
  1. README.md +12 -5
  2. ollama/Modelfile +3 -2
README.md CHANGED
@@ -101,14 +101,21 @@ Modelfile shipped in `ollama/`:
101
 
102
  ```bash
103
  ollama pull hf.co/textilelabs/Loom-Spark
104
- ollama create loom-spark -f Modelfile # from the ollama/ folder of this repo
 
105
  ollama run loom-spark "hi"
106
  ```
107
 
108
- That gives the offline persona: greetings, identity, honest deferrals. If a
109
- reply ends in a `<lookup>…</lookup>` line, that's the model saying *"I'd search
110
- for this"* raw runners can't execute searches; for real internet answers use
111
- the harness (Option C).
 
 
 
 
 
 
112
 
113
  Note: without a wrapper that executes `<lookup>` calls and splices `<result>`
114
  blocks back in, GGUF/Ollama runners get the model's honest "I don't know, but
 
101
 
102
  ```bash
103
  ollama pull hf.co/textilelabs/Loom-Spark
104
+ curl -L -O https://huggingface.co/textilelabs/Loom-Spark/resolve/main/ollama/Modelfile
105
+ ollama create loom-spark -f Modelfile
106
  ollama run loom-spark "hi"
107
  ```
108
 
109
+ The Modelfile keeps multi-turn history in the trained format (each past turn is
110
+ re-wrapped in `<user>`/`<loom>` markers) and stops generation cleanly. That
111
+ gives the offline persona: greetings, identity, honest deferrals, made-up words.
112
+
113
+ Two honest caveats: if a reply ends in a `<lookup>…</lookup>` line, that's the
114
+ model saying *"I'd search for this"* — raw runners can't execute searches, so
115
+ for real internet answers use the harness (Option C). And at temperature 0.85 a
116
+ 7M model occasionally misreads intent ("whats your name?" sometimes gets a
117
+ philosophy answer; ask again or drop `--temperature 0.7`). Both quirks shrink
118
+ in Loom Spark v2's curriculum.
119
 
120
  Note: without a wrapper that executes `<lookup>` calls and splices `<result>`
121
  blocks back in, GGUF/Ollama runners get the model's honest "I don't know, but
ollama/Modelfile CHANGED
@@ -1,7 +1,8 @@
1
  FROM hf.co/textilelabs/Loom-Spark
2
  TEMPLATE """<tools:off>
3
- <user> {{ .Prompt }}
4
- <loom>"""
 
5
  PARAMETER stop "<|endoftext|>"
6
  PARAMETER stop "<user>"
7
  PARAMETER stop "<result>"
 
1
  FROM hf.co/textilelabs/Loom-Spark
2
  TEMPLATE """<tools:off>
3
+ {{ range .Messages }}{{ if eq .Role "user" }}<user> {{ .Content }}
4
+ {{ else }}<loom> {{ .Content }}<|endoftext|>
5
+ {{ end }}{{ end }}<loom>"""
6
  PARAMETER stop "<|endoftext|>"
7
  PARAMETER stop "<user>"
8
  PARAMETER stop "<result>"