Hugging Face's logo Hugging Face
  • Models
  • Datasets
  • Spaces
  • Buckets new
  • Docs
  • Enterprise
  • Pricing

  • Log In
  • Sign Up

Brain2nd
/
NeuronSpark-V3-1.1B-SFT

Text Generation
Transformers
Safetensors
English
Chinese
neuronspark
spiking-neural-network
snn
ponder-net
sft
chat
thinking
custom-architecture
conversational
custom_code
Model card Files Files and versions
xet
Community

Instructions to use Brain2nd/NeuronSpark-V3-1.1B-SFT with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • Transformers

    How to use Brain2nd/NeuronSpark-V3-1.1B-SFT with Transformers:

    # Use a pipeline as a high-level helper
    from transformers import pipeline
    
    pipe = pipeline("text-generation", model="Brain2nd/NeuronSpark-V3-1.1B-SFT", trust_remote_code=True)
    messages = [
        {"role": "user", "content": "Who are you?"},
    ]
    pipe(messages)
    # Load model directly
    from transformers import AutoModelForCausalLM
    model = AutoModelForCausalLM.from_pretrained("Brain2nd/NeuronSpark-V3-1.1B-SFT", trust_remote_code=True, dtype="auto")
  • Notebooks
  • Google Colab
  • Kaggle
  • Local Apps
  • vLLM

    How to use Brain2nd/NeuronSpark-V3-1.1B-SFT with vLLM:

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

    How to use Brain2nd/NeuronSpark-V3-1.1B-SFT 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 "Brain2nd/NeuronSpark-V3-1.1B-SFT" \
        --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": "Brain2nd/NeuronSpark-V3-1.1B-SFT",
    		"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 "Brain2nd/NeuronSpark-V3-1.1B-SFT" \
            --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": "Brain2nd/NeuronSpark-V3-1.1B-SFT",
    		"messages": [
    			{
    				"role": "user",
    				"content": "What is the capital of France?"
    			}
    		]
    	}'
  • Docker Model Runner

    How to use Brain2nd/NeuronSpark-V3-1.1B-SFT with Docker Model Runner:

    docker model run hf.co/Brain2nd/NeuronSpark-V3-1.1B-SFT
NeuronSpark-V3-1.1B-SFT
19.8 GB
Ctrl+K
Ctrl+K
  • 1 contributor
History: 5 commits
Brain2nd's picture
Brain2nd
Add fixed __init__.py (inference cache + per-tensor mixed precision)
c33a4a6 verified 7 days ago
  • deepspeed
    Add files using upload-large-folder tool 7 days ago
  • .gitattributes
    1.52 kB
    initial commit 7 days ago
  • README.md
    2.3 kB
    Add files using upload-large-folder tool 7 days ago
  • __init__.py
    301 Bytes
    Add fixed __init__.py (inference cache + per-tensor mixed precision) 7 days ago
  • config.json
    737 Bytes
    Add files using upload-large-folder tool 7 days ago
  • configuration_neuronspark.py
    2.12 kB
    Add fixed configuration_neuronspark.py (inference cache + per-tensor mixed precision) 7 days ago
  • generation_config.json
    195 Bytes
    Add files using upload-large-folder tool 7 days ago
  • latest
    9 Bytes
    Add files using upload-large-folder tool 7 days ago
  • model.safetensors
    2.47 GB
    xet
    Add files using upload-large-folder tool 7 days ago
  • modeling_neuronspark.py
    124 kB
    Add fixed modeling_neuronspark.py (inference cache + per-tensor mixed precision) 7 days ago
  • tokenizer.json
    4.14 MB
    Add files using upload-large-folder tool 7 days ago
  • tokenizer_config.json
    9.78 kB
    Add files using upload-large-folder tool 7 days ago
  • training_state.pth

    Pickle imports

    • No problematic imports detected

    What is a pickle import?

    1.37 kB
    xet
    Add files using upload-large-folder tool 7 days ago
  • zero_to_fp32.py
    33.3 kB
    Add files using upload-large-folder tool 7 days ago