Skip to main content

A compact PyTorch toolkit for native language-model training and Hugging Face SFT.

Project description

ArcLM Simple Interface

PyPI Python License Status

ArcLM now includes a packaged web inference interface that can be started from the library, used from Python code, and used to save loaded models locally.

Install Web Support

pip install "arclm[web]"

Install Everything

CPU install with the official PyTorch CPU index:

pip install "arclm[all-cpu]" --index-url https://download.pytorch.org/whl/cpu --extra-index-url https://pypi.org/simple

CUDA 12.1 install with the official PyTorch CUDA index:

pip install "arclm[all-cuda121]" --index-url https://download.pytorch.org/whl/cu121 --extra-index-url https://pypi.org/simple

The --index-url part is passed to pip at install time. It cannot be stored inside pyproject.toml extras.

Run From The CLI

Start the simple interface with:

python -m arclm --run simple-interface

Optional server settings:

python -m arclm --run simple-interface --host 127.0.0.1 --port 5000 --no-debug

Run From Python

from arclm import run_simple_interface

run_simple_interface()

You can also create the Flask app directly:

from arclm import create_simple_interface_app

app = create_simple_interface_app()

Save Models Locally

The interface includes:

  • Model source
  • Load
  • Save path
  • Save mode
  • Overwrite
  • Save local

Default save path:

models/saved

Override it with:

MODEL_SAVE_PATH=models/local python -m arclm --run simple-interface

or:

SAVE_PATH=models/local python -m arclm --run simple-interface

When Save local succeeds, the interface updates Model source to the saved local path so the model can be loaded from disk next time.

Save API

POST /model/save

Example payload:

{
  "model_source": "Qwen/Qwen3-0.6B",
  "save_path": "models/saved",
  "save_mode": "auto",
  "overwrite": false
}

save_mode: "auto" uses ArcLM's existing save logic for native ArcLM checkpoints, Hugging Face full models, and LoRA adapters.

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

arclm-0.6.1.tar.gz (163.2 kB view details)

Uploaded Source

Built Distribution

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

arclm-0.6.1-py3-none-any.whl (121.6 kB view details)

Uploaded Python 3

File details

Details for the file arclm-0.6.1.tar.gz.

File metadata

  • Download URL: arclm-0.6.1.tar.gz
  • Upload date:
  • Size: 163.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.10

File hashes

Hashes for arclm-0.6.1.tar.gz
Algorithm Hash digest
SHA256 1067c378094df7699123f536d924485fbe1c648349f24cf0666c2fbd2fbb9639
MD5 70a066d2b4007116116fbb5673a0ea7f
BLAKE2b-256 041a36ba5d53eb1152ac157af4bafa31cad02f4a09bf246194a2d2ccef0689a4

See more details on using hashes here.

File details

Details for the file arclm-0.6.1-py3-none-any.whl.

File metadata

  • Download URL: arclm-0.6.1-py3-none-any.whl
  • Upload date:
  • Size: 121.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.10

File hashes

Hashes for arclm-0.6.1-py3-none-any.whl
Algorithm Hash digest
SHA256 7d2cb180d441276fde9d22d67185fe4a13d47de6b132e021b72775a1ad86ed6f
MD5 a943a16f495adb0323dfa874640b1446
BLAKE2b-256 1d323fe24c56fa4c48554bc20c7f578517fc5b3c324ba422b698131399159f97

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