Run this model with HF Jobs

Run jth00/qwen3-1.7b-avalanche-lora on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.

Paste one of these prompts into your coding agent:

Fine-tune on my dataset

Use HF Jobs to fine-tune https://huggingface.co/jth00/qwen3-1.7b-avalanche-lora. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.

Run batch inference

Use HF Jobs to run batch inference with https://huggingface.co/jth00/qwen3-1.7b-avalanche-lora on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.

Evaluate on a benchmark

Use HF Jobs to evaluate https://huggingface.co/jth00/qwen3-1.7b-avalanche-lora. Ask me which benchmark to run, then save the scores and the per-example results to a new dataset repo. Run `hf jobs --help` first to learn the CLI.

Quantize for lower memory use

Use HF Jobs to create a 4-bit version of https://huggingface.co/jth00/qwen3-1.7b-avalanche-lora. Push it to a new model repo, then reload it from there and report its memory footprint. Run `hf jobs --help` first to learn the CLI.

Qwen3-1.7B avalanche LoRA

A LoRA adapter for Qwen3-1.7B that reads the avalanche problem descriptions of a Swiss avalanche bulletin (SLF) and returns the avalanche problems as JSON: type, danger level, aspects and elevation range. It works in German, French, Italian and English.

Research only. Do not use it for decisions in avalanche terrain. About 40% of the problems it predicts are wrong on type or danger level. For the actual danger, read the official bulletin at slf.ch.

It was trained on 1,000 bulletins to answer one question: how many labelled examples does a small open model need to match a frontier LLM at structured extraction? Code, data splits and all predictions are in github.com/jonastheiler/avalanche-llm.

Results

Test sample: 1,200 bulletins from winter 25/26 (300 per language), later than all training data. A predicted problem counts as correct if both its type and danger level match the forecasters' label.

type + level F1 (95% CI) danger level valid JSON USD per 1,000 bulletins
keyword rules 0.253 (0.224–0.284) 0.339 1.000 0
Qwen3-1.7B, no fine-tuning 0.000 0.000 0.000 0.23
this adapter (1,000 examples) 0.612 (0.581–0.646) 0.789 1.000 0.13
Claude Haiku 5.5, zero-shot 0.597 (0.569–0.629) 0.750 1.000 0.17
Claude Haiku 5.5, 5-shot 0.610 (0.580–0.640) 0.750 1.000 0.13

The adapter ties Claude Haiku: the intervals overlap almost completely. Results are about the same in all four languages. The cost assumes a rented T4 at US$0.40 per hour.

Usage

The adapter expects the same system prompt it was trained with, which lives in the GitHub repo:

# pip install torch transformers peft git+https://github.com/jonastheiler/avalanche-llm
import torch
from peft import PeftModel
from transformers import AutoModelForCausalLM, AutoTokenizer

from avalanche_llm.frontier import CALIBRATED

tokenizer = AutoTokenizer.from_pretrained("Qwen/Qwen3-1.7B")
base = AutoModelForCausalLM.from_pretrained("Qwen/Qwen3-1.7B", dtype=torch.float16, device_map="auto")
model = PeftModel.from_pretrained(base, "jth00/qwen3-1.7b-avalanche-lora")

text = "As a consequence of bise wind, mostly small wind slabs formed on Thursday. ..."
messages = [{"role": "system", "content": CALIBRATED}, {"role": "user", "content": text}]
prompt = tokenizer.apply_chat_template(
    messages, tokenize=False, add_generation_prompt=True, enable_thinking=False
)
inputs = tokenizer(prompt, return_tensors="pt").to(model.device)
output = model.generate(**inputs, max_new_tokens=512, do_sample=False)
print(tokenizer.decode(output[0, inputs["input_ids"].shape[1]:], skip_special_tokens=True))

The output looks like this:

{"problems": [{"type": "wind_slab", "danger_level": 2, "danger_modifier": null,
  "aspects": ["N", "NE", "E", "NW"], "elevation_lower": 2200, "elevation_upper": null}]}

Problem types: new_snow, wind_slab, persistent_weak_layers, wet_snow, gliding_snow, no_distinct_avalanche_problem.

Training

  • Data: 1,000 bulletins from winters 23/24 and 24/25, mixed languages. The labels are the structured fields the SLF forecasters publish with each bulletin, so no hand labelling was needed.
  • LoRA: r 16, alpha 32, dropout 0.05, on all attention and MLP projections.
  • Training: 3 epochs, AdamW, learning rate 2e-4, batch size 8, fp16 on one T4 (about 40 minutes). The loss covers only the answer, not the prompt. The loop is plain PyTorch, in finetune.py in the repo.

Limitations

  • Not accurate enough to rely on. Only about 1 in 10 predicted problems are right in every field.
  • The text often doesn't contain the label. Forecasters set aspects and elevations directly, and the text frequently doesn't state them, so the model's values for these are mostly educated guesses that match SLF's typical conventions.
  • Only tested on SLF bulletins. Other avalanche services, older archives or field reports may be worded differently.
  • One training run without a fixed seed. An earlier run with the same settings scored 0.604. The test intervals are about Β±0.03.

Data

Avalanche bulletins: WSL Institute for Snow and Avalanche Research SLF, licensed CC BY 4.0.

Downloads last month
25
Inference Providers NEW
This model isn't deployed by any Inference Provider. πŸ™‹ Ask for provider support

Model tree for jth00/qwen3-1.7b-avalanche-lora

Finetuned
Qwen/Qwen3-1.7B
Adapter
(1,134)
this model