110 karma · joined May 30, 2023 (3y ago) · 92 submissions
comment 3y ago · link · parent
The most advanced lib for dealing with LLMs is
https://github.com/zmedelis/bosquet
There is also https://github.com/cjbarre/multi-gpt/tree/main but it hasn't been update in 3 months and seems rather basic.
Alternatively, you can shoot me an email at
(->> '(102 117 110 116 97 105 110 64 109 101 46 99 111 109) (map char) (apply str))
and I'll prepare a repo for what I've been working on. It's usable but I wanted to clear some things up before a public release.
comment 3y ago · link · parent
https://www.youtube.com/watch?v=0xOGeZt71sg
I'd be really interested in generating on the fly numerical apophenia like those. In fact I dabbled into doing exactly that using GPT to code a python script. I ran L-BFGS-B on a unit pyramid to optimize its basic dimensions (height, base-length, set to 1 initially) so that it matches the pyramid equations [1]. As a result I get the pyramid's actual dimensions. My synthetic pyramid is slightly better than the actual pyramid when it comes to matching the "pyramid equations". I know this is tautological, yet when I observe the actual pyramid dimensions and where it fits on the gradient magnitude graph my script[2] provides, it falls right when the gradient becomes almost flat. That made me want to explore further, and I attempted to come up with my own crackpot equations using symbolic regression/genetic programming[3]. The ultimate goal: a VR app, let's call it the "conspiracy lens".
[1]https://tobeornottobe.org/the-great-pyramid-intro/math-const...
[2]https://pastebin.com/TsUtcWAa
[3]https://pastebin.com/9CEU76K6
There's a field studying this kind of stuff: https://en.wikipedia.org/wiki/Relevance_theory
And look what I found: https://journals.openedition.org/tipa/3068 – Louis de Saussure & Tim Wharton, 2019
Seems like the de Saussure family still has a very robust scientific tradition. The most famous of the de Saussure, Ferdinand, founder of synchronic linguistics, got trapped into an apophenia trap with his theory of "hypograms" underlying saturnian verses. More at https://www.degruyter.com/document/doi/10.1515/sem-2016-0158...
comment 3y ago · link · parent
Here's how level-1 functions are defined. 'ctx-fn' is just an indirection macro for 'fn' I haven't really used yet.
(defn preserve-ctx [f & [at]]
(let [mem (or at (atom {:ctx true}))]
(ctx-fn
:preserve-ctx [ctx]
(if (->> ctx :it (cmd? :preserve-ctx))
(do (case (:it ctx)
:preserve-ctx/get @mem
:preserve-ctx/reset (doto {:ctx true}
(->> (reset! mem))))
(println (-> ctx :it) "done."))
(-> ctx
(when-not-> (-> :states :preserved)
(as-> $ (ctx-it (merge @mem $) (-> $ :it))))
f
(assoc-in [:states :preserved] true)
(doto (->> (reset! mem))))))))
Edit: reading what I wrote, 'endpoint' is in fact a function returning function, except that since it's the "end" of the chain, it doesn't take a function to call next as argument.64.
Quantinuum H-Series quantum computer(quantinuum.com ↗)
24 points · by StackOverlord · 3y ago · 60 comments
comment 3y ago · link · parent
(def chatgpt
(-> (endpoint :chat "gpt-4" auth)
(chat/set-opts [:endpoint] {:stream true})
chat/retry
chat/catch-unkown-commands
;; chat/history
chat/string-input
(chat/file-io "file.txt" :stream true)
#_(chat/preserve-ctx chatgpt-ctx)))
These higher-level functions take as input the next function in the chain, and return a function that is responsible for calling it and takes a context hashmap as argument. Additionally, you can pass messages to these functions like :history/reset, impacting the atom defined in the let part of lolol. I use the same pattern for higher level constructs:[1]https://letoverlambda.com/index.cl/guest/chap2.html#sec_6
comment 3y ago · link · parent
https://en.wikipedia.org/wiki/Subject-oriented_programming
https://en.wikipedia.org/wiki/Aspect-oriented_programming
comment 3y ago · link · parent
As for pros needing training by other pros, I think it's more a question of culture. Once I was tasked with adapting a microservice to also run as a library, the challenge being we used JSON fields and now also had to store them in a mysql database that did not support them natively. I wrote an adapter that could have been released as a separate library because it was that generic, it took me 1 day of work, a 15 files long PR. But because it used a postwalk traversal on tiny json data triggered lazily upon accessing the specific field, cached in the ORM object for repeated access, it smelt funny to the CTO who proceeded to ditch my work away, spend the 3 following days adapting 350 files to try to get a highly specific solution then gave up, and decided in the end we'll have two separate versions of that system, in concurrent use, one as a lib and one as a microservice, hence multiplying by two the time it took to do changes to that highly repetitive codebase because "it was simpler that way".
You don't need to train pros, they have been training on their own since they are twelve.
comment 3y ago · link · parent
comment 3y ago · link · parent
User: I've invented, with my friend, a new concept that is symmetrical to that of "universal": we've called it the "adverse." We're now exploring adjacent notions such as universe, universal, universial, and god. ...
Assistant: ...
4. God is often conceptualized as the ultimate universal, the unity that transcends and governs all realities. In this view, God would be the final organizing principle of the universe, the principle that gives meaning to everything. Conversely, in the adverse, there might be a concept like the Adieu (a pun on "adieu" and "God"), which would be the ultimate possibility, the principle that gives birth to an infinity of distinct and unique realities. The Adieu would not be an organizer, but a facilitator, allowing each reality to follow its own unique laws and to realize its own unique possibilities.
comment 3y ago · link · parent
https://www.reuters.com/article/us-usa-proudboys-leader-excl...
comment 3y ago · link · parent
comment 3y ago · link · parent
comment 3y ago · link · parent
Not exactly. It still needs to conform to something the Lisp Reader can absorb, i.e. something that looks like lisp. Then there are reader macros. That's where the true extensibility resides (and in addition to the new syntax elements, you'll need to reserve boundary keywords for that syntax).
comment 3y ago · link · parent
comment 3y ago · link · parent