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 agents 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.0

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

Built distribution (wheel)

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

Total release size: 865.9 kB

Release files / fjallstation-0.1.0.tar.gz

Download URL fjallstation-0.1.0.tar.gz
Size 437.8 kB
Tags Source
SHA-256 checksum
How to use checksums
203ad5d6312803046c2b92f168de3bf9db991d4233429edbb9af8a520df97f17
BLAKE2b-256 checksum
How to use checksums
003603980857005dd7b4b604140dc4cc6fd38fa8546b04eb484bde2b3efff56b
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.0-py3-none-any.whl

Download URL fjallstation-0.1.0-py3-none-any.whl
Size 428.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
28bac03b50d11b97d293b5a93bfe10bc939e32929a053ba40bde04afe4940616
BLAKE2b-256 checksum
How to use checksums
b42fc4deebbcb0aba5428d428556a2127c78e52737127f53d2cbed219396985d
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.0

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