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.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| fjallstation-0.1.3.tar.gz | 443.3 kB | Without provenance | Details for fjallstation-0.1.3.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| fjallstation-0.1.3-py3-none-any.whl | Python 3 | none | any | Details for fjallstation-0.1.3-py3-none-any.whl |
Total release size: 872.3 kB
Release files / fjallstation-0.1.3.tar.gz
| Download URL | fjallstation-0.1.3.tar.gz |
|---|---|
| Size | 443.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ce9d8d34bcbe8cf1fdfcc887636e5618168f0a73fa1464735d5d7970fe6e3143
|
|
BLAKE2b-256 checksum How to use checksums |
1da0d86c7f443064160aa181c6c8022a1cab55e8ca4b17d0476544a384c2c61c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.7
|
Release files / fjallstation-0.1.3-py3-none-any.whl
| Download URL | fjallstation-0.1.3-py3-none-any.whl |
|---|---|
| Size | 429.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
8e3cec8ecff694a3f9d749426aed234a2b2eca2811ca6da0cf3ef25f11e73845
|
|
BLAKE2b-256 checksum How to use checksums |
34858c30b0eefbfd4e3ba3fd7ed9599a3054f8083c7e94a578dcd070cbb2586d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.7
|
Security for fjallstation 0.1.3
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.