Views
No views yet
| Name | Quant method | Size |
|---|---|---|
| FastApply-7B-v1.0.Q2_K.gguf | Q2_K | 2.81GB |
| FastApply-7B-v1.0.Q3_K_S.gguf | Q3_K_S | 3.25GB |
| FastApply-7B-v1.0.Q3_K.gguf | Q3_K | 3.55GB |
| FastApply-7B-v1.0.Q3_K_M.gguf | Q3_K_M | 3.55GB |
| FastApply-7B-v1.0.Q3_K_L.gguf | Q3_K_L | 3.81GB |
| FastApply-7B-v1.0.IQ4_XS.gguf | IQ4_XS | 3.96GB |
| FastApply-7B-v1.0.Q4_0.gguf | Q4_0 | 4.13GB |
| FastApply-7B-v1.0.IQ4_NL.gguf | IQ4_NL | 4.16GB |
| FastApply-7B-v1.0.Q4_K_S.gguf | Q4_K_S | 4.15GB |
| FastApply-7B-v1.0.Q4_K.gguf | Q4_K | 4.36GB |
| FastApply-7B-v1.0.Q4_K_M.gguf | Q4_K_M | 4.36GB |
| FastApply-7B-v1.0.Q4_1.gguf | Q4_1 | 4.54GB |
| FastApply-7B-v1.0.Q5_0.gguf | Q5_0 | 4.95GB |
| FastApply-7B-v1.0.Q5_K_S.gguf | Q5_K_S | 4.95GB |
| FastApply-7B-v1.0.Q5_K.gguf | Q5_K | 5.07GB |
| FastApply-7B-v1.0.Q5_K_M.gguf | Q5_K_M | 5.07GB |
| FastApply-7B-v1.0.Q5_1.gguf | Q5_1 | 5.36GB |
| FastApply-7B-v1.0.Q6_K.gguf | Q6_K | 5.82GB |
| FastApply-7B-v1.0.Q8_0.gguf | Q8_0 | 7.54GB |
<|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<updated-code>[Full-complete updated file]</updated-code>1from transformers import AutoModelForCausalLM, AutoTokenizer
2
3model = AutoModelForCausalLM.from_pretrained("Kortix/FastApply-7B-v1.0")
4tokenizer = AutoTokenizer.from_pretrained("Kortix/FastApply-7B-v1.0")
5
6# Prepare your input following the prompt structure mentioned above
7input_text = """<|im_start|>system
8You are a coding assistant that helps merge code updates, ensuring every modification is fully integrated.<|im_end|>
9<|im_start|>user
10Merge all changes from the <update> snippet into the <code> below.
11- Preserve the code's structure, order, comments, and indentation exactly.
12- Output only the updated code, enclosed within <updated-code> and </updated-code> tags.
13- Do not include any additional text, explanations, placeholders, ellipses, or code fences.
14
15<code>{original_code}</code>
16
17<update>{update_snippet}</update>
18
19Provide the complete updated code.<|im_end|>
20<|im_start|>assistant
21"""
22
23input_text = input_text.format(
24 original_code=original_code,
25 update_snippet=update_snippet,
26).strip()
27
28# Generate the response
29input_ids = tokenizer.encode(input_text, return_tensors="pt")
30output = model.generate(input_ids, max_length=8192,)
31
32response = tokenizer.decode(output[0][len(input_ids[0]):])
33print(response)
34
35# Extract the updated code from the response
36updated_code = response.split("<updated-code>")[1].split("</updated-code>")[0]