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

  • Log In
  • Sign Up

saracandu
/
stldec_random_16

Text Generation
Transformers
Safetensors
stldec16
custom_code
Model card Files Files and versions
xet
Community

Instructions to use saracandu/stldec_random_16 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • Transformers

    How to use saracandu/stldec_random_16 with Transformers:

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

    How to use saracandu/stldec_random_16 with vLLM:

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

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

    How to use saracandu/stldec_random_16 with Docker Model Runner:

    docker model run hf.co/saracandu/stldec_random_16
stldec_random_16
20.1 MB
Ctrl+K
Ctrl+K
  • 1 contributor
History: 53 commits
saracandu's picture
saracandu
Update checkpoint step_98000
0959880 verified 9 months ago
  • .gitattributes
    1.52 kB
    initial commit 9 months ago
  • README.md
    5.17 kB
    Upload STLForCausalLM 9 months ago
  • config.json
    1.02 kB
    Upload STLForCausalLM 9 months ago
  • configuration_stldec.py
    2.55 kB
    Upload STLForCausalLM 9 months ago
  • generation_config.json
    191 Bytes
    Upload STLForCausalLM 9 months ago
  • model.safetensors
    6.65 MB
    xet
    Update checkpoint step_98000 9 months ago
  • modeling_stldec.py
    91.3 kB
    Update modeling_stldec.py 9 months ago
  • optimizer.bin

    Detected Pickle imports (3)

    • "torch._utils._rebuild_tensor_v2",
    • "torch.FloatStorage",
    • "collections.OrderedDict"

    What is a pickle import?

    13.4 MB
    xet
    Update checkpoint step_98000 9 months ago
  • scheduler.bin

    Pickle imports

    • No problematic imports detected

    What is a pickle import?

    1.47 kB
    xet
    Update checkpoint step_98000 9 months ago
  • special_tokens_map.json
    88 Bytes
    Upload tokenizer 9 months ago
  • tokenizer.py
    8.53 kB
    Upload tokenizer 9 months ago
  • tokenizer_config.json
    1.01 kB
    Upload tokenizer 9 months ago
  • vocab.json
    410 Bytes
    Upload tokenizer 9 months ago