Instructions to use QuantFactory/FastApply-7B-v1.0-GGUF with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use QuantFactory/FastApply-7B-v1.0-GGUF with Transformers:
# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("QuantFactory/FastApply-7B-v1.0-GGUF", dtype="auto") - llama-cpp-python
How to use QuantFactory/FastApply-7B-v1.0-GGUF with llama-cpp-python:
# !pip install llama-cpp-python from llama_cpp import Llama llm = Llama.from_pretrained( repo_id="QuantFactory/FastApply-7B-v1.0-GGUF", filename="FastApply-7B-v1.0.Q2_K.gguf", )
llm.create_chat_completion( messages = "No input example has been defined for this model task." )
- Notebooks
- Google Colab
- Kaggle
- Local Apps
- llama.cpp
How to use QuantFactory/FastApply-7B-v1.0-GGUF with llama.cpp:
Install from brew
brew install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama-server -hf QuantFactory/FastApply-7B-v1.0-GGUF:Q4_K_M # Run inference directly in the terminal: llama-cli -hf QuantFactory/FastApply-7B-v1.0-GGUF:Q4_K_M
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama-server -hf QuantFactory/FastApply-7B-v1.0-GGUF:Q4_K_M # Run inference directly in the terminal: llama-cli -hf QuantFactory/FastApply-7B-v1.0-GGUF: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 QuantFactory/FastApply-7B-v1.0-GGUF:Q4_K_M # Run inference directly in the terminal: ./llama-cli -hf QuantFactory/FastApply-7B-v1.0-GGUF: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 QuantFactory/FastApply-7B-v1.0-GGUF:Q4_K_M # Run inference directly in the terminal: ./build/bin/llama-cli -hf QuantFactory/FastApply-7B-v1.0-GGUF:Q4_K_M
Use Docker
docker model run hf.co/QuantFactory/FastApply-7B-v1.0-GGUF:Q4_K_M
- LM Studio
- Jan
- Ollama
How to use QuantFactory/FastApply-7B-v1.0-GGUF with Ollama:
ollama run hf.co/QuantFactory/FastApply-7B-v1.0-GGUF:Q4_K_M
- Unsloth Studio new
How to use QuantFactory/FastApply-7B-v1.0-GGUF with Unsloth Studio:
Install Unsloth Studio (macOS, Linux, WSL)
curl -fsSL https://unsloth.ai/install.sh | sh # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for QuantFactory/FastApply-7B-v1.0-GGUF to start chatting
Install Unsloth Studio (Windows)
irm https://unsloth.ai/install.ps1 | iex # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for QuantFactory/FastApply-7B-v1.0-GGUF to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for QuantFactory/FastApply-7B-v1.0-GGUF to start chatting
- Docker Model Runner
How to use QuantFactory/FastApply-7B-v1.0-GGUF with Docker Model Runner:
docker model run hf.co/QuantFactory/FastApply-7B-v1.0-GGUF:Q4_K_M
- Lemonade
How to use QuantFactory/FastApply-7B-v1.0-GGUF with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull QuantFactory/FastApply-7B-v1.0-GGUF:Q4_K_M
Run and chat with the model
lemonade run user.FastApply-7B-v1.0-GGUF-Q4_K_M
List all available models
lemonade list
QuantFactory/FastApply-7B-v1.0-GGUF
This is quantized version of Kortix/FastApply-7B-v1.0 created using llama.cpp
Original Model Card
FastApply-7B-v1.0
Github: kortix-ai/fast-apply
Dataset: Kortix/FastApply-dataset-v1.0
Try it now on ๐ Google Colab
Model Details
Basic Information
- Developed by: Kortix
- License: apache-2.0
- Finetuned from model: unsloth/Qwen2.5-Coder-7B-Instruct-bnb-4bit
Model Description
FastApply-7B-v1.0 is a 7B model designed for instant code application, producing full file edits to power SoftGen AI.
It is part of the Fast Apply pipeline for data generation and fine-tuning Qwen2.5 Coder models.
The model achieves high throughput when deployed on fast providers like Fireworks while maintaining high edit accuracy, with a speed of approximately 150 tokens/second.
Intended Use
FastApply-7B-v1.0 is intended for use in AI-powered code editors and tools that require fast, accurate code modifications. It is particularly well-suited for:
- Instant code application tasks
- Full file edits
- Integration with AI-powered code editors like Aider and PearAI
- Local tools to reduce the cost of frontier model output
Inference template
FastApply-7B-v1.0 is based on the Qwen2.5 Coder architecture and is fine-tuned for code editing tasks. It uses a specific prompt structure for inference:
<|im_start|>system
You are a coding assistant that helps merge code updates, ensuring every modification is fully integrated.<|im_end|>
<|im_start|>user
Merge all changes from the <update> snippet into the <code> below.
- Preserve the code's structure, order, comments, and indentation exactly.
- Output only the updated code, enclosed within <updated-code> and </updated-code> tags.
- Do not include any additional text, explanations, placeholders, ellipses, or code fences.
<code>{original_code}</code>
<update>{update_snippet}</update>
Provide the complete updated code.<|im_end|>
<|im_start|>assistant
The model's output is structured as:
<updated-code>[Full-complete updated file]</updated-code>
Additional Information
For more details on the Fast Apply pipeline, data generation process, and deployment instructions, please refer to the GitHub repository.
How to Use
To use the model, you can load it using the Hugging Face Transformers library:
from transformers import AutoModelForCausalLM, AutoTokenizer
model = AutoModelForCausalLM.from_pretrained("Kortix/FastApply-7B-v1.0")
tokenizer = AutoTokenizer.from_pretrained("Kortix/FastApply-7B-v1.0")
# Prepare your input following the prompt structure mentioned above
input_text = """<|im_start|>system
You are a coding assistant that helps merge code updates, ensuring every modification is fully integrated.<|im_end|>
<|im_start|>user
Merge all changes from the <update> snippet into the <code> below.
- Preserve the code's structure, order, comments, and indentation exactly.
- Output only the updated code, enclosed within <updated-code> and </updated-code> tags.
- Do not include any additional text, explanations, placeholders, ellipses, or code fences.
<code>{original_code}</code>
<update>{update_snippet}</update>
Provide the complete updated code.<|im_end|>
<|im_start|>assistant
"""
input_text = input_text.format(
original_code=original_code,
update_snippet=update_snippet,
).strip()
# Generate the response
input_ids = tokenizer.encode(input_text, return_tensors="pt")
output = model.generate(input_ids, max_length=8192,)
response = tokenizer.decode(output[0][len(input_ids[0]):])
print(response)
# Extract the updated code from the response
updated_code = response.split("<updated-code>")[1].split("</updated-code>")[0]
Evaluation:
- Downloads last month
- 73
2-bit
3-bit
4-bit
5-bit
6-bit
8-bit
