huggingface.co
Total runs: 24
24-hour runs: 0
7-day runs: -15
30-day runs: -76
Model's Last Updated: May 20 2026
text-generation

Introduction of foggen

Model Details of foggen

FogGen: Self-Aware Edge–Cloud LLM Router

A 0.6B parameter edge LLM trained to emit a calibrated verbalized confidence score before its answer, enabling efficient edge–cloud routing without an external router.

FogGen overview: (a) self-aware routing at inference, (b) self-evolving training loop

FogGen is a small, self-aware edge model that knows when to answer locally and when to defer to a stronger cloud model. At inference (figure (a)) it emits a confidence score then an answer in one forward pass; if confidence c ≥ τ the local answer is returned, otherwise the query is routed to the cloud. Training (figure (b)) is a self-evolving loop: each round, the current checkpoint self-samples N=8 generations per question to derive confidence buckets, then SFTs on (question, confidence, answer) triples.

The released checkpoint is the endpoint ( R14 ) of a 14-round chain trained across seven domains: finance, science, coding, law, math, Kazakh culture, medical.

Quick demo
from transformers import AutoTokenizer, AutoModelForCausalLM

model = AutoModelForCausalLM.from_pretrained("issai/foggen", torch_dtype="bfloat16", device_map="auto")
tokenizer = AutoTokenizer.from_pretrained("issai/foggen")

SYSTEM = """You are a self-aware multiple-choice assistant.

Rules:
- Do not output <think> tags.
- First, assess your confidence in solving this question.
- Then give your answer.
- Output format:
  Confidence: <0.0|0.25|0.5|0.75|1.0>
  Final answer: <OPTION_LETTER>"""

question = """A firm reports $400M in total liabilities and $600M in shareholders' equity.
What is the firm's debt-to-equity ratio?

A. 0.67
B. 1.00
C. 1.50
D. 2.00"""

messages = [
    {"role": "system", "content": SYSTEM},
    {"role": "user", "content": question},
]
inputs = tokenizer.apply_chat_template(messages, return_tensors="pt", add_generation_prompt=True,
                                       enable_thinking=False).to(model.device)
outputs = model.generate(inputs, max_new_tokens=64, do_sample=False)
print(tokenizer.decode(outputs[0][inputs.shape[-1]:], skip_special_tokens=True))
# Expected:
#   Confidence: 1.0
#   Final answer: A
How routing works
import re

def route_query(model_output: str, tau: float = 0.5):
    """Parse FogGen output. Returns (action, confidence, answer).
    action is 'keep_local' if confidence >= tau, else 'route_to_cloud'."""
    conf_match = re.search(r"Confidence\s*:\s*([\d.]+)", model_output)
    ans_match  = re.search(r"Final\s+answer\s*:\s*([A-D])", model_output)
    if not conf_match: return "route_to_cloud", None, None
    confidence = float(conf_match.group(1))
    answer = ans_match.group(1) if ans_match else None
    return ("keep_local" if confidence >= tau else "route_to_cloud", confidence, answer)

At τ=0.5 on the trained domains, the model routes ~22% of queries to the cloud while achieving 67.8% mean system accuracy.

Model details
Base model Qwen/Qwen3-0.6B
Parameters 0.6 B
Training method LoRA SFT (rank=16, α=32, all-linear), bf16, 2 epochs/round
Rounds 14 sequential rounds (R0 → R14)
Training tokens ~1800 SFT rows × 14 rounds
Domains finance, science, coding, law, math, Kazakh culture, medical
Cloud teacher Qwen3-30B-A3B-Instruct-2507
Output format Confidence: <bucket>\nFinal answer: <letter>
Confidence buckets 5 discrete values: 0.0, 0.25, 0.5, 0.75, 1.0
License Apache 2.0 (inherited from base)
Performance

System accuracy at τ=0.5 on seven MCQ domains (full test sets, ~16,200 questions), measured against Random routing and a cloud-only baseline (Qwen3-30B-A3B-Instruct-2507):

Domain Cloud only R14 raw Random @ τ=0.5 FogGen @ τ=0.5 Cloud routed
Finance 69.5% 57.0% 59.9% 65.8% 23.3%
Science 72.7% 56.9% 60.1% 64.5% 20.4%
Coding 74.2% 61.8% 64.2% 69.5% 19.7%
Law 70.7% 55.3% 58.4% 62.4% 20.1%
Math 60.1% 42.2% 50.8% 58.1% 47.7%
Kazakh culture 95.8% 91.3% 91.4% 91.9% 1.0%
Medical 74.0% 52.6% 57.1% 62.2% 20.9%
Mean 73.9% 59.6% 63.1% 67.8% 21.9%

Mean lift over Random at τ=0.5: +4.6 (system accuracy minus random-routing accuracy, averaged across the seven domains).

Baseline comparison

Direct comparison against AutoMix (Aggarwal et al., 2024) on the same R14 checkpoint, same evaluation sets:

Method SysAcc Cloud routed Δ over Random Fwd passes / query
AutoMix 67.2% 29.0% +3.7 9 (1 answer + 8 verify)
FogGen (ours) 67.8% 21.9% +4.6 1

FogGen achieves higher accuracy at lower cloud cost and 9× lower per-query inference cost.

Open-ended generalization

The MCQ-trained chain transfers to open-ended task types zero-shot. Local accuracy and routing benefit at τ=0.5 on three held-out OE benchmarks:

Benchmark Format R14 raw R14 Δ@τ=0.5
SQuAD v1.1 extractive RC 81.0% +1.4
TruthfulQA gen adversarial factual 36.5% −0.7 (anti-calibrated)
GSM8K (CoT) math word-problems 52.0% +2.2

One additional round of OE training (R15, 1876 SFT rows) lifts local accuracy on these three benchmarks to 86.5% / 40.0% / 58.0% respectively; see issai/foggen-r15-oe .

Citation

Paper coming soon.

Acknowledgements

Thanks to the Qwen team at Alibaba for the base model and cloud teacher.

Runs of issai foggen on huggingface.co

24
Total runs
0
24-hour runs
2
3-day runs
-15
7-day runs
-76
30-day runs

More Information About foggen huggingface.co Model

foggen huggingface.co

foggen huggingface.co is an AI model on huggingface.co that provides foggen's model effect (), which can be used instantly with this issai foggen model. huggingface.co supports a free trial of the foggen model, and also provides paid use of the foggen. Support call foggen model through api, including Node.js, Python, http.

foggen huggingface.co Url

https://huggingface.co/issai/foggen

issai foggen online free

foggen huggingface.co is an online trial and call api platform, which integrates foggen's modeling effects, including api services, and provides a free online trial of foggen, you can try foggen online for free by clicking the link below.

issai foggen online free url in huggingface.co:

https://huggingface.co/issai/foggen

foggen install

foggen is an open source model from GitHub that offers a free installation service, and any user can find foggen on GitHub to install. At the same time, huggingface.co provides the effect of foggen install, users can directly use foggen installed effect in huggingface.co for debugging and trial. It also supports api for free installation.

foggen install url in huggingface.co:

https://huggingface.co/issai/foggen

Url of foggen

foggen huggingface.co Url

Provider of foggen huggingface.co

issai
ORGANIZATIONS

Other API from issai

huggingface.co

Total runs: 821
Run Growth: 694
Growth Rate: 84.94%
Updated:August 18 2026
huggingface.co

Total runs: 620
Run Growth: 361
Growth Rate: 58.23%
Updated:August 18 2026
huggingface.co

Total runs: 203
Run Growth: -19
Growth Rate: -9.36%
Updated:February 02 2024
huggingface.co

Total runs: 104
Run Growth: -56
Growth Rate: -57.14%
Updated:December 11 2025
huggingface.co

Total runs: 90
Run Growth: -243
Growth Rate: -243.00%
Updated:November 29 2023
huggingface.co

Total runs: 59
Run Growth: 47
Growth Rate: 79.66%
Updated:August 18 2026
huggingface.co

Total runs: 42
Run Growth: -242
Growth Rate: -576.19%
Updated:August 18 2026
huggingface.co

Total runs: 35
Run Growth: 27
Growth Rate: 77.14%
Updated:August 03 2026
huggingface.co

Total runs: 8
Run Growth: -1
Growth Rate: -12.50%
Updated:May 20 2026
huggingface.co

Total runs: 4
Run Growth: 0
Growth Rate: 0.00%
Updated:December 24 2024
huggingface.co

Total runs: 3
Run Growth: 0
Growth Rate: 0.00%
Updated:May 14 2026
huggingface.co

Total runs: 2
Run Growth: 0
Growth Rate: 0.00%
Updated:January 22 2025
huggingface.co

Total runs: 0
Run Growth: 0
Growth Rate: 0.00%
Updated:March 01 2026
huggingface.co

Total runs: 0
Run Growth: 0
Growth Rate: 0.00%
Updated:July 28 2026
huggingface.co

Total runs: 0
Run Growth: 0
Growth Rate: 0.00%
Updated:February 28 2025
huggingface.co

Total runs: 0
Run Growth: 0
Growth Rate: 0.00%
Updated:November 15 2024
huggingface.co

Total runs: 0
Run Growth: 0
Growth Rate: 0.00%
Updated:April 10 2026
huggingface.co

Total runs: 0
Run Growth: 0
Growth Rate: 0.00%
Updated:January 16 2025
huggingface.co

Total runs: 0
Run Growth: 0
Growth Rate: 0.00%
Updated:February 03 2025
huggingface.co

Total runs: 0
Run Growth: 0
Growth Rate: 0.00%
Updated:May 02 2025