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

specklabs
/
Speck1-140M

Text Generation
Transformers
Safetensors
PyTorch
English
speck
causal-lm
base-model
hybrid
grouped-query-attention
causal-convolution
custom_code
Model card Files Files and versions
xet
Community

Instructions to use specklabs/Speck1-140M with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • Transformers

    How to use specklabs/Speck1-140M with Transformers:

    # Use a pipeline as a high-level helper
    from transformers import pipeline
    
    pipe = pipeline("text-generation", model="specklabs/Speck1-140M", trust_remote_code=True)
    # Load model directly
    from transformers import AutoModelForCausalLM
    model = AutoModelForCausalLM.from_pretrained("specklabs/Speck1-140M", trust_remote_code=True, device_map="auto")
  • Notebooks
  • Google Colab
  • Kaggle
  • Local Apps Settings
  • vLLM

    How to use specklabs/Speck1-140M with vLLM:

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

    How to use specklabs/Speck1-140M 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 "specklabs/Speck1-140M" \
        --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": "specklabs/Speck1-140M",
    		"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 "specklabs/Speck1-140M" \
            --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": "specklabs/Speck1-140M",
    		"prompt": "Once upon a time,",
    		"max_tokens": 512,
    		"temperature": 0.5
    	}'
  • Docker Model Runner

    How to use specklabs/Speck1-140M with Docker Model Runner:

    docker model run hf.co/specklabs/Speck1-140M
Speck1-140M
282 MB
Ctrl+K
Ctrl+K
  • 1 contributor
History: 12 commits
AtAndDev's picture
AtAndDev
Unify SpeckLabs model-card branding
7e512fa verified 19 days ago
  • assets
    Unify SpeckLabs model-card branding 19 days ago
  • .gitattributes
    1.52 kB
    initial commit about 1 month ago
  • LICENSE
    1.07 kB
    Publish Speck1-140M safetensors release about 1 month ago
  • LICENSE.tokenizer
    11.7 kB
    Publish Speck1-140M safetensors release about 1 month ago
  • README.md
    7.24 kB
    Unify SpeckLabs model-card branding 19 days ago
  • config.json
    10.9 kB
    Publish Speck1-140M safetensors release about 1 month ago
  • configuration_speck.py
    5.45 kB
    Publish Speck1-140M safetensors release about 1 month ago
  • generation_config.json
    110 Bytes
    Publish Speck1-140M safetensors release about 1 month ago
  • model.safetensors
    281 MB
    xet
    Publish Speck1-140M safetensors release about 1 month ago
  • modeling_speck.py
    24.7 kB
    Support right-padded evaluation batches about 1 month ago
  • padding_speck.py
    898 Bytes
    Support right-padded evaluation batches about 1 month ago
  • tokenization_speck.py
    2.16 kB
    Publish Speck1-140M safetensors release about 1 month ago
  • tokenizer.model
    493 kB
    xet
    Publish Speck1-140M safetensors release about 1 month ago
  • tokenizer_config.json
    406 Bytes
    Publish Speck1-140M safetensors release about 1 month ago