[ChatStream] mosaicml/mpt-7b-chat用の ChatPrompt

[ChatStream] mosaicml/mpt-7b-chat用の ChatPrompt

本日は mosaicml/mpt-7b-chat 用の ChatPrompt をご紹介します



class ChatPromptMosaicmlMptChat(AbstractChatPrompt):
    """
     mosaicml/mpt-7b-chat
    """

    def __init__(self):
        super().__init__()  # Call the initialization of the base class
        self.set_requester("<human>")
        self.set_responder("<bot>")
        self.set_prefix_as_stop_str_enabled(True)  # enable requester's prompt suffix as stop str

    def create_prompt(self, opts={}):
        """
        Build prompts according to the characteristics of each language model
        :return:
        """
        if self.chat_mode == False:
            return self.get_requester_last_msg()

        ret = self.system
        for chat_content in self.get_contents(opts):
            chat_content_role = chat_content.get_role()
            chat_content_message = chat_content.get_message()

            if chat_content_role:
                if chat_content_message:
                    merged_message = chat_content_role + ": " + chat_content_message + "\n"
                else:
                    merged_message = chat_content_role + ":"

                ret += merged_message

        return ret

    def build_initial_prompt(self, chat_prompt):
        pass
        # If you want a common initial prompt for instructions, override this method and implement
        # chat_prompt.add_requester_msg("Do you know about the Titanic movie?")
        # chat_prompt.add_responder_msg("Yes, I am familiar with it.")
        # chat_prompt.add_requester_msg("Who starred in the movie?")
        # chat_prompt.add_responder_msg("Leonardo DiCaprio and Kate Winslet.")



Read more

Ubuntu の GPU サーバーが固まっても電源ボタンを押しに行かない。ハードウェアウォッチドッグと panic 自動再起動の最小構成

Ubuntu の GPU サーバーが固まっても電源ボタンを押しに行かない。ハードウェアウォッチドッグと panic 自動再起動の最小構成

Ubuntu 24.04 の GPU サーバーが固まっても人が電源ボタンを押しに行かなくて済むように、systemd のハードウェアウォッチドッグ、panic からの自動再起動、起動時にウォッチドッグ装置を確実に読む oneshot サービスの 3 点を標準構成に入れた。/etc/modules-load.d/ では iTCO_wdt が deny-list で読まれない罠と、再起動して武装を確かめる検収まで。

By Qualiteg プロダクト開発部
日本語対応 LLMランキング2026 ~ベンチマーク分析レポート~(11月23日版)

日本語対応 LLMランキング2026 ~ベンチマーク分析レポート~(11月23日版)

まず結論 2026年11月23日時点のLLMランキング 日本語対応LLMランキングの2026年11月23日版です。前置きは後回しにして、まず最新のランキングからお見せします。 ローカルLLM(自社の環境で動かせるオープンモデル)の順位は、第2部の「オープンモデル 総合スコアランキング TOP20」に載せています。首位はQwen3.8-2.4T-A95B(0.8598)、2位はKimi K3.1 Pro(0.8557)です。 単一GPUで動かすことを考えているなら、「中規模(10B-30B)・小規模(10B未満)モデル」の節が近道です。中規模の首位はQwen3.8-27B(0.8091)で、量子化を併用すれば単一GPU構成も視野に入るサイズです。 フロンティアモデルの最新ランキング TOP20(Epoch Capabilities Index) フロンティアモデル TOP20Epoch Capabilities Index(総合能力の指数) 2026年11月23日更新1Claude Fable

By Qualiteg プロダクト開発部