Hunyuan

Hunyuan-4B-Instruct

by Tencent AI · Current open-weight model; publicly available for self-hosted deployment

Tencent Hunyuan-4B-Instruct is an open-weight 4B dense language model for text generation, reasoning, coding, long-context analysis, and lightweight agents. It supports fast and slow reasoning modes, a 256K-token context window, quantization, fine-tuning, streaming, tool integration, and deployment through several popular inference frameworks. No official hosted API price or maximum output limit was verified, and its license includes restrictions that users should review before deployment.

Text Reasoning Coding
Hunyuan-4B-Instruct is Tencent’s 4-billion-parameter dense language model for text generation, reasoning, coding, long-context analysis, and lightweight agent workloads. Unlike a metered hosted API product, it is distributed as open weights for self-hosted use. That makes infrastructure, licensing, and deployment choices central to its evaluation: users can run and adapt the model locally, but Tencent has not published an official hosted per-token price for this specific model.
Outputs

What Hunyuan-4B-Instruct can produce

Text
Inputs

What it can understand

Text
Capabilities

Supported features

Tool use Streaming Fine-tuning
Model profile

Performance characteristics

7/10 Reasoning
6/10 Coding
8/10 Speed
9/10 Cost efficiency
Specifications

Technical details

Model family Hunyuan
Model type General Purpose
Context window 262K tokens
Release date 2025-07-30
Status Current open-weight model; publicly available for self-hosted deployment
Knowledge cutoff notes

No authoritative knowledge-cutoff date was identified in the official model card, configuration, or Tencent repository materials reviewed.

Model notes

Tencent describes Hunyuan-4B-Instruct as part of a dense 0.5B, 1.8B, 4B, and 7B model series. The model supports hybrid reasoning with fast and slow thinking modes, including enable_thinking controls in the chat template and /think or /no_think prompt directives. Official materials state native support for a 256K context window and describe agent-oriented evaluation on BFCL-v3, tau-Bench, and C3-Bench. The official repository documents fine-tuning workflows and deployment through Transformers, vLLM, SGLang, and TensorRT-LLM. No exact maximum generation length, knowledge cutoff, official hosted API pricing, prompt-caching service, batch API, or separate JSON-mode capability was verified. The Tencent Hunyuan Community License Agreement includes geographic and commercial restrictions; users should review the license before deployment or redistribution.

Cost

Model pricing

Input No official hosted API price published; self-hosted model weights are available
Output No official hosted API price published; self-hosted inference costs depend on infrastructure
Model guide

Hunyuan-4B-Instruct: Tencent’s Open-Weight 4B Model for Long-Context Reasoning

Tencent Hunyuan-4B-Instruct is a compact, open-weight, instruction-tuned language model released on July 30, 2025. It combines fast and slow reasoning modes with a 256K-token context window, local deployment support, quantization options, fine-tuning workflows, and integrations for Transformers, vLLM, SGLang, and TensorRT-LLM.

What is Hunyuan-4B-Instruct?

Hunyuan-4B-Instruct is an instruction-tuned language model from Tencent’s Hunyuan family. The “4B” designation refers to approximately 4 billion parameters, while “Instruct” indicates that the model is intended to follow user requests rather than simply continue text. It is a dense model, meaning that its parameters are generally engaged for each generation rather than selected through a mixture-of-experts routing system.

Tencent released the model as open weights on July 30, 2025. The official model repository is hosted on Hugging Face, with supporting code and documentation in Tencent’s Hunyuan-4B GitHub repository. The published materials position Hunyuan-4B-Instruct for general text generation, mathematics, coding, reasoning, long-context work, and agent-oriented tasks.

It belongs to a Hunyuan model series that Tencent describes as including 0.5B, 1.8B, 4B, and 7B variants. The 4B model is therefore positioned between smaller models intended for lower resource requirements and larger variants that may offer more capacity at the cost of greater hardware and inference demands. The supplied research does not establish a complete quality ranking across those siblings, so comparisons should not be treated as verified benchmark conclusions.

Core specifications and availability

SpecificationVerified information
ProviderTencent
Model typeDense, instruction-tuned general-purpose language model
Parameter countApproximately 4 billion
Release dateJuly 30, 2025
Context length262,144 tokens, commonly described as 256K tokens
WeightsOpen weights for local or self-hosted deployment
Official hosted API priceNo official per-token hosted price verified
Maximum output tokensNot verified in the supplied sources
Knowledge cutoffNo authoritative cutoff date identified

The 256K-token context window is one of the model’s most significant documented features. A context window is the amount of text the model can consider in a request and its surrounding conversation, subject to the implementation’s allocation between input and generated output. The official materials state native support for 256K tokens, but the supplied research does not verify a separate maximum generation length. Users should therefore avoid assuming that the entire context window can always be used simultaneously for input and output.

Because Hunyuan-4B-Instruct is an open-weight model rather than a conventional hosted service, the practical price is determined by hardware, electricity, hosting, storage, and operational maintenance. Tencent has not published an official hosted API price for the model in the reviewed materials. Quantized variants and supported inference engines may reduce memory and runtime costs, but the actual savings depend on the chosen quantization method and deployment hardware.

Reasoning modes and instruction following

Hunyuan-4B-Instruct supports a hybrid reasoning design with fast and slow thinking modes. In practical terms, the fast mode is intended for direct responses where low latency matters, while the slow mode gives the model a reasoning-oriented generation path for tasks that benefit from more deliberate problem solving. Tencent’s documentation describes controls including enable_thinking in the chat template and /think or /no_think prompt directives.

These controls are useful when one model must serve different workloads. A simple extraction, rewrite, or short question may not need an extended reasoning process. Mathematics, multi-step analysis, planning, and some coding problems may benefit from the slower mode. However, the supplied research does not provide a verified benchmark table establishing how much slow thinking improves accuracy or how much additional latency it introduces.

The editorial assessment supplied for this listing rates reasoning at 7 out of 10, coding at 6 out of 10, speed at 8 out of 10, and cost at 9 out of 10. These are editorial evaluations, not Tencent-published scores. They reflect the model’s compact open-weight positioning and should be treated as directional guidance rather than standardized performance measurements.

Coding, tools, and agent workloads

The model is suitable for code generation, explanation, transformation, and debugging tasks, although its compact size means that applications requiring the strongest available coding performance may prefer a larger or more specialized model. The official materials also document agent-oriented evaluation involving BFCL-v3, tau-Bench, and C3-Bench. These references indicate that Tencent considered tool-oriented interaction and agent behavior, but the supplied sources do not include detailed scores or enough information to make a quantitative comparison with other models.

Tool use is listed as supported. In this context, tool use means that an application can connect the model to external functions, APIs, retrieval systems, or other operations and provide the results back to the model. The model itself does not automatically gain web access or independent access to external systems. The supplied data specifically lists web search support as 0, so a deployment that needs current web information must provide a separate search or retrieval tool.

Streaming is also listed as supported, allowing an inference application to display generated text progressively instead of waiting for the complete response. This can improve the perceived responsiveness of chat and coding interfaces, but it does not change the model’s underlying reasoning quality or context limit.

Input and output modalities

Hunyuan-4B-Instruct is a text model. Its documented input and output are text, with no verified native image, audio, or video input or generation capability. It should not be selected as a multimodal model for image understanding, speech recognition, audio generation, or video analysis.

Tencent’s official materials describe deployment through Transformers, vLLM, SGLang, and TensorRT-LLM. This gives users several routes for running the weights, from a standard Python model workflow to specialized serving and inference stacks. The best choice depends on hardware, throughput requirements, quantization support, batching needs, and the surrounding application. The model’s open-weight format also makes local experimentation, controlled environments, and custom serving possible without depending on a Tencent-hosted endpoint.

Fine-tuning workflows are documented as well. Fine-tuning means adapting the model’s weights or training behavior to a particular dataset or task. This can be useful for domain-specific terminology, response formats, or recurring business workflows, but it requires suitable training data, compute resources, evaluation procedures, and attention to the model license.

Main strengths and limitations

Strengths

  • Open-weight access: Users can download and deploy the model rather than relying solely on a managed API.
  • Long context: The documented 256K-token context window is well suited to large documents, extended conversations, code repositories, and multi-document analysis, subject to available memory and serving configuration.
  • Flexible reasoning: Fast and slow thinking controls let applications trade response depth against latency.
  • Deployment flexibility: The official documentation covers Transformers, vLLM, SGLang, and TensorRT-LLM.
  • Adaptability: Quantization and fine-tuning workflows can help users fit the model to particular hardware or domains.
  • Low model-size burden: At approximately 4B parameters, it is more practical for local deployment than substantially larger models, although exact hardware requirements are not specified in the supplied research.

Limitations

  • No verified managed API price: Users must calculate infrastructure costs themselves unless they obtain the model through a separate hosting provider.
  • Unknown output ceiling: The supplied sources do not verify a maximum output-token limit.
  • Text-only operation: Native image, audio, and video capabilities are not supported.
  • Not a frontier-scale model: Its compact size can be an advantage for speed and cost, but applications demanding the highest reasoning or coding quality may need a larger alternative.
  • Operational responsibility: Self-hosting requires users to manage hardware, inference software, scaling, security, monitoring, and updates.
  • License review required: Tencent’s Hunyuan Community License Agreement includes geographic and commercial restrictions. Anyone deploying, modifying, or redistributing the model should review the current license rather than assuming that open weights mean unrestricted commercial use.
  • No verified JSON-mode claim: The supplied research does not establish a separate native JSON mode or structured-output guarantee.

When to choose Hunyuan-4B-Instruct

Choose Hunyuan-4B-Instruct when you want a relatively compact open-weight model that can be deployed under your own control. It is a strong candidate for local text assistants, Chinese or multilingual instruction following, document analysis, mathematics, coding support, long-context summarization, and lightweight agents that need to call application-provided tools.

It is particularly attractive when predictable control over data location matters, when a hosted API is unavailable or unsuitable, or when quantization and fine-tuning are more important than access to a fully managed service. The fast and slow reasoning controls also make it practical for applications with mixed workloads: use a quicker mode for routine interactions and a more deliberate mode for complex requests.

Another type of option may be more appropriate if you need native image, audio, or video processing, a guaranteed structured-output interface, a documented hosted API with simple per-token billing, or the strongest available performance on difficult reasoning and coding tasks. A larger Hunyuan sibling may also be worth evaluating when quality is more important than memory use and inference cost, but the supplied research does not provide enough comparative benchmark data to predict the exact improvement.

Pricing, licensing, and practical checks

There is no verified official hosted API price for Hunyuan-4B-Instruct. For a self-hosted deployment, estimate total cost from model storage, compatible GPU or other accelerator capacity, inference throughput, electricity, orchestration, and engineering time. Quantization may lower memory requirements, but it can introduce quality or compatibility trade-offs that should be tested on the target workload.

Before production use, verify the current model files, serving framework compatibility, tokenizer and chat-template behavior, context allocation, quantization quality, and fine-tuning instructions in Tencent’s official repositories. Test both fast and slow reasoning modes on representative prompts, especially if the application depends on tool calls or strict response formatting. Finally, review the Hunyuan Community License Agreement for geographic, commercial, redistribution, and other restrictions.

Overall, Hunyuan-4B-Instruct is best understood as a flexible self-hosted text model rather than a turnkey cloud API. Its main proposition is the combination of a manageable parameter count, unusually long documented context, configurable reasoning, and open deployment workflows. Those advantages are most valuable to users prepared to operate the model themselves and to evaluate its quality against the requirements of their specific application.


Answers to Frequently Asked Questions

Is Hunyuan-4B-Instruct multimodal, and does it have an official API price?
Hunyuan-4B-Instruct is a text-only model with no verified native image, audio, or video capabilities. Tencent has not published a verified official hosted API price for it in the reviewed materials, so self-hosting costs depend on hardware, electricity, storage, hosting, and maintenance.
Does Hunyuan-4B-Instruct support reasoning modes and tool use?
Yes. The model provides fast and slow thinking modes, with controls such as enable_thinking, /think, and /no_think. It can also be connected to application-provided tools, APIs, retrieval systems, and functions, but it does not have built-in web access; separate search or retrieval tooling is required for current information.
Can Hunyuan-4B-Instruct be run locally or self-hosted?
Yes. Hunyuan-4B-Instruct is available as open weights for local and self-hosted deployment. Tencent documents support for Transformers, vLLM, SGLang, and TensorRT-LLM. Users remain responsible for hardware, storage, inference software, scaling, security, and operational costs.
What is Hunyuan-4B-Instruct?
Hunyuan-4B-Instruct is Tencent’s approximately 4-billion-parameter, dense, instruction-tuned language model for text generation, reasoning, mathematics, coding, long-context analysis, and agent-oriented tasks. Tencent released its open weights on July 30, 2025.
How large is Hunyuan-4B-Instruct’s context window?
Hunyuan-4B-Instruct supports a documented context window of 262,144 tokens, commonly described as 256K tokens. The actual balance between input and generated output depends on the implementation, and the maximum output-token limit has not been verified.


Sources 5
Provider

About Tencent AI