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

h2loop-ai
/
spark-cpt-base-ckpt

Text Generation
Transformers
Safetensors
English
code
olmo3
embedded-systems
code-completion
continual-pretraining
low-level
firmware
Model card Files Files and versions
xet
Community

Instructions to use h2loop-ai/spark-cpt-base-ckpt with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • Transformers

    How to use h2loop-ai/spark-cpt-base-ckpt with Transformers:

    # Use a pipeline as a high-level helper
    from transformers import pipeline
    
    pipe = pipeline("text-generation", model="h2loop-ai/spark-cpt-base-ckpt")
    # Load model directly
    from transformers import AutoTokenizer, AutoModelForCausalLM
    
    tokenizer = AutoTokenizer.from_pretrained("h2loop-ai/spark-cpt-base-ckpt")
    model = AutoModelForCausalLM.from_pretrained("h2loop-ai/spark-cpt-base-ckpt", device_map="auto")
  • Notebooks
  • Google Colab
  • Kaggle
  • Local Apps Settings
  • vLLM

    How to use h2loop-ai/spark-cpt-base-ckpt with vLLM:

    Install from pip and serve model
    # Install vLLM from pip:
    pip install vllm
    # Start the vLLM server:
    vllm serve "h2loop-ai/spark-cpt-base-ckpt"
    # Call the server using curl (OpenAI-compatible API):
    curl -X POST "http://localhost:8000/v1/completions" \
    	-H "Content-Type: application/json" \
    	--data '{
    		"model": "h2loop-ai/spark-cpt-base-ckpt",
    		"prompt": "Once upon a time,",
    		"max_tokens": 512,
    		"temperature": 0.5
    	}'
    Use Docker
    docker model run hf.co/h2loop-ai/spark-cpt-base-ckpt
  • SGLang

    How to use h2loop-ai/spark-cpt-base-ckpt 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 "h2loop-ai/spark-cpt-base-ckpt" \
        --host 0.0.0.0 \
        --port 30000
    # Call the server using curl (OpenAI-compatible API):
    curl -X POST "http://localhost:30000/v1/completions" \
    	-H "Content-Type: application/json" \
    	--data '{
    		"model": "h2loop-ai/spark-cpt-base-ckpt",
    		"prompt": "Once upon a time,",
    		"max_tokens": 512,
    		"temperature": 0.5
    	}'
    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 "h2loop-ai/spark-cpt-base-ckpt" \
            --host 0.0.0.0 \
            --port 30000
    # Call the server using curl (OpenAI-compatible API):
    curl -X POST "http://localhost:30000/v1/completions" \
    	-H "Content-Type: application/json" \
    	--data '{
    		"model": "h2loop-ai/spark-cpt-base-ckpt",
    		"prompt": "Once upon a time,",
    		"max_tokens": 512,
    		"temperature": 0.5
    	}'
  • Docker Model Runner

    How to use h2loop-ai/spark-cpt-base-ckpt with Docker Model Runner:

    docker model run hf.co/h2loop-ai/spark-cpt-base-ckpt

You need to agree to share your contact information to access this model

This repository is publicly accessible, but you have to accept the conditions to access its files and content.

To access H2LooP Spark, please complete the form below. By submitting, you agree to the model's license terms and confirm you will use it for lawful purposes only.

Log in or Sign Up to review the conditions and access this model content.

Gated model
You can list files but not access them

Preview of files found in this repository
  • Container-2.png
    113 kB
    xet
    Revert "Fix image paths: use public GitHub CDN URLs" 5 months ago
  • Container-3.png
    136 kB
    xet
    Revert "Fix image paths: use public GitHub CDN URLs" 5 months ago
  • Container-4.png
    111 kB
    xet
    Revert "Fix image paths: use public GitHub CDN URLs" 5 months ago
  • Container-5.png
    179 kB
    xet
    Revert "Fix image paths: use public GitHub CDN URLs" 5 months ago
  • Container-6.png
    84.3 kB
    Revert "Fix image paths: use public GitHub CDN URLs" 5 months ago
  • Container-7.png
    96.4 kB
    Revert "Fix image paths: use public GitHub CDN URLs" 5 months ago
  • Container-8.png
    96.3 kB
    Revert "Fix image paths: use public GitHub CDN URLs" 5 months ago
  • Container-9.png
    125 kB
    xet
    Revert "Fix image paths: use public GitHub CDN URLs" 5 months ago
  • Container.png
    109 kB
    xet
    Revert "Fix image paths: use public GitHub CDN URLs" 5 months ago
  • spark_preview.png
    2.59 MB
    xet
    Revert "Fix image paths: use public GitHub CDN URLs" 5 months ago