301 karma · joined Jan 30, 2017 (9y ago) · 86 submissions
1.
Wharton and Harvard Business School: LLMs on business decisions and tasks(business-ai-benchmark.github.io ↗)
2 points · by patelajay285 · 4mo ago · discuss
comment 2y ago · link · parent
comment 2y ago · link · parent
While the technique requires multiple samples to coax generations from this particular model, other LLM training schemes have incorporated both unidirectional and bidirectional objectives in their training now. However, this exploration hasn't been fully resolved as most models are still trained only on the causal objective by standard practice. There's still a a lot of exploration that can be done on pre-training objectives.
comment 2y ago · link · parent
We found Google's T5 models which were released in 2019, pre-GPT-3, were "secretly" capable of in-context learning with a simple inference technique.
Given they use a bidirectional MLM (Masked Language Modeling) objective, it wasn't obvious how to do it, but MLM objectives are known to produce better language representations than causal (next token prediction) objectives. We were able to outperform much larger sized GPT-3 models or get very close to their performance with far smaller T5 models.
comment 2y ago · link · parent
Here's an (now slightly outdated) example of OpenAI GPT-4 => OpenAI GPT-3.5: https://datadreamer.dev/docs/latest/pages/get_started/quick_...
But you can also do GPT-4 to any model on HuggingFace. Or something like Llama-70B to Llama-1B.
For some tasks, this kind of distillation works extremely well given even a few hundred examples of the larger model performing the task.
comment 2y ago · link · parent
But I hear you on it would be useful to also have some examples that show a proper, reliable model being trained with the library v.s. just example models. The project is pretty early, and we'll work on adding more examples.
comment 2y ago · link · parent
comment 2y ago · link · parent
comment 2y ago · link · parent
https://datadreamer.dev/docs/latest/pages/get_started/quick_...
comment 2y ago · link · parent
comment 2y ago · link · parent
comment 2y ago · link · parent
However, there is a lot of documentation on the site to help guide users. This documentation page shows you can load in data via local datasets as well. For example, JSON, CSV, text files, a local HF Dataset folder, or even from a Python `dict` or `list`:
https://datadreamer.dev/docs/latest/datadreamer.steps.html#t...
We'll definitely keep improving documentation, guides, and examples. We have a lot of it already, and more to come! This has only recently become a public project :)
If anyone has any questions on using it, feel free to email me directly (email on the site and HN bio) for help in the meantime.
comment 2y ago · link · parent
comment 2y ago · link · parent
Unless your research hypothesis is specifically around improving or changing RLHF, it's unlikely you should be implementing it from scratch. Abstractions are useful for a reason. The library is quite configurable to let you tune any knobs you would want.
comment 2y ago · link · parent
comment 2y ago · link · parent
However, we also tried to simplify the API and have sensible defaults to make it usable for anyone / make ML research code cleaner :)
comment 2y ago · link · parent
DataDreamer is an open source Python package with a nice API from the University of Pennsylvania that does all this that we’re actively developing. Will be here to answer questions.
25.
RLHF a LLM in <50 lines of Python(datadreamer.dev ↗)
223 points · by patelajay285 · 2y ago · 66 comments
27.
Distill OpenAI GPT-4 to a cheaper, faster GPT-3.5 model(datadreamer.dev ↗)
1 points · by patelajay285 · 2y ago · 2 comments
comment 2y ago · link · parent
It's a little bit easier to use if you want to do this without an HTTP API, directly in Python.
comment 2y ago · link · parent
comment 5y ago · link · parent
It's still loaded from a file, but heavily uses memory-mapping and caching to be speedy and not overload your RAM immediately. And in production scenarios, multiple worker processes can share that memory due to the memory mapping.
Granted it's read-only, so might not be exactly what you are looking for.
Disclaimer: I'm the author.