davanstrien HF Staff commited on
Commit
feba30a
·
verified ·
1 Parent(s): 7fe1197

Upload gpt_oss_vllm_harmony.py

Browse files
Files changed (1) hide show
  1. gpt_oss_vllm_harmony.py +1 -1
gpt_oss_vllm_harmony.py CHANGED
@@ -269,7 +269,7 @@ def main(
269
  encoding = load_harmony_encoding(HarmonyEncodingName.HARMONY_GPT_OSS)
270
 
271
  # Get stop tokens from harmony
272
- stop_token_ids = encoding.stop_tokens_for_assistant_action()
273
  logger.info(f"[VERBOSE] Harmony stop token IDs: {stop_token_ids}")
274
 
275
  # Initialize vLLM
 
269
  encoding = load_harmony_encoding(HarmonyEncodingName.HARMONY_GPT_OSS)
270
 
271
  # Get stop tokens from harmony
272
+ stop_token_ids = encoding.stop_tokens_for_assistant_actions() # Note: plural "actions"
273
  logger.info(f"[VERBOSE] Harmony stop token IDs: {stop_token_ids}")
274
 
275
  # Initialize vLLM