Rename api_num_spec_tokens -> num_api_spec_tokens (#458)

This commit is contained in:
Lianmin Zheng
2024-05-20 18:44:23 -07:00
committed by GitHub
parent 8dbdc018a3
commit ced77c6626
7 changed files with 27 additions and 27 deletions

View File

@@ -353,7 +353,7 @@ def test_regex():
def test_completion_speculative():
@sgl.function(api_num_spec_tokens=64)
@sgl.function(num_api_spec_tokens=64)
def gen_character_spec(s):
s += "Construct a character within the following format:\n"
s += "Name: Steve Jobs.\nBirthday: February 24, 1955.\nJob: Apple CEO.\n"
@@ -384,7 +384,7 @@ def test_completion_speculative():
def test_chat_completion_speculative():
@sgl.function(api_num_spec_tokens=256)
@sgl.function(num_api_spec_tokens=256)
def gen_character_spec(s):
s += sgl.system("You are a helpful assistant.")
s += sgl.user("Construct a character within the following format:")