{"_id":"69a52438a50ce97141e4a0eb","id":"unsloth/Qwen3.5-4B-GGUF","private":false,"pipeline_tag":"image-text-to-text","library_name":"transformers","tags":["transformers","gguf","unsloth","image-text-to-text","base_model:Qwen/Qwen3.5-4B","base_model:quantized:Qwen/Qwen3.5-4B","license:apache-2.0","endpoints_compatible","region:us","conversational"],"downloads":1544502,"likes":554,"modelId":"unsloth/Qwen3.5-4B-GGUF","author":"unsloth","sha":"e87f176479d0855a907a41277aca2f8ee7a09523","lastModified":"2026-03-02T14:08:17.000Z","gated":false,"disabled":false,"widgetData":[{"text":"Hi, what can you help me with?"},{"text":"What is 84 * 3 / 2?"},{"text":"Tell me an interesting fact about the universe!"},{"text":"Explain quantum computing in simple terms."}],"model-index":null,"config":{},"cardData":{"tags":["unsloth"],"library_name":"transformers","license":"apache-2.0","license_link":"https://huggingface.co/Qwen/Qwen3.5-4B/blob/main/LICENSE","pipeline_tag":"image-text-to-text","base_model":["Qwen/Qwen3.5-4B"]},"transformersInfo":{"auto_model":"AutoModel"},"gguf":{"total":4205751296,"architecture":"qwen35","context_length":262144,"chat_template":"{%- set image_count = namespace(value=0) %}\n{%- set video_count = namespace(value=0) %}\n{%- macro render_content(content, do_vision_count, is_system_content=false) %}\n    {%- if content is string %}\n        {{- content }}\n    {%- elif content is iterable and content is not mapping %}\n        {%- for item in content %}\n            {%- if 'image' in item or 'image_url' in item or item.type == 'image' %}\n                {%- if is_system_content %}\n                    {{- raise_exception('System message cannot contain images.') }}\n                {%- endif %}\n                {%- if do_vision_count %}\n                    {%- set image_count.value = image_count.value + 1 %}\n                {%- endif %}\n                {%- if add_vision_id %}\n                    {{- 'Picture ' ~ image_count.value ~ ': ' }}\n                {%- endif %}\n                {{- '<|vision_start|><|image_pad|><|vision_end|>' }}\n            {%- elif 'video' in item or item.type == 'video' %}\n                {%- if is_system_content %}\n                    {{- raise_exception('System message cannot contain videos.') }}\n                {%- endif %}\n                {%- if do_vision_count %}\n                    {%- set video_count.value = video_count.value + 1 %}\n                {%- endif %}\n                {%- if add_vision_id %}\n                    {{- 'Video ' ~ video_count.value ~ ': ' }}\n                {%- endif %}\n                {{- '<|vision_start|><|video_pad|><|vision_end|>' }}\n            {%- elif 'text' in item %}\n                {{- item.text }}\n            {%- else %}\n                {{- raise_exception('Unexpected item type in content.') }}\n            {%- endif %}\n        {%- endfor %}\n    {%- elif content is none or content is undefined %}\n        {{- '' }}\n    {%- else %}\n        {{- raise_exception('Unexpected content type.') }}\n    {%- endif %}\n{%- endmacro %}\n{%- if not messages %}\n    {{- raise_exception('No messages provided.') }}\n{%- endif %}\n{%- if tools and tools is iterable and tools is not mapping %}\n    {{- '<|im_start|>system\\n' }}\n    {{- \"# Tools\\n\\nYou have access to the following functions:\\n\\n<tools>\" }}\n    {%- for tool in tools %}\n        {{- \"\\n\" }}\n        {{- tool | tojson }}\n    {%- endfor %}\n    {{- \"\\n</tools>\" }}\n    {{- '\\n\\nIf you choose to call a function ONLY reply in the following format with NO suffix:\\n\\n<tool_call>\\n<function=example_function_name>\\n<parameter=example_parameter_1>\\nvalue_1\\n</parameter>\\n<parameter=example_parameter_2>\\nThis is the value for the second parameter\\nthat can span\\nmultiple lines\\n</parameter>\\n</function>\\n</tool_call>\\n\\n<IMPORTANT>\\nReminder:\\n- Function calls MUST follow the specified format: an inner <function=...></function> block must be nested within <tool_call></tool_call> XML tags\\n- Required parameters MUST be specified\\n- You may provide optional reasoning for your function call in natural language BEFORE the function call, but NOT after\\n- If there is no function call available, answer the question like normal with your current knowledge and do not tell the user about function calls\\n</IMPORTANT>' }}\n    {%- if messages[0].role == 'system' %}\n        {%- set content = render_content(messages[0].content, false, true)|trim %}\n        {%- if content %}\n            {{- '\\n\\n' + content }}\n        {%- endif %}\n    {%- endif %}\n    {{- '<|im_end|>\\n' }}\n{%- else %}\n    {%- if messages[0].role == 'system' %}\n        {%- set content = render_content(messages[0].content, false, true)|trim %}\n        {{- '<|im_start|>system\\n' + content + '<|im_end|>\\n' }}\n    {%- endif %}\n{%- endif %}\n{%- set ns = namespace(multi_step_tool=true, last_query_index=messages|length - 1) %}\n{%- for message in messages[::-1] %}\n    {%- set index = (messages|length - 1) - loop.index0 %}\n    {%- if ns.multi_step_tool and message.role == \"user\" %}\n        {%- set content = render_content(message.content, false)|trim %}\n        {%- if not(content.startswith('<tool_response>') and content.endswith('</tool_response>')) %}\n            {%- set ns.multi_step_tool = false %}\n            {%- set ns.last_query_index = index %}\n        {%- endif %}\n    {%- endif %}\n{%- endfor %}\n{%- if ns.multi_step_tool %}\n    {{- raise_exception('No user query found in messages.') }}\n{%- endif %}\n{%- for message in messages %}\n    {%- set content = render_content(message.content, true)|trim %}\n    {%- if message.role == \"system\" %}\n        {%- if not loop.first %}\n            {{- raise_exception('System message must be at the beginning.') }}\n        {%- endif %}\n    {%- elif message.role == \"user\" %}\n        {{- '<|im_start|>' + message.role + '\\n' + content + '<|im_end|>' + '\\n' }}\n    {%- elif message.role == \"assistant\" %}\n        {%- set reasoning_content = '' %}\n        {%- if message.reasoning_content is string %}\n            {%- set reasoning_content = message.reasoning_content %}\n        {%- else %}\n            {%- if '</think>' in content %}\n                {%- set reasoning_content = content.split('</think>')[0].rstrip('\\n').split('<think>')[-1].lstrip('\\n') %}\n                {%- set content = content.split('</think>')[-1].lstrip('\\n') %}\n            {%- endif %}\n        {%- endif %}\n        {%- set reasoning_content = reasoning_content|trim %}\n        {%- if loop.index0 > ns.last_query_index %}\n            {{- '<|im_start|>' + message.role + '\\n<think>\\n' + reasoning_content + '\\n</think>\\n\\n' + content }}\n        {%- else %}\n            {{- '<|im_start|>' + message.role + '\\n' + content }}\n        {%- endif %}\n        {%- if message.tool_calls and message.tool_calls is iterable and message.tool_calls is not mapping %}\n            {%- for tool_call in message.tool_calls %}\n                {%- if tool_call.function is defined %}\n                    {%- set tool_call = tool_call.function %}\n                {%- endif %}\n                {%- if loop.first %}\n                    {%- if content|trim %}\n                        {{- '\\n\\n<tool_call>\\n<function=' + tool_call.name + '>\\n' }}\n                    {%- else %}\n                        {{- '<tool_call>\\n<function=' + tool_call.name + '>\\n' }}\n                    {%- endif %}\n                {%- else %}\n                    {{- '\\n<tool_call>\\n<function=' + tool_call.name + '>\\n' }}\n                {%- endif %}\n                {%- if tool_call.arguments is mapping %}\n                    {%- for args_name in tool_call.arguments %}\n                        {%- set args_value = tool_call.arguments[args_name] %}\n                        {{- '<parameter=' + args_name + '>\\n' }}\n                        {%- set args_value = args_value | tojson | safe if args_value is mapping or (args_value is sequence and args_value is not string) else args_value | string %}\n                        {{- args_value }}\n                        {{- '\\n</parameter>\\n' }}\n                    {%- endfor %}\n                {%- endif %}\n                {{- '</function>\\n</tool_call>' }}\n            {%- endfor %}\n        {%- endif %}\n        {{- '<|im_end|>\\n' }}\n    {%- elif message.role == \"tool\" %}\n        {%- if loop.previtem and loop.previtem.role != \"tool\" %}\n            {{- '<|im_start|>user' }}\n        {%- endif %}\n        {{- '\\n<tool_response>\\n' }}\n        {{- content }}\n        {{- '\\n</tool_response>' }}\n        {%- if not loop.last and loop.nextitem.role != \"tool\" %}\n            {{- '<|im_end|>\\n' }}\n        {%- elif loop.last %}\n            {{- '<|im_end|>\\n' }}\n        {%- endif %}\n    {%- else %}\n        {{- raise_exception('Unexpected message role.') }}\n    {%- endif %}\n{%- endfor %}\n{%- if add_generation_prompt %}\n    {{- '<|im_start|>assistant\\n' }}\n    {%- if enable_thinking is defined and enable_thinking is true %}\n        {{- '<think>\\n' }}\n    {%- else %}\n        {{- '<think>\\n\\n</think>\\n\\n' }}\n    {%- endif %}\n{%- endif %}","eos_token":"<|im_end|>","totalFileSize":8424393632},"siblings":[{"rfilename":".gitattributes","blobId":"45f8f828f55e4c751966fb9abf15538f95561206","size":3060},{"rfilename":"Qwen3.5-4B-BF16.gguf","blobId":"60d6faa77f0534c585542c7b845a93e394ede42c","size":8424393632,"lfs":{"sha256":"9e6e2841a75f503ccb330831832fd7861266e187e0dbf149a954219ccb8c197a","size":8424393632,"pointerSize":135}},{"rfilename":"Qwen3.5-4B-IQ4_NL.gguf","blobId":"b72e76b9a262e679f41f6f01ead031b3fbd52cfa","size":2579944608,"lfs":{"sha256":"ff5c3e9740a5aa53f04fdf3b0b8cc75da556bf8948cdb19d61c512d3a43465d9","size":2579944608,"pointerSize":135}},{"rfilename":"Qwen3.5-4B-IQ4_XS.gguf","blobId":"09d5aae9fc0b42b0a475e3827b09399a714029f8","size":2477053088,"lfs":{"sha256":"658a9e7e406deb06d0179755e3c14f6a82915a4be4962a2f92a64d948d2e572f","size":2477053088,"pointerSize":135}},{"rfilename":"Qwen3.5-4B-Q3_K_M.gguf","blobId":"dcf0727ddb539ad33338782905646da6be8efb9d","size":2293388448,"lfs":{"sha256":"d6981ab4d77ba712b48ef69d69042d75b5e39b9dce5fb5a5b054fd08e06afb95","size":2293388448,"pointerSize":135}},{"rfilename":"Qwen3.5-4B-Q3_K_S.gguf","blobId":"300c9c72af94f6ce42249290b56dc74a85a07abc","size":2105791648,"lfs":{"sha256":"7e2dd96b6141226b62fa88c775db06e0e9ff0aa84130805d7091a768868a3353","size":2105791648,"pointerSize":135}},{"rfilename":"Qwen3.5-4B-Q4_0.gguf","blobId":"74d884178d928595eee50a590ef778cd97f09bc4","size":2583221408,"lfs":{"sha256":"298fcb5fe7a77ccc79745ae24751560c5ac56874caff4bb39b1f2055bd72b8bb","size":2583221408,"pointerSize":135}},{"rfilename":"Qwen3.5-4B-Q4_1.gguf","blobId":"2a286c165e21bc32e775e92951b934bca8636ff8","size":2784416928,"lfs":{"sha256":"af1fa652b5c78980b105a2ffef954bfa724bc4d69d2d44463e27c4f3c2953bbd","size":2784416928,"pointerSize":135}},{"rfilename":"Qwen3.5-4B-Q4_K_M.gguf","blobId":"4ca59aa028e499c9351f394e844f5e27056e5846","size":2740937888,"lfs":{"sha256":"00fe7986ff5f6b463e62455821146049db6f9313603938a70800d1fb69ef11a4","size":2740937888,"pointerSize":135}},{"rfilename":"Qwen3.5-4B-Q4_K_S.gguf","blobId":"fa4da4a0fb5c0d8ea9b790fd4ab440fee0932642","size":2590430368,"lfs":{"sha256":"27caeb0e4b999d92ce0a9fdbdd1a7ba5112908d9de125645883732274be2ea77","size":2590430368,"pointerSize":135}},{"rfilename":"Qwen3.5-4B-Q5_K_M.gguf","blobId":"70e40ee1a3b4a6ab98839781accccfc2187348cf","size":3143656608,"lfs":{"sha256":"8814232b85594dcd46c50e5b8b29324a7efe9e746edbe8a3d1df3d3fce7aad39","size":3143656608,"pointerSize":135}},{"rfilename":"Qwen3.5-4B-Q5_K_S.gguf","blobId":"88f3e622d934a54ccb42168ae8dfd19add022b45","size":3024934048,"lfs":{"sha256":"161be121617c45ea247eae0fd4477d26f287a368b52702e3fc99c9bc52f23061","size":3024934048,"pointerSize":135}},{"rfilename":"Qwen3.5-4B-Q6_K.gguf","blobId":"8b46ce5a77cd55feaa51a05c649176784a2b034f","size":3525956768,"lfs":{"sha256":"fdedd781c9ce676ab66b018ca247ff78e8a33c98098a822c1e2d5075e7718f66","size":3525956768,"pointerSize":135}},{"rfilename":"Qwen3.5-4B-Q8_0.gguf","blobId":"871df22fc125cd971cc5c8aaee7d16b1e9ef9c68","size":4482403488,"lfs":{"sha256":"10cc391b403021dd11c614679d2fd92f611c3681d29e29651b717316965d61e1","size":4482403488,"pointerSize":135}},{"rfilename":"Qwen3.5-4B-UD-IQ2_M.gguf","blobId":"12b299eac42398b29defe48ef99a11497eee9af3","size":1759997088,"lfs":{"sha256":"cb4c45ca42c0d7777667e94e3963f8e59e939b3665098328ce601feb5be129c1","size":1759997088,"pointerSize":135}},{"rfilename":"Qwen3.5-4B-UD-IQ2_XXS.gguf","blobId":"1acab0ccc8460ef4b900e9b2dc718e13d2858b10","size":1520217248,"lfs":{"sha256":"4c1ba794e8d6098f4fb6482b4db6e880c80b5ee0b4c64d8668afaf9541163677","size":1520217248,"pointerSize":135}},{"rfilename":"Qwen3.5-4B-UD-IQ3_XXS.gguf","blobId":"a7689b79e1bea2cfc86cec8c287f9ebafc66255d","size":1949047968,"lfs":{"sha256":"00aab66a2359a9afc52f0ab757e61f9be1656e6fcaba8468bd95579a8b2cbc40","size":1949047968,"pointerSize":135}},{"rfilename":"Qwen3.5-4B-UD-Q2_K_XL.gguf","blobId":"2bcb744472a4bc6f9ad13b78d5152788ae649e36","size":1940825248,"lfs":{"sha256":"79aa0b583c888976013002f66b9f617070d91cf8de6a09dc775983640ac59463","size":1940825248,"pointerSize":135}},{"rfilename":"Qwen3.5-4B-UD-Q3_K_XL.gguf","blobId":"9c8883680f7af72792dc49cd3ff3de93c6c656e3","size":2436420768,"lfs":{"sha256":"1874727e4bb6ac23fd0cd134ac6562d2759fe44f37fa68c55197b36526da4e37","size":2436420768,"pointerSize":135}},{"rfilename":"Qwen3.5-4B-UD-Q4_K_XL.gguf","blobId":"5896df429fa8a782f02d97a61fc6368e00abac76","size":2912109728,"lfs":{"sha256":"b252c5610a42ca82d20fe2a12813e9d069eed89292907e26c783eeb0bc961bc7","size":2912109728,"pointerSize":135}},{"rfilename":"Qwen3.5-4B-UD-Q5_K_XL.gguf","blobId":"23867ba06ac09b1328da976f7d7b9a825a3e008b","size":3250869408,"lfs":{"sha256":"b4c36a8e14a80c21bcab5a067ce342b2e70e28f60b4aa95ad12203fa17b87426","size":3250869408,"pointerSize":135}},{"rfilename":"Qwen3.5-4B-UD-Q6_K_XL.gguf","blobId":"bb88c43e04870443a5a459e9d1df9e13f0f7a23a","size":4145548448,"lfs":{"sha256":"87f58d94410b81429268d8389a3d686e6c6bffecf7852772720fbea059cbbb9d","size":4145548448,"pointerSize":135}},{"rfilename":"Qwen3.5-4B-UD-Q8_K_XL.gguf","blobId":"44ede2300530708d78e52868e70c50981cf2270e","size":5952048288,"lfs":{"sha256":"e786a3c6570474c3885199bfb5adc54325aa7521a314e10b0aaefe16a54ba42f","size":5952048288,"pointerSize":135}},{"rfilename":"README.md","blobId":"265d2de0d83ddb04cb105d27413ba83e87bc41dd","size":78906},{"rfilename":"imatrix_unsloth.gguf_file","blobId":"8169357ab7fabada6c1ab5b23b74d5a9edb8070a","size":3626496,"lfs":{"sha256":"63718abd33c6ddcbb67f9089fb8bbaf0bc9996be4e23bba14ce17dcee76924d2","size":3626496,"pointerSize":132}},{"rfilename":"mmproj-BF16.gguf","blobId":"463d1078fc2d0285190d031551c25d08fc28d568","size":675569344,"lfs":{"sha256":"302b92d565080b9cc0281186979ae75a7429ec23d14f6f7607a035539b21f3a6","size":675569344,"pointerSize":134}},{"rfilename":"mmproj-F16.gguf","blobId":"df5eff16338bf924865eb98723fc7ef20eb54e7f","size":672423616,"lfs":{"sha256":"cd88edcf8d031894960bb0c9c5b9b7e1fea6ebee02b9f7ce925a00d12891f864","size":672423616,"pointerSize":134}},{"rfilename":"mmproj-F32.gguf","blobId":"b31ec78c6d346b63be1343f159597e50bb3104bd","size":1334075072,"lfs":{"sha256":"758b74e604c5374577c21026c5bdc3aec75560eccb4c67844c8f585d6ec74804","size":1334075072,"pointerSize":135}}],"spaces":["fastgpu/vram-and-gpu-cost-calculator","Rikunarita/Spark-X2.6-4B-abliterated-FIT-GGUF-Q6_K","PrinceAlhassanNasamu/tekyerema-lang","Bluestrikeai/qwen3.5-4b-chat","Jolly4927/Obsidian","build-small-hackathon/imagine-buddy","mohdelgaar/MedDecXtract-2.0","Bluestrikeai/qwen-3.5-4b-agent","Seym0n/uml-to-plantuml-converter","rahul7star/Qwen3.5-AICODER","Jolly6443/Obsidian","Mohamed-20/sahel-api","jp22082001/Mains_AI","MrRomzak/Miko","titoo3/Qwen3.5-4B-GGUF-UD-Q5_K_XL","AriesDjaenuri/evaluasi-chatbot-medis","douccana/flux2-klein-9b-kv-demo","echo-ilands/vram-match","yamiuchi/anima-collection-mcp","debohuggingface/portfolio-chat","paddycake/neuron-explorer","N4YuC4/docneedle","trier20102/teiror","trier20102/dump","jogbo/jogbo"],"createdAt":"2026-03-02T05:46:32.000Z","usedStorage":95914813600}