johnsmith0031 / alpaca_lora_4bit

MIT License
533 stars 84 forks source link

Refactor generate_prompt to f-strings and make input optional #149

Closed jordankzf closed 12 months ago

jordankzf commented 12 months ago

Many Alpaca-formatted datasets do not use the ### Input: data key.

Generally, most inference code will only accept a User string ### Instruction: and expect the output in the form of ### Response:.

Hence, train_data.py should handle the case where the input data key is missing.

johnsmith0031 commented 12 months ago

Thanks for the fix!