Post
94
π’ Several weeks ago Microsoft announced Phi-4. My most-recent list of LLM models have had only wrapper for Phi-2, so it was time to update! With this post, happy to share that Phi-4 wrapper is now available at nlp-thirdgate for adopting Chain-of-Thought reasoning:
π€ https://github.com/nicolay-r/nlp-thirdgate/blob/master/llm/transformers_phi4.py
π https://github.com/nicolay-r/nlp-thirdgate/blob/master/tutorials/llm_phi4.py
Findings on adaptation: I was able to reproduce only the pipeline based model launching. This version is for textual llm only. Microsoft also released multimodal Phi-4 which is out of scope of this wrapper.
π nlp-thirdgate: https://lnkd.in/ef-wBnNn
π€ https://github.com/nicolay-r/nlp-thirdgate/blob/master/llm/transformers_phi4.py
π https://github.com/nicolay-r/nlp-thirdgate/blob/master/tutorials/llm_phi4.py
Findings on adaptation: I was able to reproduce only the pipeline based model launching. This version is for textual llm only. Microsoft also released multimodal Phi-4 which is out of scope of this wrapper.
π nlp-thirdgate: https://lnkd.in/ef-wBnNn