The best ChatGPT that $100 can buy.
Python
use orig_model in sampling, silly of me to miss this
Andrej Karpathyc1d2ed1c132e
diff --git a/scripts/base_train.py b/scripts/base_train.pyindex 518bd71..9f2cdff 100644--- a/scripts/base_train.py+++ b/scripts/base_train.py@@ -219,7 +219,7 @@ for step in range(num_iterations + 1):"My favorite color is","If 5*x + 3 = 13, then x is",]- engine = Engine(orig_model, tokenizer)+ engine = Engine(orig_model, tokenizer) # use orig_model to avoid recompilationfor prompt in prompts:tokens = tokenizer(prompt, prepend="<|bos|>")with autocast_ctx: