4 ms·
The code generated is most definitely related to the names/descriptions! To do this, I have to first generate the description then generate the code _from the d
by thesephist 4y ago
The code generated is most definitely related to the names/descriptions! To do this, I have to first generate the description then generate the code _from the descriptions_. The downside of this is that I can't parallelize text generation, but the upside is the code feels much more realistic. Here's the prompt I used (from that same file):
The idea here was to give the model a prompt that felt like a tutorial or some kind, and try to minimize non-Python non-ML-y code.
---
$MODEL_DESCRIPTION_FROM_EARLIER
Let\'s use this model. The basic use case takes only a few lines of Python to run the inference. Here are the first few lines.
```python