File size: 3,423 Bytes
7b31645
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
---
language:
- en
license: mit
library_name: transformers
pipeline_tag: text-generation
tags:
- fableforge
- agent
- code-generation
- tool-use
- reasoning
- base
base_model: meta-llama/Llama-2-7b-chat-hf
---

# FableForge

The base unified agent model - a 7B parameter model fine-tuned for agent tasks including planning, tool use, code generation, and self-correction. The foundation model for the FableForge ecosystem.

## Quick Start

```python
from transformers import AutoModelForCausalLM, AutoTokenizer

model_name = "fableforge-ai/FableForge"
tokenizer = AutoTokenizer.from_pretrained(model_name)
model = AutoModelForCausalLM.from_pretrained(model_name, device_map="auto")

prompt = """You are an AI agent. Complete the following task:

Task: Write a Python function to calculate the Fibonacci sequence.

Reasoning:"""

inputs = tokenizer(prompt, return_tensors="pt").to(model.device)
outputs = model.generate(**inputs, max_new_tokens=512, temperature=0.6, top_p=0.9)
print(tokenizer.decode(outputs[0], skip_special_tokens=True))
```

## Use Cases

- General-purpose agent tasks
- Planning and decomposition
- Code generation with self-verification
- Integration with FableForge runtime and tools

### Integration with FableForge Ecosystem

```python
from fableforge_agent_runtime import AgentRuntime
from fableforge_agent_skills import SkillLibrary

runtime = AgentRuntime(
    model="fableforge-ai/FableForge",
    skills=SkillLibrary.all(),
    verification=True
)

result = runtime.run("Deploy a web server on AWS")
print(result.output)
print(result.verification_score)
```

## Ecosystem Integration

Part of the **FableForge Agent Ecosystem** - 21 open-source projects for building, testing, and deploying AI agents.

| Package | Install | Purpose |
|---------|---------|---------|
| `fableforge` | `pip install fableforge` | Unified CLI |
| `fableforge-anvil-agent` | `pip install fableforge-anvil-agent` | Self-verified coding agent |
| `fableforge-agent-swarm` | `pip install fableforge-agent-swarm` | Multi-agent orchestration |
| `fableforge-agent-runtime` | `pip install fableforge-agent-runtime` | Production agent runtime |
| `fableforge-agent-skills` | `pip install fableforge-agent-skills` | Skill library |
| `verifyloop` | `pip install verifyloop` | Verification loops |
| `reason-critic` | `pip install reason-critic` | Reasoning assessment |

## Model Details

| Attribute | Value |
|-----------|-------|
| Architecture | LlamaForCausalLM |
| Parameters | 7B |
| Hidden Size | 4096 |
| Layers | 32 |
| Attention Heads | 32 |
| KV Heads | 32 |
| Max Context | 4096 |
| Training Data | Fable5 agent traces + curated reasoning datasets |
| License | MIT |

## Limitations

- May generate incorrect code -- always use with verifyloop for critical tasks
- Trained primarily on English data; multilingual performance is limited
- Can hallucinate API signatures or tool parameters
- Not suitable for medical, legal, or financial advice without human review

## Citation

```bibtex
@misc{fableforge2024,
  title={FableForge: Agent Orchestration via Fine-Tuned Language Models},
  author={FableForge Team},
  year={2024},
  url={https://huggingface.co/fableforge-ai/FableForge}
}
```

## License

MIT License - see [LICENSE](LICENSE) for details.

---

Built with hammer by the [FableForge](https://github.com/KingLabsA) team. Part of the [FableForge ecosystem](https://kinglabsa.github.io/fableforge/).