Fyodor-Q3-8B-Instruct
is a high-fidelity instruction-tuned model designed for
Agentic Reasoning
and
Robust Code Generation
.
Unlike standard fine-tunes, Fyodor was trained using a "God Mode" LoRA configuration (Rank 128) on a curated curriculum of 60% Coding, 20% Instruction Following, and 20% Reasoning/Tool use. It excels at planning before coding, making it suitable for complex software engineering tasks.
from transformers import AutoTokenizer, AutoModelForCausalLM
import torch
# Load model and tokenizer
model_name = "Kiy-K/Fyodor-Q3-8B-Instruct"
tokenizer = AutoTokenizer.from_pretrained(model_name)
model = AutoModelForCausalLM.from_pretrained(
model_name,
torch_dtype=torch.bfloat16,
device_map="auto"
)
# Prepare prompt
prompt = """Write a Python function that implements binary search with detailed comments."""
messages = [
{"role": "system", "content": "You are Fyodor, an expert programming assistant. You write clean, efficient code with clear explanations."},
{"role": "user", "content": prompt}
]
# Generate
text = tokenizer.apply_chat_template(messages, tokenize=False, add_generation_prompt=True)
inputs = tokenizer(text, return_tensors="pt").to(model.device)
outputs = model.generate(
**inputs,
max_new_tokens=1024,
temperature=0.7,
top_p=0.9,
do_sample=True
)
response = tokenizer.decode(outputs[0], skip_special_tokens=True)
print(response)
Advanced Usage with Streaming
from transformers import TextIteratorStreamer
from threading import Thread
streamer = TextIteratorStreamer(tokenizer, skip_special_tokens=True)
generation_kwargs = dict(
inputs=inputs.input_ids,
streamer=streamer,
max_new_tokens=1024,
temperature=0.7,
top_p=0.9,
do_sample=True
)
thread = Thread(target=model.generate, kwargs=generation_kwargs)
thread.start()
print("Assistant: ", end="")
for new_text in streamer:
print(new_text, end="", flush=True)
print()
Function Calling Example
prompt = """I need to create a REST API endpoint that fetches user data. Available tools:- fetch_user(user_id: int) -> dict- validate_token(token: str) -> boolWrite the endpoint handler."""
messages = [
{"role": "system", "content": "You are an expert at API development and tool orchestration."},
{"role": "user", "content": prompt}
]
# Apply chat template and generate
text = tokenizer.apply_chat_template(messages, tokenize=False, add_generation_prompt=True)
inputs = tokenizer(text, return_tensors="pt").to(model.device)
outputs = model.generate(
**inputs,
max_new_tokens=1024,
temperature=0.7,
do_sample=True
)
response = tokenizer.decode(outputs[0], skip_special_tokens=True)
print(response)
Quantization (4-bit)
from transformers import BitsAndBytesConfig
quantization_config = BitsAndBytesConfig(
load_in_4bit=True,
bnb_4bit_compute_dtype=torch.bfloat16,
bnb_4bit_use_double_quant=True,
bnb_4bit_quant_type="nf4"
)
model = AutoModelForCausalLM.from_pretrained(
model_name,
quantization_config=quantization_config,
device_map="auto"
)
🎯 Key Capabilities
Multi-Language Proficiency
: Python, JavaScript, TypeScript, C++, Rust, Go, Java, and more
Agentic Reasoning
: Plans multi-step solutions before implementation
Function Calling
: Native understanding of tool use and API integration
Code Review
: Can analyze and critique existing code with constructive feedback
Documentation
: Generates comprehensive docstrings and comments
Debugging
: Identifies and fixes bugs with clear explanations
📊 Prompt Format
Fyodor uses the ChatML format from Qwen3:
<|im_start|>system
You are Fyodor, an expert programming assistant.<|im_end|>
<|im_start|>user
{your prompt here}<|im_end|>
<|im_start|>assistant
⚡ Performance Tips
Temperature
: Use 0.1-0.3 for precise code generation, 0.7-0.9 for creative solutions
Context
: Provide clear requirements and constraints upfront
System Prompt
: Customize the system message for domain-specific tasks
Max Tokens
: Allow 512-2048 tokens for complex implementations
Top-p
: Keep at 0.9 for balanced diversity and coherence
🔧 Hardware Requirements
Precision
VRAM (Inference)
VRAM (Training)
FP16/BF16
~16 GB
~24 GB
INT8
~8 GB
N/A
INT4
~4.5 GB
N/A
🏆 Official Benchmark Results
Fyodor v1 (1.5B) demonstrates
state-of-the-art efficiency
, significantly outperforming models with 5x the parameter count.
Model
Parameters
HumanEval (Pass@1)
MBPP (Pass@1)
Fyodor v1 (Ours)
8B
68.3%
🚀
57.2%
DeepSeek-Coder-Instruct
1.3B
64.0%
55.0%
StarCoder2
7B
35.4%
54.4%
Llama-2
7B
33.5%
45.0%
> Evaluated using BigCode Evaluation Harness (Greedy Decoding, T=0.2)
🤝 Contributing
Found a bug or have a suggestion? Open an issue or submit a PR!
📄 License
This model is released under the
Apache 2.0
license, inheriting from the Qwen3 base model.
🙏 Acknowledgments
Qwen Team
for the exceptional Qwen3 base model
Unsloth
for efficient training infrastructure
HuggingFace
for dataset hosting and model hub
📮 Citation
@misc{fyodor-q3-8b-instruct,
author = {Kiy-K},
title = {Fyodor-Q3-8B-Instruct: God Mode Agentic Coder},
year = {2025},
publisher = {HuggingFace},
howpublished = {\url{https://huggingface.co/Kiy-K/Fyodor-Q3-8B-Instruct}}
}
Made with ❤️ by Kiy-K | Powered by Qwen3
Runs of Kiy-K Fyodor-Q3-8B-Instruct on huggingface.co
55
Total runs
0
24-hour runs
-1
3-day runs
2
7-day runs
4
30-day runs
More Information About Fyodor-Q3-8B-Instruct huggingface.co Model
Fyodor-Q3-8B-Instruct huggingface.co is an AI model on huggingface.co that provides Fyodor-Q3-8B-Instruct's model effect (), which can be used instantly with this Kiy-K Fyodor-Q3-8B-Instruct model. huggingface.co supports a free trial of the Fyodor-Q3-8B-Instruct model, and also provides paid use of the Fyodor-Q3-8B-Instruct. Support call Fyodor-Q3-8B-Instruct model through api, including Node.js, Python, http.
Fyodor-Q3-8B-Instruct huggingface.co is an online trial and call api platform, which integrates Fyodor-Q3-8B-Instruct's modeling effects, including api services, and provides a free online trial of Fyodor-Q3-8B-Instruct, you can try Fyodor-Q3-8B-Instruct online for free by clicking the link below.
Kiy-K Fyodor-Q3-8B-Instruct online free url in huggingface.co:
Fyodor-Q3-8B-Instruct is an open source model from GitHub that offers a free installation service, and any user can find Fyodor-Q3-8B-Instruct on GitHub to install. At the same time, huggingface.co provides the effect of Fyodor-Q3-8B-Instruct install, users can directly use Fyodor-Q3-8B-Instruct installed effect in huggingface.co for debugging and trial. It also supports api for free installation.
Fyodor-Q3-8B-Instruct install url in huggingface.co: