Skip to main content

Fjällstation

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

A data and RL environment API for LLM training in the built environment.

What you get

Part What it does
fjallstation.Corpus() domain text for pretraining, as a Hugging Face dataset
fjallstation.Instruct() chats for fine-tuning, as a Hugging Face dataset
fjallstation.Env() modelling tasks in Modelica: a container to work in, and a reward
Task image OpenModelica with the libraries of the tasks
Server 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, in a second terminal in the same folder, with Python:

import fjallstation                       # reads ./store, or the folder in FJALLSTATION_STORE

for doc in fjallstation.Corpus():
    print(doc["text"])
for row in fjallstation.Instruct():
    print(row["messages"])

env = fjallstation.Env()
task = env.reset("example-heated-room")  # a task and a fresh container; env.reset() gives a random task
print(task.prompt)
print(env.exec("omc --version").output)  # your agent works in the container

model = """
model HeatedRoom
  Real T(start = 10, fixed = true);
  output Real T_room;
equation
  2e6*der(T) = 1500 - 100*T;
  T_room = T;
end HeatedRoom;
"""
result = env.step(model)                 # the container tries the model; the server gives the reward
print(result.reward, result.feedback)    # 1.0 correct

Documents

  • The data folder: the format, the examples, and how to make tasks of your own.
  • One episode, step by step: the same episode 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.1

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.1
File Size Uploaded Provenance Actions
fjallstation-0.1.1.tar.gz 437.8 kB Without provenance Details for fjallstation-0.1.1.tar.gz

Built distribution (wheel)

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

Total release size: 865.9 kB

Release files / fjallstation-0.1.1.tar.gz

Download URL fjallstation-0.1.1.tar.gz
Size 437.8 kB
Tags Source
SHA-256 checksum
How to use checksums
ef1da13815d07bebb63c57fa79f419167fdcad57cc43d7b7c9d9fa7351b60f92
BLAKE2b-256 checksum
How to use checksums
eb6aa0779fda8a6d96675a21635d3022306f0abf97c6a349cdf89f3f2058e410
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.1-py3-none-any.whl

Download URL fjallstation-0.1.1-py3-none-any.whl
Size 428.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c589dea05aab74d830710ea9361950f190d1c4c6e86ec54d873f3ef34758c37d
BLAKE2b-256 checksum
How to use checksums
691f57772ea23be3fc3b4188770ed16caca7f799495998fcd2d69979b8362238
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.1

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