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

Skyl4r-Ai
/
Skylar-390M-Cobol

Text Generation
Transformers
Safetensors
English
nano-transformer
cobol
code
code-generation
legacy-modernization
sovereign-ai
from-scratch
Model card Files Files and versions
xet
Community

Instructions to use Skyl4r-Ai/Skylar-390M-Cobol with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • Transformers

    How to use Skyl4r-Ai/Skylar-390M-Cobol with Transformers:

    # Use a pipeline as a high-level helper
    from transformers import pipeline
    
    pipe = pipeline("text-generation", model="Skyl4r-Ai/Skylar-390M-Cobol")
    # Load model directly
    from transformers import NanoTransformer
    model = NanoTransformer.from_pretrained("Skyl4r-Ai/Skylar-390M-Cobol", device_map="auto")
  • Notebooks
  • Google Colab
  • Kaggle
  • Local Apps Settings
  • vLLM

    How to use Skyl4r-Ai/Skylar-390M-Cobol with vLLM:

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

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

    How to use Skyl4r-Ai/Skylar-390M-Cobol with Docker Model Runner:

    docker model run hf.co/Skyl4r-Ai/Skylar-390M-Cobol
Skylar-390M-Cobol
1.55 GB
Ctrl+K
Ctrl+K
  • 2 contributors
History: 9 commits
A. Ivanovitch
docs: point model refs to Skyl4r-Ai after org move
5741f6c verified 2 months ago
  • .gitattributes
    1.58 kB
    add COBOLEval benchmark chart 3 months ago
  • README.md
    8.25 kB
    docs: point model refs to Skyl4r-Ai after org move 2 months ago
  • coboleval_benchmark.png
    115 kB
    xet
    add COBOLEval benchmark chart 3 months ago
  • config.json
    500 Bytes
    SkylarCobol-390M v0.1 โ€” from-scratch COBOL specialist (COBOLEval CSR 82.2% / pass@1 5.5%, beats 7B baselines) 3 months ago
  • model.safetensors
    1.54 GB
    xet
    SkylarCobol-390M v0.1 โ€” from-scratch COBOL specialist (COBOLEval CSR 82.2% / pass@1 5.5%, beats 7B baselines) 3 months ago
  • tokenizer.json
    2.29 MB
    SkylarCobol-390M v0.1 โ€” from-scratch COBOL specialist (COBOLEval CSR 82.2% / pass@1 5.5%, beats 7B baselines) 3 months ago