zlacker

[parent] [thread] 2 comments
1. luke-s+(OP)[view] [source] 2024-02-14 00:35:45
I'll share the core bit that took a while to figure out the right format, my main script is a hot mess using embeddings with SentenceTransformer, so I won't share that yet. E.g: last night I did a PR for llama-cpp-python that shows how Phi might be used with JSON only for the author to write almost exactly the same code at pretty much the same time. https://github.com/abetlen/llama-cpp-python/pull/1184 But you can see how that might work. Here is the core parser code: https://gist.github.com/lukestanley/eb1037478b1129a5ca0560ee...
replies(1): >>luke-s+Oz5
2. luke-s+Oz5[view] [source] 2024-02-15 18:22:23
>>luke-s+(OP)
The ChatGPT dump format is not intuitive so I used a tree search algo to print it up to a defined depth level then gave ChatGPT 4 the extract and you it what the expected output parts were.
replies(1): >>luke-s+uH7
◧◩
3. luke-s+uH7[view] [source] [discussion] 2024-02-16 08:08:21
>>luke-s+Oz5
* and told it what the expected output parts were.
[go to top]