{"id":33129,"date":"2025-07-23T02:30:41","date_gmt":"2025-07-22T18:30:41","guid":{"rendered":"https:\/\/www.kdjingpai.com\/?p=33129"},"modified":"2025-07-23T02:34:29","modified_gmt":"2025-07-22T18:34:29","slug":"mistral-voxtralba","status":"publish","type":"post","link":"https:\/\/www.kdjingpai.com\/en\/mistral-voxtralba\/","title":{"rendered":"Mistral Voxtral\uff1a\u4e0d\u6b62\u201c\u542c\u89c1\u201d\uff0c\u66f4\u80fd\u201c\u542c\u61c2\u201d\u7684\u5f00\u6e90\u8bed\u97f3AI"},"content":{"rendered":"<p><img decoding=\"async\" src=\"https:\/\/www.kdjingpai.com\/wp-content\/uploads\/2025\/07\/3d6ca653f9abd51.png\" alt=\"\u56fe\u7247\" \/><\/p>\n<p>\u6765\u81ea\u5df4\u9ece\u7684\u00a0<code><a href=\"https:\/\/www.kdjingpai.com\/le-chat-mistral\/\">Mistral AI<\/a><\/code>\u00a0\u518d\u6b21\u4ee5\u5176\u6807\u5fd7\u6027\u7684\u5f00\u6e90\u7b56\u7565\uff0c\u5411\u4eba\u5de5\u667a\u80fd\u9886\u57df\u6295\u4e0b\u4e00\u679a\u91cd\u8981\u68cb\u5b50\u2014\u2014<code><a href=\"https:\/\/www.kdjingpai.com\/voxtral\/\">Voxtral<\/a><\/code>\u00a0\u97f3\u9891\u6a21\u578b\u3002\u8fd9\u5bb6\u88ab\u89c6\u4e3a\u00a0<code>OpenAI<\/code>\u00a0\u5728\u6b27\u6d32\u6700\u5f3a\u6709\u529b\u7684\u7ade\u4e89\u8005\uff0c\u6b64\u6b21\u63a8\u51fa\u7684\u00a0<a href=\"https:\/\/www.kdjingpai.com\/voxtral\/\"><code>Voxtral<\/code><\/a>\u00a0\u5e76\u975e\u5355\u7eaf\u7684\u8bed\u97f3\u8f6c\u5f55\u5de5\u5177\uff0c\u800c\u662f\u5c06\u5176\u5f3a\u5927\u7684\u8bed\u8a00\u6a21\u578b\u80fd\u529b\u5ef6\u4f38\u81f3\u97f3\u9891\u9886\u57df\uff0c\u65e8\u5728\u4e3a\u5546\u4e1a\u5e94\u7528\u63d0\u4f9b\u4e00\u4e2a\u5f00\u7bb1\u5373\u7528\u4e14\u5177\u6210\u672c\u6548\u76ca\u7684\u8bed\u97f3\u5904\u7406\u65b9\u6848\u3002<\/p>\n<p><code>Voxtral<\/code>\u00a0\u63d0\u4f9b\u4e24\u79cd\u622a\u7136\u4e0d\u540c\u7684\u6a21\u578b\u7248\u672c\uff0c\u8fd9\u79cd\u7b56\u7565\u6e05\u6670\u5730\u63ed\u793a\u4e86\u5176\u5e02\u573a\u91ce\u5fc3\u3002\u4e00\u4e2a\u662f\u7531\u00a0<code>24B<\/code>\u00a0\u53c2\u6570\u6784\u6210\u7684\u91cd\u91cf\u7ea7\u7248\u672c\uff0c\u4e13\u4e3a\u9700\u8981\u5904\u7406\u6d77\u91cf\u6570\u636e\u7684\u751f\u4ea7\u73af\u5883\u8bbe\u8ba1\uff1b\u53e6\u4e00\u4e2a\u5219\u662f\u00a0<code>3B<\/code>\u00a0\u53c2\u6570\u7684\u00a0<code>Mini<\/code>\u00a0\u7248\u672c\uff0c\u76ee\u6807\u76f4\u6307\u8d44\u6e90\u53d7\u9650\u7684\u672c\u5730\u548c\u8fb9\u7f18\u8ba1\u7b97\u573a\u666f\u3002\u4e24\u79cd\u7248\u672c\u5747\u5728\u00a0<code>Apache 2.0<\/code>\u00a0\u8bb8\u53ef\u4e0b\u5f00\u653e\uff0c\u8fd9\u610f\u5473\u7740\u4f01\u4e1a\u548c\u5f00\u53d1\u8005\u4e0d\u4ec5\u53ef\u4ee5\u81ea\u7531\u4e0b\u8f7d\u3001\u4fee\u6539\u548c\u90e8\u7f72\uff0c\u8fd8\u6d88\u9664\u4e86\u5546\u4e1a\u4f7f\u7528\u4e2d\u7684\u540e\u987e\u4e4b\u5fe7\u3002<\/p>\n<h3>\u4e0d\u6b62\u4e8e\u542c\u6e05\uff1a\u5185\u7f6e\u7406\u89e3\u4e0e\u591a\u8bed\u8a00\u4f18\u52bf<\/h3>\n<p>\u4e0e\u00a0<code>OpenAI<\/code>\u00a0\u7684\u00a0<code><a href=\"https:\/\/www.kdjingpai.com\/crisperwhisper\/\">Whisper<\/a><\/code>\u00a0\u7b49\u4e13\u6ce8\u4e8e\u9ad8\u7cbe\u5ea6\u8bed\u97f3\u8f6c\u5f55\uff08ASR\uff09\u7684\u6a21\u578b\u4e0d\u540c\uff0c<code>Voxtral<\/code>\u00a0\u7684\u6838\u5fc3\u4f18\u52bf\u5728\u4e8e\u5176\u539f\u751f\u96c6\u6210\u7684\u81ea\u7136\u8bed\u8a00\u7406\u89e3\uff08NLU\uff09\u80fd\u529b\u3002\u5b83\u57fa\u4e8e\u00a0<code><a href=\"https:\/\/www.kdjingpai.com\/le-chat-mistral\/\">Mistral<\/a> Small 3.1<\/code>\u00a0\u8bed\u8a00\u6a21\u578b\u6784\u5efa\uff0c\u56e0\u6b64\u7ee7\u627f\u4e86\u5f3a\u5927\u7684\u6587\u672c\u5904\u7406\u80fd\u529b\u3002\u8fd9\u610f\u5473\u7740\u7528\u6237\u65e0\u9700\u518d\u6784\u5efa\u201c\u8bed\u97f3\u8f6c\u6587\u672c\u518d\u5230\u8bed\u8a00\u6a21\u578b\u201d\u7684\u590d\u6742\u5904\u7406\u94fe\u8def\uff0c\u53ef\u4ee5\u76f4\u63a5\u5bf9\u97f3\u9891\u6587\u4ef6\u8fdb\u884c\u63d0\u95ee\u3001\u751f\u6210\u6458\u8981\u6216\u63d0\u53d6\u7ed3\u6784\u5316\u4fe1\u606f\u3002\u4f8b\u5982\uff0c<code>Voxtral<\/code>\u00a0\u80fd\u591f\u5904\u7406\u957f\u8fbe30\u5206\u949f\u7684\u97f3\u9891\u8f6c\u5f55\u621640\u5206\u949f\u7684\u97f3\u9891\u7406\u89e3\u4efb\u52a1\uff0c\u8fd9\u5f97\u76ca\u4e8e\u5176\u00a0<code>32k<\/code>\u00a0\u4ee4\u724c\u7684\u4e0a\u4e0b\u6587\u7a97\u53e3\uff0c\u5bf9\u4e8e\u5904\u7406\u4f1a\u8bae\u5f55\u97f3\u3001\u957f\u7bc7\u91c7\u8bbf\u7b49\u573a\u666f\u81f3\u5173\u91cd\u8981\u3002<\/p>\n<p>\u5728\u591a\u8bed\u8a00\u652f\u6301\u65b9\u9762\uff0c<code>Voxtral<\/code>\u00a0\u540c\u6837\u8868\u73b0\u51fa\u8272\uff0c\u5c24\u5176\u5728\u6b27\u6d32\u8bed\u8a00\u4e0a\u8fbe\u5230\u4e86\u9876\u5c16\u6c34\u5e73\uff0c\u5b98\u65b9\u57fa\u51c6\u6d4b\u8bd5\u663e\u793a\u5176\u652f\u6301\u82f1\u3001\u6cd5\u3001\u5fb7\u3001\u897f\u3001\u610f\u7b49\u591a\u79cd\u8bed\u8a00\u3002\u8fd9\u4e00\u7279\u6027\u4f7f\u5176\u5728\u5904\u7406\u56fd\u9645\u5316\u4e1a\u52a1\u7684\u97f3\u9891\u6570\u636e\u65f6\u5177\u6709\u5929\u7136\u4f18\u52bf\u3002<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.kdjingpai.com\/wp-content\/uploads\/2025\/07\/5e7462e8cd598a8.png\" alt=\"\u56fe\u7247\" \/><\/p>\n<h3>\u5e94\u7528\u573a\u666f\uff1a\u4ece\u4e91\u7aef\u5230\u8fb9\u7f18<\/h3>\n<p><code>Voxtral<\/code>\u00a0\u7684\u5e94\u7528\u6f5c\u529b\u8986\u76d6\u4e86\u4ece\u4e91\u7aef\u5230\u8fb9\u7f18\u7684\u5e7f\u6cdb\u573a\u666f\uff1a<\/p>\n<ul>\n<li><strong>\u5ba2\u6237\u670d\u52a1<\/strong>\uff1a\u81ea\u52a8\u8f6c\u5f55\u5ba2\u670d\u7535\u8bdd\uff0c\u5e76\u76f4\u63a5\u751f\u6210\u5de5\u5355\u6216\u6458\u8981\uff0c\u63d0\u5347\u54cd\u5e94\u6548\u7387\u3002<\/li>\n<li><strong>\u5185\u5bb9\u521b\u4f5c<\/strong>\uff1a\u5feb\u901f\u5c06\u64ad\u5ba2\u3001\u91c7\u8bbf\u8f6c\u4e3a\u6587\u5b57\u7a3f\uff0c\u5e76\u80fd\u76f4\u63a5\u63d0\u70bc\u6838\u5fc3\u89c2\u70b9\u3002<\/li>\n<li><strong>\u4f1a\u8bae\u5206\u6790<\/strong>\uff1a\u5b9e\u65f6\u8bb0\u5f55\u5e76\u751f\u6210\u4f1a\u8bae\u7eaa\u8981\uff0c\u63d0\u53d6\u5173\u952e\u51b3\u7b56\u548c\u5f85\u529e\u4e8b\u9879\u3002<\/li>\n<li><strong>\u8fb9\u7f18\u667a\u80fd<\/strong>\uff1a\u5728\u667a\u80fd\u5bb6\u5c45\u3001\u8f66\u8f7d\u7cfb\u7edf\u7b49\u7269\u8054\u7f51\u8bbe\u5907\u4e0a\u90e8\u7f72\u00a0<code>Voxtral Mini<\/code>\uff0c\u5b9e\u73b0\u65e0\u9700\u8054\u7f51\u7684\u672c\u5730\u8bed\u97f3\u4ea4\u4e92\u3002<\/li>\n<\/ul>\n<h3>\u5feb\u901f\u4e0a\u624b\u6307\u5357<\/h3>\n<p><code>Mistral AI<\/code>\u00a0\u63d0\u4f9b\u4e86\u901a\u8fc7\u4e91\u7aef\u00a0<code>API<\/code>\u00a0\u6216\u672c\u5730\u90e8\u7f72\u4e24\u79cd\u65b9\u5f0f\u4f7f\u7528\u00a0<code>Voxtral<\/code>\u3002<\/p>\n<h4>(\u4e00) \u901a\u8fc7\u00a0<code>Mistral AI<\/code>\u00a0\u4e91\u7aef\u00a0<code>API<\/code><\/h4>\n<p>\u5bf9\u4e8e\u5e0c\u671b\u5feb\u901f\u96c6\u6210\u7684\u5f00\u53d1\u8005\uff0c\u53ef\u4ee5\u4f7f\u7528\u5b98\u65b9\u00a0<code>API<\/code>\u3002\u9996\u5148\uff0c\u5728\u00a0<code>Mistral AI<\/code>\u00a0\u5e73\u53f0\u6ce8\u518c\u5e76\u83b7\u53d6\u00a0<code>API<\/code>\u00a0\u5bc6\u94a5\uff0c\u7136\u540e\u901a\u8fc7\u00a0<code>mistralai<\/code>\u00a0Python \u5ba2\u6237\u7aef\u5373\u53ef\u8c03\u7528\u3002<\/p>\n<h4>(\u4e8c) \u672c\u5730\u90e8\u7f72\uff08<code>vLLM<\/code>\u00a0\u63a8\u8350\uff09<\/h4>\n<p>\u5bf9\u4e8e\u9700\u8981\u6570\u636e\u9690\u79c1\u6216\u79bb\u7ebf\u8fd0\u884c\u7684\u573a\u666f\uff0c\u672c\u5730\u90e8\u7f72\u662f\u66f4\u4f73\u9009\u62e9\u3002\u5b98\u65b9\u63a8\u8350\u4f7f\u7528\u00a0<code><a href=\"https:\/\/www.kdjingpai.com\/vllm\/\">vLLM<\/a><\/code>\u00a0\u6846\u67b6\uff0c\u56e0\u4e3a\u5b83\u4e3a\u00a0<code>Voxtral<\/code>\u00a0\u63d0\u4f9b\u4e86\u9ad8\u6027\u80fd\u7684\u63a8\u7406\u652f\u6301\u3002<\/p>\n<p><strong>1. \u5b89\u88c5\u73af\u5883<\/strong><\/p>\n<p>\u9996\u5148\uff0c\u786e\u4fdd\u5df2\u5b89\u88c5\u00a0<code>Python<\/code>\u00a0\u73af\u5883\uff0c\u7136\u540e\u901a\u8fc7\u00a0<code>pip<\/code>\u00a0\u5b89\u88c5\u00a0<code>vLLM<\/code>\u00a0\u53ca\u76f8\u5173\u4f9d\u8d56\u3002<\/p>\n<pre><code>uv pip install -U \"vllm<\/code><\/pre>\n<p>&nbsp;<\/p>\n<pre><code>\" --torch-backend=auto --extra-index-url https:\/\/wheels.vllm.ai\/nightly\r\n<\/code><\/pre>\n<p><strong>2. \u542f\u52a8\u672c\u5730\u670d\u52a1<\/strong><\/p>\n<p>\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\u4ece\u00a0<code>Hugging Face<\/code>\u00a0\u4e0b\u8f7d\u6a21\u578b\u5e76\u542f\u52a8\u4e00\u4e2a\u4e0e\u00a0<code>OpenAI<\/code>\u00a0\u517c\u5bb9\u7684\u672c\u5730\u670d\u52a1\u3002<\/p>\n<pre><code>python -m vllm.entrypoints.openai.api_server \\\r\n--model mistralai\/Voxtral-Mini-3B-v0.1 \\\r\n--tokenizer-id mistralai\/Mistral-7B-Instruct-v0.3 \\\r\n--enable-chunked-prefill\r\n<\/code><\/pre>\n<p><strong>3. \u8c03\u7528\u672c\u5730\u670d\u52a1<\/strong><\/p>\n<p>\u670d\u52a1\u542f\u52a8\u540e\uff0c\u4f60\u53ef\u4ee5\u4f7f\u7528\u00a0<code>OpenAI<\/code>\u00a0\u7684\u5ba2\u6237\u7aef\u5e93\u6216\u00a0<code>curl<\/code>\u00a0\u4e0e\u672c\u5730\u8fd0\u884c\u7684\u00a0<code>Voxtral<\/code>\u00a0\u6a21\u578b\u8fdb\u884c\u4ea4\u4e92\u3002\u4ee5\u4e0b\u662f\u4f7f\u7528\u00a0<code>Python<\/code>\u00a0\u8fdb\u884c\u8bed\u97f3\u8f6c\u5f55\u548c\u7406\u89e3\u7684\u793a\u4f8b\u3002<\/p>\n<ul>\n<li><strong>\u8bed\u97f3\u8f6c\u5f55<\/strong><\/li>\n<\/ul>\n<pre><code>from openai import OpenAI\r\nfrom huggingface_hub import hf_hub_download\r\n# \u914d\u7f6e\u5ba2\u6237\u7aef\u6307\u5411\u672c\u5730vLLM\u670d\u52a1\r\nclient = OpenAI(\r\nbase_url=\"http:\/\/localhost:8000\/v1\",\r\napi_key=\"vllm\" # \u672c\u5730\u670d\u52a1\u4e0d\u9700\u8981\u771f\u5b9e\u5bc6\u94a5\r\n)\r\n# \u4e0b\u8f7d\u793a\u4f8b\u97f3\u9891\r\naudio_file_path = hf_hub_download(\r\nrepo_id=\"patrickvonplaten\/audio_samples\", \r\nfilename=\"obama.mp3\", \r\nrepo_type=\"dataset\"\r\n)\r\n# \u53d1\u8d77\u8f6c\u5f55\u8bf7\u6c42\r\nwith open(audio_file_path, \"rb\") as audio_file:\r\ntranscription = client.audio.transcriptions.create(\r\nmodel=\"mistralai\/Voxtral-Mini-3B-v0.1\", \r\nfile=audio_file,\r\nlanguage=\"en\"\r\n)\r\nprint(transcription.text)\r\n<\/code><\/pre>\n<ul>\n<li><strong>\u8bed\u97f3\u7406\u89e3\uff08\u95ee\u7b54\uff09<\/strong><\/li>\n<\/ul>\n<pre><code>from openai import OpenAI\r\nfrom huggingface_hub import hf_hub_download\r\nimport base64\r\n# \u914d\u7f6e\u5ba2\u6237\u7aef\r\nclient = OpenAI(\r\nbase_url=\"http:\/\/localhost:8000\/v1\",\r\napi_key=\"vllm\"\r\n)\r\n# \u4e0b\u8f7d\u5e76\u7f16\u7801\u97f3\u9891\u6587\u4ef6\r\ndef encode_audio_to_base64(filepath):\r\nwith open(filepath, 'rb') as audio_file:\r\nreturn base64.b64encode(audio_file.read()).decode('utf-8')\r\nobama_file = hf_hub_download(\"patrickvonplaten\/audio_samples\", \"obama.mp3\", repo_type=\"dataset\")\r\nbcn_file = hf_hub_download(\"patrickvonplaten\/audio_samples\", \"bcn_weather.mp3\", repo_type=\"dataset\")\r\nobama_base64 = encode_audio_to_base64(obama_file)\r\nbcn_base64 = encode_audio_to_base64(bcn_file)\r\n# \u6784\u5efa\u5305\u542b\u97f3\u9891\u548c\u6587\u672c\u7684\u591a\u6a21\u6001\u6d88\u606f\r\nresponse = client.chat.completions.create(\r\nmodel=\"mistralai\/Voxtral-Mini-3B-v0.1\",\r\nmessages=[\r\n{\r\n\"role\": \"user\",\r\n\"content\": [\r\n{\"type\": \"text\", \"text\": \"\u8fd9\u662f\u4e24\u6bb5\u97f3\u9891\u3002\u7b2c\u4e00\u6bb5\u662f\u4e00\u4f4d\u8457\u540d\u4eba\u7269\u7684\u6f14\u8bb2\uff0c\u7b2c\u4e8c\u6bb5\u662f\u5929\u6c14\u9884\u62a5\u3002\u8bf7\u95ee\uff0c\u54ea\u4e00\u6bb5\u6f14\u8bb2\u66f4\u6709\u542f\u53d1\u6027\uff1f\u4e3a\u4ec0\u4e48\uff1f\"},\r\n{\"type\": \"image_url\", \"image_url\": {\"url\": f\"data:audio\/mpeg;base64,{obama_base64}\"}},\r\n{\"type\": \"image_url\", \"image_url\": {\"url\": f\"data:audio\/mpeg;base64,{bcn_base64}\"}}\r\n]\r\n}\r\n],\r\ntemperature=0.2\r\n)\r\nprint(response.choices.message.content)\r\n<\/code><\/pre>\n<h3>\u9879\u76ee\u8d44\u6e90<\/h3>\n<ul>\n<li><strong>\u5b98\u65b9\u535a\u5ba2<\/strong>:\u00a0https:\/\/mistral.ai\/news\/voxtral\/<\/li>\n<li><strong>\u6a21\u578b\u4e0b\u8f7d<\/strong>: https:\/\/huggingface.co\/mistralai\/Voxtral-Mini-3B-2507<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>\u6765\u81ea\u5df4\u9ece\u7684\u00a0Mistral AI\u00a0\u518d\u6b21\u4ee5\u5176\u6807\u5fd7\u6027\u7684\u5f00\u6e90\u7b56\u7565\uff0c\u5411\u4eba\u5de5\u667a\u80fd\u9886\u57df\u6295\u4e0b\u4e00\u679a\u91cd\u8981\u68cb\u5b50\u2014\u2014Voxtral\u00a0\u97f3\u9891\u6a21\u578b\u3002\u8fd9\u5bb6\u88ab\u89c6\u4e3a\u00a0OpenAI\u00a0\u5728\u6b27\u6d32\u6700\u5f3a\u6709\u529b\u7684\u7ade\u4e89\u8005\uff0c\u6b64\u6b21\u63a8\u51fa\u7684\u00a0Voxtral\u00a0\u5e76\u975e\u5355\u7eaf\u7684\u8bed\u97f3\u8f6c\u5f55\u5de5\u5177\uff0c\u800c\u662f\u5c06\u5176\u5f3a\u5927\u7684\u8bed\u8a00&#8230;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[46],"tags":[],"class_list":["post-33129","post","type-post","status-publish","format-standard","hentry","category-news"],"_links":{"self":[{"href":"https:\/\/www.kdjingpai.com\/en\/wp-json\/wp\/v2\/posts\/33129","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.kdjingpai.com\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.kdjingpai.com\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.kdjingpai.com\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.kdjingpai.com\/en\/wp-json\/wp\/v2\/comments?post=33129"}],"version-history":[{"count":0,"href":"https:\/\/www.kdjingpai.com\/en\/wp-json\/wp\/v2\/posts\/33129\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.kdjingpai.com\/en\/wp-json\/wp\/v2\/media?parent=33129"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.kdjingpai.com\/en\/wp-json\/wp\/v2\/categories?post=33129"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.kdjingpai.com\/en\/wp-json\/wp\/v2\/tags?post=33129"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}