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

  • Log In
  • Sign Up

SRDdev
/
ScriptForge

Text Generation
Transformers
PyTorch
TensorBoard
Safetensors
English
gpt2
Text-Generation
text-generation-inference
Model card Files Files and versions
xet
Metrics Training metrics Community
1

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

  • Libraries
  • Transformers

    How to use SRDdev/ScriptForge with Transformers:

    # Use a pipeline as a high-level helper
    from transformers import pipeline
    
    pipe = pipeline("text-generation", model="SRDdev/ScriptForge")
    # Load model directly
    from transformers import AutoTokenizer, AutoModelForCausalLM
    
    tokenizer = AutoTokenizer.from_pretrained("SRDdev/ScriptForge")
    model = AutoModelForCausalLM.from_pretrained("SRDdev/ScriptForge")
  • Notebooks
  • Google Colab
  • Kaggle
  • Local Apps
  • vLLM

    How to use SRDdev/ScriptForge with vLLM:

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

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

    How to use SRDdev/ScriptForge with Docker Model Runner:

    docker model run hf.co/SRDdev/ScriptForge
ScriptForge / runs
64.7 kB
Ctrl+K
Ctrl+K
  • 2 contributors
History: 38 commits
SRDdev's picture
SRDdev
Training in progress, step 5000
5e00ec4 about 3 years ago
  • Feb21_04-23-07_982b68649fcd
    Training in progress, step 4500 about 3 years ago
  • Feb21_12-47-49_a1a0e6007542
    Training in progress, step 2000 about 3 years ago
  • Feb21_14-31-45_dcd3e9dff2e1
    Training in progress, step 500 about 3 years ago
  • Feb21_15-54-19_d56b40ec5192
    Training in progress, step 11000 about 3 years ago
  • Feb26_12-40-03_6c7e37021706
    Training in progress, step 2500 about 3 years ago
  • Feb26_12-45-16_6c7e37021706
    Training in progress, step 5000 about 3 years ago