LE Quoc Dat commited on
Commit
5b78f1f
1 Parent(s): c289407

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +10 -4
README.md CHANGED
@@ -48,6 +48,8 @@ FastApply-1.5B-v1.0 is intended for use in AI-powered code editors and tools tha
48
  FastApply-1.5B-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:
49
 
50
  ```
 
 
51
  <|im_start|>user
52
  Merge all changes from the <update> snippet into the <code> below.
53
  - Preserve the code's structure, order, comments, and indentation exactly.
@@ -58,13 +60,13 @@ Merge all changes from the <update> snippet into the <code> below.
58
 
59
  <update>{update_snippet}</update>
60
 
61
- Provide the complete updated code."""
 
62
  ```
63
 
64
  The model's output is structured as:
65
 
66
  ```
67
- <|im_start|>assistant
68
  <updated-code>[Full-complete updated file]</updated-code>
69
  ```
70
 
@@ -83,7 +85,9 @@ model = AutoModelForCausalLM.from_pretrained("Kortix/FastApply-1.5B-v1.0")
83
  tokenizer = AutoTokenizer.from_pretrained("Kortix/FastApply-1.5B-v1.0")
84
 
85
  # Prepare your input following the prompt structure mentioned above
86
- input_text = """<|im_start|>user
 
 
87
  Merge all changes from the <update> snippet into the <code> below.
88
  - Preserve the code's structure, order, comments, and indentation exactly.
89
  - Output only the updated code, enclosed within <updated-code> and </updated-code> tags.
@@ -93,7 +97,9 @@ Merge all changes from the <update> snippet into the <code> below.
93
 
94
  <update>{update_snippet}</update>
95
 
96
- Provide the complete updated code."""
 
 
97
 
98
  input_text = input_text.format(
99
  original_code=original_code,
 
48
  FastApply-1.5B-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:
49
 
50
  ```
51
+ <|im_start|>system
52
+ You are a coding assistant that helps merge code updates, ensuring every modification is fully integrated.<|im_end|>
53
  <|im_start|>user
54
  Merge all changes from the <update> snippet into the <code> below.
55
  - Preserve the code's structure, order, comments, and indentation exactly.
 
60
 
61
  <update>{update_snippet}</update>
62
 
63
+ Provide the complete updated code.<|im_end|>
64
+ <|im_start|>assistant
65
  ```
66
 
67
  The model's output is structured as:
68
 
69
  ```
 
70
  <updated-code>[Full-complete updated file]</updated-code>
71
  ```
72
 
 
85
  tokenizer = AutoTokenizer.from_pretrained("Kortix/FastApply-1.5B-v1.0")
86
 
87
  # Prepare your input following the prompt structure mentioned above
88
+ input_text = """<|im_start|>system
89
+ You are a coding assistant that helps merge code updates, ensuring every modification is fully integrated.<|im_end|>
90
+ <|im_start|>user
91
  Merge all changes from the <update> snippet into the <code> below.
92
  - Preserve the code's structure, order, comments, and indentation exactly.
93
  - Output only the updated code, enclosed within <updated-code> and </updated-code> tags.
 
97
 
98
  <update>{update_snippet}</update>
99
 
100
+ Provide the complete updated code.<|im_end|>
101
+ <|im_start|>assistant
102
+ """
103
 
104
  input_text = input_text.format(
105
  original_code=original_code,