Skip to content

Open a model ​

New project offers five sources: GitHub, Hugging Face, Local folder, SSH machine, and Template, plus Describe it and the nanoGPT sample. Home’s or start from chips and Setup’s Bring your first project open the matching source. You can also paste a GitHub or Hugging Face link anywhere on the New project screen.

Your code ​

Choose Local folder and enter an absolute path on the computer running klars; in the desktop app, Choose folder… picks it. klars reads the folder in place. For GitHub, choose GitHub, paste a repository’s HTTPS link, and choose Create project.

The GitHub repository is cloned to a managed folder on the machine running klars. Attaching it to a chat gives that chat access to the source; it does not execute the model by itself.

SSH machine lists the hosts in your SSH config and uses your own keys and agent; klars asks before trusting a new host key. The remote folder opens in its own workspace window; no project is added to the current window.

When the model needs configuration, use Graph actions → Model setup. Check the Python interpreter, model entry point, and example inputs. Existing saved profiles can supply this information.

  1. For an existing project, open Graph actions ⋯ and choose Model setup.

    Graph actions menu with Model setup highlighted
    1 Model setup
  2. If you need to enter the setup yourself, choose Configure manually.

    Model setup with Configure manually highlighted
    The sample has no saved profile yet, so setup offers the agent or a manual configuration.1 Configure manually

Capture executes your code

A local-code capture runs the model in your chosen Python environment. Review an unfamiliar project and its dependencies before you run it.

Hugging Face ​

  1. Choose New project, then Hugging Face. Search the Hub, or paste a model link or an owner/name ID.

    The Hugging Face source with its search field highlighted and a list of popular models
    The list is live from the Hub; opening a model still needs your configured Python environment.1 Hugging Face2 Search Hugging Face
  2. Select a model to see what klars found: its architecture, task, size, and revision. Choose Open model to draw the architecture without downloading weights, or Open with pretrained weights to download the checkpoint.

    A selected Hugging Face model with Open model and Open with pretrained weights highlighted
    1 Open model2 Open with pretrained weights

Search looks for Transformers models with safetensors weights; public search needs no token. Select a result and review its inferred inputs under Example input. If klars cannot infer them, enter each forward argument’s name, shape, type, and fill value.

Shapes only ​

Choose Open model to trace the architecture from its configuration, starting with fake tensors and without downloading model weights. A successful fake-tensor capture is labelled Shapes only and contains no real tensor values.

If the model reads a tensor value while running, klars automatically retries once with real tensors. That attempt can allocate random weights and is no longer a shapes-only capture. Random-weight builds estimated above 4 GiB are refused during real-tensor construction. Check the resulting capture label and any failure details.

klars uses the installed Transformers implementation and does not run Python code from the model repository. Unsupported architectures may need to be opened from their implementation project instead.

Pretrained weights ​

Open with pretrained weights downloads a safetensors file, up to 2 GiB, and captures real values. This takes more time, disk space, and memory.

For gated models, accept the model’s conditions on Hugging Face first, then provide a read token in the picker. When klars learns the model needs access, the picker names it and links its Hugging Face page so you can review the conditions. The token is used for that model only: going back or choosing another model clears it, and it is not saved.

Transformers must be installed in the Python environment klars uses. A missing installation is named in the failure card, with an install offered for review.

Templates ​

Choose Template, select a model, check its declared inputs, and choose Create project to generate a new project and capture its model on the CPU. Describe it takes one sentence and starts from the closest model template; klars does not write code from the sentence. Home’s What do you want to build? box does the same.

When adding a template to an existing project (Model setup › Start from a model template), review the generated Python and CPU profile before saving.

Understand the capture label ​

LabelWhat you can infer
Recorded sampleA saved example graph. Opening it runs nothing.
Source onlyStructure read from code. No model execution or recorded tensor values.
Shapes onlyArchitecture, shapes, and connections; no real tensor values.
CapturedA completed model execution capture. Inspect its model, environment, and inputs before comparing results.
TracedA completed JAX capture. Inspect its recorded evidence before comparing results.
Reused captureA saved execution result was reused.
Partial captureCapture returned incomplete evidence or an error. Inspect the details before drawing conclusions.

Next, explore the graph and inspector.

Your models. Your machine. Your next idea.