Text Generation
Transformers
Safetensors
Chinese
English
baihu_ssa
sparse-attention
subq
ssa
long-context
supervised-fine-tuning
transfer-learning
commercial-license-required
conversational
Instructions to use ZichenAI/BaiHu-V1-Flash with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use ZichenAI/BaiHu-V1-Flash with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="ZichenAI/BaiHu-V1-Flash") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# pip install -U transformers accelerate # Load model directly from transformers import AutoModelForCausalLM model = AutoModelForCausalLM.from_pretrained("ZichenAI/BaiHu-V1-Flash", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use ZichenAI/BaiHu-V1-Flash with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "ZichenAI/BaiHu-V1-Flash" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "ZichenAI/BaiHu-V1-Flash", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/ZichenAI/BaiHu-V1-Flash
- SGLang
How to use ZichenAI/BaiHu-V1-Flash with SGLang:
Install from pip and serve model
# Install SGLang from pip: pip install sglang # Start the SGLang server: python3 -m sglang.launch_server \ --model-path "ZichenAI/BaiHu-V1-Flash" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "ZichenAI/BaiHu-V1-Flash", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker images
docker run --gpus all \ --shm-size 32g \ -p 30000:30000 \ -v ~/.cache/huggingface:/root/.cache/huggingface \ --env "HF_TOKEN=<secret>" \ --ipc=host \ lmsysorg/sglang:latest \ python3 -m sglang.launch_server \ --model-path "ZichenAI/BaiHu-V1-Flash" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "ZichenAI/BaiHu-V1-Flash", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use ZichenAI/BaiHu-V1-Flash with Docker Model Runner:
docker model run hf.co/ZichenAI/BaiHu-V1-Flash
|
Download LICENSE.custom.md from ZichenAI/BaiHu-V1-Flash: direct link, hf CLI and curl.
- Browser
- Download file 7.48 kB
-
https://huggingface.co/ZichenAI/BaiHu-V1-Flash/resolve/main/LICENSE.custom.md
- Command line
-
hf download hf://ZichenAI/BaiHu-V1-Flash/LICENSE.custom.md
-
curl -L -o LICENSE.custom.md https://huggingface.co/ZichenAI/BaiHu-V1-Flash/resolve/main/LICENSE.custom.md
7.48 kB
| # BaiHu-V1-Flash Custom License | |
| **Version 1.0 | Effective date: 2026-09-29** | |
| Copyright (c) 2026 NovaAI6868. All rights reserved. | |
| This License governs the **BaiHu-V1-Flash** model (the "Model"), including its weights, | |
| configuration, inference code and accompanying documentation. **By downloading, copying, | |
| installing, invoking or otherwise using the Model, you confirm that you have read, | |
| understood and agree to be bound by all terms of this License.** If you do not agree, | |
| stop using the Model immediately and delete all copies. | |
| --- | |
| ## 1. Definitions | |
| - **"Personal Use"** means use by a natural person for their own learning, research, | |
| teaching, experimentation, hobby projects or other non-commercial purposes, where such | |
| use does **not** directly or indirectly generate commercial revenue and does **not** | |
| provide paid services to third parties based on the Model. | |
| - **"Commercial Use"** means any use for profit, any use in the business operations of a | |
| for-profit entity, or any use that generates commercial revenue. This includes, without | |
| limitation: internal production systems of a company, paid APIs or SaaS offered to third | |
| parties, integration into paid products, advertising or commercial analytics, | |
| client-facing delivery work, and any paid service built on the Model. | |
| - **"You"** means the natural person or legal entity exercising rights under this License. | |
| - **"Derivative Model"** means any model obtained by fine-tuning, continued training, | |
| distillation, quantization, pruning, merging or otherwise modifying the Model. | |
| ## 2. Free Grant: Personal Use | |
| Subject to this License, **Personal Use is free of charge**, with no fee and no prior | |
| application required. You may: | |
| 1. download, install, run and copy the Model; | |
| 2. modify the Model and create or train Derivative Models; | |
| 3. use the Model freely in personal, non-commercial projects, including publicly | |
| releasing your research results and demos. | |
| ## 3. Paid Grant: Commercial Use | |
| **Any Commercial Use requires prior written commercial authorization.** Commercial Use | |
| without such authorization is not permitted. | |
| Commercial licenses are negotiated based on scale of use, deployment model and term, and | |
| may include custom terms. To obtain one, contact: | |
| > **Business contact: novaweb6868@outlook.com** | |
| > | |
| > Please briefly state: your entity name, intended use case, expected volume or deployment | |
| > scale, and whether redistribution rights are required. | |
| Until you and the copyright holder reach a written agreement on commercial licensing, | |
| this License grants you **no** right of Commercial Use. | |
| ## 4. General Restrictions (applies to both Personal and Commercial Use) | |
| Whether your use is Personal Use or commercially licensed, you must not: | |
| 1. remove, obscure or alter copyright notices, license identifiers or attribution in the Model; | |
| 2. use the Model or any Derivative Model for any activity that violates applicable laws | |
| or regulations; | |
| 3. use the Model to generate or distribute malicious code, fraudulent content, or content | |
| that infringes the lawful rights of others; | |
| 4. sublicense the Model or any Derivative Model to third parties under terms that conflict | |
| with this License (except where redistribution rights are expressly granted in a | |
| commercial license); | |
| 5. claim original authorship of the Model, or make any promise or warranty on behalf of | |
| the copyright holder. | |
| ## 5. Licensing of Derivative Models | |
| Derivative Models you create **remain subject to this License**; your modifications do not | |
| remove them from its scope. Sections 2, 3 and 4 therefore apply equally to Derivative | |
| Models: Personal Use is free, Commercial Use requires a paid license. When distributing a | |
| Derivative Model you must include the full text of this License and prominently state that | |
| it is built upon BaiHu-V1-Flash. | |
| ## 6. Upstream License and Third-Party Components | |
| The Model is an architectural retrofit and continued-pretraining product of | |
| `Qwen/Qwen3-0.6B-Base` (Apache License 2.0). This License **only** governs the rights the | |
| copyright holder holds in the portions newly added to the Model, and **does not alter** | |
| the original license terms of upstream components. All use of the Model must also comply | |
| with the licenses applicable to those upstream components. In the event of a conflict, | |
| the upstream license prevails with respect to the upstream components. | |
| ## 7. What Counts as Commercial Use | |
| The following **are** Commercial Use and require authorization (this list is not | |
| exhaustive): | |
| - use in the business of a company, studio, sole proprietorship or other for-profit | |
| entity, even if no fee is charged directly; | |
| - delivering projects or deliverables that incorporate the Model to clients; | |
| - use to generate content, products or services sold externally; | |
| - offering a free service built on the Model while monetizing through advertising, | |
| traffic diversion, data monetization or similar. | |
| The following are **generally not** Commercial Use (final determination rests with the | |
| copyright holder): | |
| - personal study, coursework, or academic research that is publicly published; | |
| - use by non-profit organizations for non-commercial purposes. | |
| ## 8. Disclaimer of Warranty | |
| **The Model is provided "AS IS", without warranty of any kind**, express or implied, | |
| including but not limited to the warranties of merchantability, fitness for a particular | |
| purpose, accuracy and non-infringement. You bear all risks and consequences arising from | |
| your use of the Model. In no event shall the copyright holder be liable for any direct, | |
| indirect, incidental, special or consequential damages arising from the use of, or | |
| inability to use, the Model. The Model may produce inaccurate, biased or otherwise | |
| inappropriate output; you are responsible for evaluating it and for the consequences. | |
| ## 9. Termination | |
| If you breach any term of this License, the rights granted to you under it **terminate | |
| automatically**, without notice. Upon termination you must immediately stop using the | |
| Model and delete all copies and Derivative Models. Sections 4, 5, 8 and 10 survive | |
| termination. | |
| ## 10. Governing Law and Dispute Resolution | |
| The formation, validity, interpretation and dispute resolution of this License are | |
| governed by the laws of the copyright holder's jurisdiction. The parties shall first seek | |
| an amicable resolution of any dispute arising from this License. | |
| ## 11. Changes to This License | |
| The copyright holder reserves the right to revise this License from time to time. A | |
| revised License takes effect upon publication; your continued use of the Model after such | |
| publication constitutes acceptance of the revised terms. | |
| --- | |
| ## Quick Summary (for convenience only; the full text above controls) | |
| | Use case | Fee | Notes | | |
| |---|---|---| | |
| | Personal study / research / experimentation / hobby | **Free** | No application required | | |
| | Academic research with public publication | **Free** | Please cite the source | | |
| | Non-profit, non-commercial use by non-profits | **Free** | No application required | | |
| | Internal use by a company (even without direct fees) | **License required** | Contact novaweb6868@outlook.com | | |
| | Paid API / SaaS / product integration | **License required** | Contact novaweb6868@outlook.com | | |
| | Client-facing deliverables | **License required** | Contact novaweb6868@outlook.com | | |
| | Distributing fine-tuned / quantized versions | Same license | Free for personal, paid for commercial | | |
| **Commercial licensing contact: novaweb6868@outlook.com** | |