Skip to main content

Fjällstation

"Fjällstation is the mountain station at the foot of Kebnekaise, where you prepare before the climb."

Fjällstation distributes data and RL environments for large-scale LLM training in the built environment.

What you get

Call What you get
fjallstation.Corpus() domain text, for training on raw text
fjallstation.Instruct() chats with questions and answers, for supervised fine-tuning (SFT)
fjallstation.Env() modelling tasks with a reward, for reinforcement learning (RL)

Env() runs on two more parts of the package: a task image (OpenModelica with its libraries) and a server (it gives the tasks and the rewards).

You bring the data: one folder in a simple format. The same parts run on one workstation or on several machines.

Quick start

You need Python 3.10 or later and Docker. Tested on Linux.

pip install fjallstation
fjallstation image                    # build the task image; the first build takes some minutes
fjallstation example ./store          # the example store: five texts, five chats, five tasks
fjallstation server --store ./store   # the server; keep it running in this terminal

Then your training code uses it. A mock-up: the model, the agent and the training steps are yours.

import fjallstation

llm = load_your_llm()

# 1. Training on raw domain text
for doc in fjallstation.Corpus():
    llm.train_on_text(doc["text"])

# 2. SFT on chats
for row in fjallstation.Instruct():
    llm.train_on_chat(row["messages"])

# 3. RL on tasks with a reward
env = fjallstation.Env()
for episode in range(1000):
    task = env.reset()                             # a task and a fresh container
    agent = Agent(llm, task.prompt)                # your agent: the LLM with a shell
    while agent.works():
        output = env.exec(agent.next_command()).output
        agent.read(output)
    result = env.step(agent.final_model())         # the container tries the model; the server scores it
    llm.learn(agent.steps, result.reward)          # 1.0 for a correct model; 0 to 0.3 for how far another one got

A first episode that you can run is in the documents.

Documents

  • The data folder: the format, the examples, and how to make tasks of your own.
  • One episode, step by step: a first episode with Python and with a shell, who runs as whom, and use on several machines.
  • The reward: the two parts of the reward and the rule behind them.

Licence

Apache 2.0, see LICENSE. The task image installs OpenModelica and Modelica libraries; they have their own licences. Two example tasks use open datasets under CC BY 4.0; their credit is in the task text and in the data document.

Metadata

Release files for fjallstation 0.1.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for fjallstation 0.1.4
File Size Uploaded Provenance Actions
fjallstation-0.1.4.tar.gz 442.9 kB Without provenance Details for fjallstation-0.1.4.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for fjallstation 0.1.4
File Interpreter ABI Platform Actions
fjallstation-0.1.4-py3-none-any.whl Python 3 none any Details for fjallstation-0.1.4-py3-none-any.whl

Total release size: 871.8 kB

Release files / fjallstation-0.1.4.tar.gz

Download URL fjallstation-0.1.4.tar.gz
Size 442.9 kB
Tags Source
SHA-256 checksum
How to use checksums
65f66fa0a43b6815a3f8997ecafe7245cab4d618911c87e2cb994d2baace049f
BLAKE2b-256 checksum
How to use checksums
87b2b524f5be101731290842889afd04f49ef02c03a6567b63be10fd19cb3d5c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.5

Release files / fjallstation-0.1.4-py3-none-any.whl

Download URL fjallstation-0.1.4-py3-none-any.whl
Size 428.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d1f8b779cfdd88a99b0d6d7b87e51d4b2b7188229d65484d901446baa5b8ef35
BLAKE2b-256 checksum
How to use checksums
3de10e37c97b10a1f3bf62feee308534037dde02e5f1fafb28b9cb50b7c21348
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.5

Security for fjallstation 0.1.4

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page