Hugging Face's logo Hugging Face
  • Models
  • Datasets
  • Spaces
  • Buckets
  • 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

Project-KERN
/
KERN-Lab-0.5-624M

Text Generation
Transformers
Safetensors
PyTorch
English
Portuguese
kern_qwen3_moe
kern
sparse-moe
experimental
custom_code
conversational
Model card Files Files and versions
xet
Community

Instructions to use Project-KERN/KERN-Lab-0.5-624M with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • Transformers

    How to use Project-KERN/KERN-Lab-0.5-624M with Transformers:

    # Use a pipeline as a high-level helper
    from transformers import pipeline
    
    pipe = pipeline("text-generation", model="Project-KERN/KERN-Lab-0.5-624M", trust_remote_code=True)
    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("Project-KERN/KERN-Lab-0.5-624M", trust_remote_code=True, device_map="auto")
  • Notebooks
  • Google Colab
  • Kaggle
  • Local Apps Settings
  • vLLM

    How to use Project-KERN/KERN-Lab-0.5-624M with vLLM:

    Install from pip and serve model
    # Install vLLM from pip:
    pip install vllm
    # Start the vLLM server:
    vllm serve "Project-KERN/KERN-Lab-0.5-624M"
    # Call the server using curl (OpenAI-compatible API):
    curl -X POST "http://localhost:8000/v1/chat/completions" \
    	-H "Content-Type: application/json" \
    	--data '{
    		"model": "Project-KERN/KERN-Lab-0.5-624M",
    		"messages": [
    			{
    				"role": "user",
    				"content": "What is the capital of France?"
    			}
    		]
    	}'
    Use Docker
    docker model run hf.co/Project-KERN/KERN-Lab-0.5-624M
  • SGLang

    How to use Project-KERN/KERN-Lab-0.5-624M 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 "Project-KERN/KERN-Lab-0.5-624M" \
        --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": "Project-KERN/KERN-Lab-0.5-624M",
    		"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 "Project-KERN/KERN-Lab-0.5-624M" \
            --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": "Project-KERN/KERN-Lab-0.5-624M",
    		"messages": [
    			{
    				"role": "user",
    				"content": "What is the capital of France?"
    			}
    		]
    	}'
  • Docker Model Runner

    How to use Project-KERN/KERN-Lab-0.5-624M with Docker Model Runner:

    docker model run hf.co/Project-KERN/KERN-Lab-0.5-624M
KERN-Lab-0.5-624M
1.26 GB
Ctrl+K
Ctrl+K
  • 1 contributor
History: 3 commits
Project KERN
Use the official Project-KERN Hub namespace
40d562c verified 3 days ago
  • .gitattributes
    1.52 kB
    initial commit 3 days ago
  • KERN_Colab.ipynb
    4.8 kB
    Use the official Project-KERN Hub namespace 3 days ago
  • LICENSE
    11.3 kB
    Release KERN-Lab-0.5-624M 3 days ago
  • NOTICE
    1.37 kB
    Release KERN-Lab-0.5-624M 3 days ago
  • README.md
    4.93 kB
    Use the official Project-KERN Hub namespace 3 days ago
  • TRADEMARK.md
    783 Bytes
    Release KERN-Lab-0.5-624M 3 days ago
  • app.py
    2.64 kB
    Use the official Project-KERN Hub namespace 3 days ago
  • config.json
    1.63 kB
    Release KERN-Lab-0.5-624M 3 days ago
  • generate.py
    4.57 kB
    Release KERN-Lab-0.5-624M 3 days ago
  • generation_config.json
    139 Bytes
    Release KERN-Lab-0.5-624M 3 days ago
  • merges.txt
    1.67 MB
    Release KERN-Lab-0.5-624M 3 days ago
  • model.safetensors
    1.25 GB
    xet
    Release KERN-Lab-0.5-624M 3 days ago
  • modeling_kern_qwen06b_v1.py
    16.2 kB
    Release KERN-Lab-0.5-624M 3 days ago
  • requirements-ui.txt
    33 Bytes
    Release KERN-Lab-0.5-624M 3 days ago
  • requirements.txt
    80 Bytes
    Release KERN-Lab-0.5-624M 3 days ago
  • tokenizer.json
    7.03 MB
    Release KERN-Lab-0.5-624M 3 days ago
  • tokenizer_config.json
    9.68 kB
    Release KERN-Lab-0.5-624M 3 days ago
  • vocab.json
    2.78 MB
    Release KERN-Lab-0.5-624M 3 days ago