Skip to main content

Skylar — local, sovereign, from-scratch LLMs. CLI + loader for the Skylar model family (COBOL specialist & more).

Project description

skylar

Local, sovereign, from-scratch LLMs — a tiny runtime + CLI for the Skylar model family. First release ships the COBOL specialist (Sophia-AI/SkylarCobol-390M): a 390M model that beats 7B general code models on COBOL generation, small enough to run on a single GPU (or CPU).

Install

pip install skylar
# optional HTTP server:
pip install "skylar[serve]"

Use it — CLI

# interactive chat (auto-downloads the model from HuggingFace the first time)
skylar chat

# one-shot completion
skylar generate --prompt "Scrivi un sottoprogramma COBOL che somma due interi in RESULT."

# point at a different model or a local checkpoint
skylar chat   --model Sophia-AI/SkylarCobol-390M
skylar generate --model ./my-checkpoint --prompt "..."

# OpenAI-compatible server (needs the [serve] extra)
skylar serve --port 8000
#   POST /generate                {"prompt": "..."}
#   POST /v1/chat/completions     {"messages": [...]}

By default the system prompt is "Sei un esperto programmatore COBOL." and decoding is greedy (--temperature 0.0). Override with --system / --temperature.

Use it — Python

import skylar

m = skylar.load("Sophia-AI/SkylarCobol-390M")          # or a local dir
print(m.generate("Complete a COBOL paragraph that stores the max of two numbers in RESULT."))

for delta in m.stream("..."):                          # streaming
    print(delta, end="", flush=True)

skylar also registers the architecture with 🤗 Transformers, so this works too:

import skylar  # registers nano-transformer
from transformers import AutoModelForCausalLM
model = AutoModelForCausalLM.from_pretrained("Sophia-AI/SkylarCobol-390M")

What's inside

The Skylar models use a custom decoder (NanoTransformer, Qwen3-style: RMSNorm + RoPE + GQA + QK-Norm + SwiGLU), trained 100% from scratch (no third-party pretrained weights). This package vendors the architecture so the published weights load anywhere — no private framework needed.

License

Apache-2.0. Models & code IP: A. Ivanovitch (Sophia AI).

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

skylar-0.1.0.tar.gz (24.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

skylar-0.1.0-py3-none-any.whl (28.3 kB view details)

Uploaded Python 3

File details

Details for the file skylar-0.1.0.tar.gz.

File metadata

  • Download URL: skylar-0.1.0.tar.gz
  • Upload date:
  • Size: 24.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.3

File hashes

Hashes for skylar-0.1.0.tar.gz
Algorithm Hash digest
SHA256 a00fc508e09715ab24ff0abcdb747eb2e8b3c8cf01b2736b4dbada6f32bf4d4b
MD5 fa37043a30737a052c6beab760c79b41
BLAKE2b-256 3edc405d974c915cf5fb467f3cd4d5a7b06f67ea1e822d039b53ec3c21abad45

See more details on using hashes here.

File details

Details for the file skylar-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: skylar-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 28.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.3

File hashes

Hashes for skylar-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 c3e0e2806802443e21dd7414ec43e99f229e09adc28cb00dab85ff236b18531e
MD5 24027629557a8d18ba53f5c8531c1acc
BLAKE2b-256 4634b4852ea349e7ba85da485d238c39356e3a567a573062af6b9df3065cdcbb

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page