alisha-1000 commented on issue #40179:
URL: https://github.com/apache/beam/issues/40179#issuecomment-7155176902

   @damccorm Tried this branch (3ae7aa50c1f) with a real local model
   (SmolLM2-360M-Instruct via transformers, wrapped in SubProcessModel).
   Plain Q&A works end to end, including in a DirectRunner pipeline.
   A few things I noticed, in case useful:
   
   1. subprocess_server.py passes only messages[-1].content and ignores
      `tools`, so system instructions, tools and multi-turn history don't
      reach the model (no error, HTTP 200). Is that intended for the
      generic path, with tools expected via vLLM?
   2. Reusing a session_id hits #41299 (fixed on master in #41339), so a
      rebase should pick that up.
   3. After a DirectRunner pipeline finishes, the process aborts at
      interpreter shutdown (exit 134) in _terminate_process (base.py:459),
      called from __del__, while a daemon thread is reading the same stdout.
   
   I have small local fixes with tests for 1 (reject requests with tools
   with a clear 400 instead of dropping them) and 3 (stop the server from
   an atexit hook), and a short write-up of options for passing the full
   history. Happy to share them if useful.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to