mirror of
https://github.com/wassname/Clover-Edition.git
synced 2026-10-30 12:50:18 +08:00
fixed mental issue?
This commit is contained in:
1 parent
bd6653113c
commit
169d42d3f8
1 file changed
+3
-4
@@ -212,10 +212,7 @@ class CTRLGenerator():
|
||||
num_new_lines = 0
|
||||
for token in range(len(text) - 1, total_text_len - 1):
|
||||
|
||||
if first_token:
|
||||
temperature = 0.9
|
||||
else:
|
||||
temperature = self.temperature
|
||||
temperature = self.temperature
|
||||
|
||||
# get the logits from the prediction function
|
||||
# the logic here is a bit convoluted because we are allowing generation past 512 tokens
|
||||
@@ -329,4 +326,6 @@ class CTRLGenerator():
|
||||
result = tokens_generated_so_far[prompt_length:]
|
||||
first_token = False
|
||||
|
||||
print("tokens generated so far is ")
|
||||
print(tokens_generated_so_far)
|
||||
return self.result_replace(result)
|
||||
Reference in new issue
Block a user