Instructions to use FLs-AI/FL-9B-0.2 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use FLs-AI/FL-9B-0.2 with llama.cpp:
Install (macOS, Linux)
curl -LsSf https://llama.app/install.sh | sh # Start a local OpenAI-compatible server with a web UI: llama serve -hf FLs-AI/FL-9B-0.2:Q4_K_M # Run inference directly in the terminal: llama cli -hf FLs-AI/FL-9B-0.2:Q4_K_M
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf FLs-AI/FL-9B-0.2:Q4_K_M # Run inference directly in the terminal: llama cli -hf FLs-AI/FL-9B-0.2:Q4_K_M
Use pre-built binary
# Download pre-built binary from: # https://github.com/ggerganov/llama.cpp/releases # Start a local OpenAI-compatible server with a web UI: ./llama-server -hf FLs-AI/FL-9B-0.2:Q4_K_M # Run inference directly in the terminal: ./llama-cli -hf FLs-AI/FL-9B-0.2:Q4_K_M
Build from source code
git clone https://github.com/ggerganov/llama.cpp.git cd llama.cpp cmake -B build cmake --build build -j --target llama-server llama-cli # Start a local OpenAI-compatible server with a web UI: ./build/bin/llama-server -hf FLs-AI/FL-9B-0.2:Q4_K_M # Run inference directly in the terminal: ./build/bin/llama-cli -hf FLs-AI/FL-9B-0.2:Q4_K_M
Use Docker
docker model run hf.co/FLs-AI/FL-9B-0.2:Q4_K_M
- LM Studio
- Jan
- vLLM
How to use FLs-AI/FL-9B-0.2 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "FLs-AI/FL-9B-0.2" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "FLs-AI/FL-9B-0.2", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/FLs-AI/FL-9B-0.2:Q4_K_M
- Ollama
How to use FLs-AI/FL-9B-0.2 with Ollama:
ollama run hf.co/FLs-AI/FL-9B-0.2:Q4_K_M
- Unsloth Desktop
- Pi
How to use FLs-AI/FL-9B-0.2 with Pi:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf FLs-AI/FL-9B-0.2:Q4_K_M
Configure the model in Pi
# Install Pi: npm install -g @earendil-works/pi-coding-agent # Add to ~/.pi/agent/models.json: { "providers": { "llama-cpp": { "baseUrl": "http://localhost:8080/v1", "api": "openai-completions", "apiKey": "none", "models": [ { "id": "FLs-AI/FL-9B-0.2:Q4_K_M" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Docker Model Runner
How to use FLs-AI/FL-9B-0.2 with Docker Model Runner:
docker model run hf.co/FLs-AI/FL-9B-0.2:Q4_K_M
- Lemonade
How to use FLs-AI/FL-9B-0.2 with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull FLs-AI/FL-9B-0.2:Q4_K_M
Run and chat with the model
lemonade run user.FL-9B-0.2-Q4_K_M
List all available models
lemonade list
- Hermes Agent
How to use FLs-AI/FL-9B-0.2 with Hermes Agent:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf FLs-AI/FL-9B-0.2:Q4_K_M
Configure Hermes
# Install Hermes: curl -fsSL https://hermes-agent.nousresearch.com/install.sh | bash hermes setup # Point Hermes at the local server: hermes config set model.provider custom hermes config set model.base_url http://127.0.0.1:8080/v1 hermes config set model.default FLs-AI/FL-9B-0.2:Q4_K_M
Run Hermes
hermes
- Atomic Chat
- OpenClaw
How to use FLs-AI/FL-9B-0.2 with OpenClaw:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf FLs-AI/FL-9B-0.2:Q4_K_M
Configure OpenClaw
# Install OpenClaw: npm install -g openclaw@latest # Register the local server and set it as the default model: openclaw onboard --non-interactive --mode local \ --auth-choice custom-api-key \ --custom-base-url http://127.0.0.1:8080/v1 \ --custom-model-id "FLs-AI/FL-9B-0.2:Q4_K_M" \ --custom-provider-id llama-cpp \ --custom-compatibility openai \ --custom-text-input \ --accept-risk \ --skip-health
Run OpenClaw
openclaw agent --local --agent main --message "Hello from Hugging Face"
FL-9B-0.2
FL-9B-0.2 is a fine-tune of Qwen3.5-9B focused on legacy mainframe code, primarily COBOL, with additional coverage of JCL, DB2 and embedded SQL. It is meant for teams working with COBOL codebases who want a local model that writes, completes and translates mainframe code. The base model keeps its hybrid layout (Gated DeltaNet linear-attention layers interleaved with full-attention layers) and native 262k context. Fine-tuning was done with QLoRA on a single GPU, so the release is a merged set of weights ready for vLLM, SGLang, Transformers, and llama.cpp.
Training
- Base: Qwen/Qwen3.5-9B
- Method: supervised fine-tuning, QLoRA (rank 256), merged back to bf16
- Hardware: one RTX 5090 (32 GB)
Benchmarks
Numbers below are for FL-9B-0.2. FL-9B-0.1 is the previous release.
| Benchmark | Metric | FL-9B-0.1 | FL-9B-0.2 |
|---|---|---|---|
| COBOLEval | pass@1 | 37.0% | 41.8% |
| MainframeBench | MCQ accuracy | 71.3% | 77.4% |
| MainframeBench | QA token F1 | 12.8% | 18.5% |
| MainframeBench | Summarization token F1 | 27.6% | 35.5% |
| CobolCodeBench | INSTRUCT compile rate | 47.8% | 67.4% |
| CobolCodeBench | COMPLETE compile rate | 32.6% | 41.3% |
| COBOL to Java | pass@1 | 80.4% | 54.5% |
Comparison with other models on COBOLEval
The scores for the other models come from the COBOL-Coder paper and the Skylar model card, so harness details differ and the numbers are indicative rather than a controlled head-to-head.
| Model | Params | Compile / CSR | pass@1 |
|---|---|---|---|
| GPT-4o | - | 41.8% | 16.4% |
| Skylar-980M-Cobol | 980M | 80.1% | 7.5% |
| COBOL-Coder-7B | 7B | 73.8% | 44.7% |
| COBOL-Coder-14B | 14B | 74.0% | 49.3% |
| FL-9B-0.2 | 9B | 90.6% | 41.8% |
| FL-9B-0.2 has the highest compile rate in this group and a pass@1 above GPT-4o and Skylar, close | |||
| to COBOL-Coder-7B. On COBOL to Java translation it trails the COBOL-Coder models (pass@1 54.5% | |||
| against roughly 82 to 84%), which is the main area for the next data pass. |
Usage
The model thinks by default, the same as base Qwen3.5. For code generation and the benchmark numbers above, thinking is turned off and generation is greedy.
vLLM
vllm serve FLs-AI/FL-9B-0.2 --port 8000 --max-model-len 8192 --reasoning-parser qwen3
Transformers
from transformers import AutoModelForCausalLM, AutoTokenizer
model_id = "FLs-AI/FL-9B-0.2"
tok = AutoTokenizer.from_pretrained(model_id)
model = AutoModelForCausalLM.from_pretrained(model_id, torch_dtype="bfloat16", device_map="auto")
messages = [{"role": "user", "content": "Write a COBOL program that reads a file and prints each record."}]
prompt = tok.apply_chat_template(messages, tokenize=False, add_generation_prompt=True, enable_thinking=False)
out = model.generate(**tok(prompt, return_tensors="pt").to(model.device), max_new_tokens=1024)
print(tok.decode(out[0], skip_special_tokens=True))
Recommended settings for COBOL
- Turn thinking off:
enable_thinking=False - Greedy decoding:
temperature=0 - Leave repetition penalty at 1.0. COBOL is a repetitive language by nature, and a penalty above 1.0 breaks otherwise valid, repetitive source.
Notes on GGUF
GGUF builds are published separately. Column layout matters when compiling generated COBOL:
code belongs in area B (column 8 onward), and a first line flush to column 1 will fail under
cobc -fformat=variable. The benchmark harness normalizes columns before compiling.
License
Apache 2.0, following the base model.
- Downloads last month
- -
2-bit
4-bit
5-bit
6-bit
8-bit
16-bit