Hugging Face's logo Hugging Face
  • Models
  • Datasets
  • Spaces
  • Buckets new
  • Docs
  • Enterprise
  • Pricing
    • Website
      • Tasks
      • HuggingChat
      • Collections
      • Languages
      • Organizations
    • Community
      • Blog
      • Posts
      • Daily Papers
      • Hardware
      • Learn
      • Discord
      • Forum
      • GitHub
    • Solutions
      • Team & Enterprise
      • Hugging Face PRO
      • Enterprise Support
      • Inference Providers
      • Inference Endpoints
      • Storage Buckets

  • Log In
  • Sign Up

NovaAI6868
/
BaiHu-V1-Flash

Text Generation
Transformers
Safetensors
Chinese
English
baihu_ssa
sparse-attention
subq
ssa
long-context
commercial-license-required
conversational
Model card Files Files and versions
xet
Community

Instructions to use NovaAI6868/BaiHu-V1-Flash with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • Transformers

    How to use NovaAI6868/BaiHu-V1-Flash with Transformers:

    # Use a pipeline as a high-level helper
    from transformers import pipeline
    
    pipe = pipeline("text-generation", model="NovaAI6868/BaiHu-V1-Flash")
    messages = [
        {"role": "user", "content": "Who are you?"},
    ]
    pipe(messages)
    # Load model directly
    from transformers import AutoModelForCausalLM
    model = AutoModelForCausalLM.from_pretrained("NovaAI6868/BaiHu-V1-Flash", device_map="auto")
  • Notebooks
  • Google Colab
  • Kaggle
  • Local Apps Settings
  • vLLM

    How to use NovaAI6868/BaiHu-V1-Flash with vLLM:

    Install from pip and serve model
    # Install vLLM from pip:
    pip install vllm
    # Start the vLLM server:
    vllm serve "NovaAI6868/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": "NovaAI6868/BaiHu-V1-Flash",
    		"messages": [
    			{
    				"role": "user",
    				"content": "What is the capital of France?"
    			}
    		]
    	}'
    Use Docker
    docker model run hf.co/NovaAI6868/BaiHu-V1-Flash
  • SGLang

    How to use NovaAI6868/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 "NovaAI6868/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": "NovaAI6868/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 "NovaAI6868/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": "NovaAI6868/BaiHu-V1-Flash",
    		"messages": [
    			{
    				"role": "user",
    				"content": "What is the capital of France?"
    			}
    		]
    	}'
  • Docker Model Runner

    How to use NovaAI6868/BaiHu-V1-Flash with Docker Model Runner:

    docker model run hf.co/NovaAI6868/BaiHu-V1-Flash
BaiHu-V1-Flash
2.41 GB
Ctrl+K
Ctrl+K
  • 1 contributor
History: 5 commits
NovaAI6868's picture
NovaAI6868
Upload README.md with huggingface_hub
d57da8f verified 42 minutes ago
  • .gitattributes
    1.52 kB
    initial commit about 11 hours ago
  • LICENSE.custom.md
    7.48 kB
    Upload folder using huggingface_hub about 4 hours ago
  • README.md
    18.1 kB
    Upload README.md with huggingface_hub 42 minutes ago
  • config.json
    1.97 kB
    Upload folder using huggingface_hub about 4 hours ago
  • generation_config.json
    138 Bytes
    Upload folder using huggingface_hub about 4 hours ago
  • merges.txt
    1.67 MB
    Upload folder using huggingface_hub about 4 hours ago
  • model.safetensors
    2.4 GB
    xet
    Upload folder using huggingface_hub about 4 hours ago
  • tokenizer.json
    7.03 MB
    Upload folder using huggingface_hub about 4 hours ago
  • tokenizer_config.json
    9.68 kB
    Upload folder using huggingface_hub about 4 hours ago
  • vocab.json
    2.78 MB
    Upload folder using huggingface_hub about 4 hours ago