Downloads · 30 days
13
18% of all-time downloads
beaupi/zeta-2-oQ8
zeta-2-oQ8 is a text generation model from beaupi. Use it when you need the model to write or continue text. It is set up for transformers. The card lists the license as apache-2.0.
Zeta 2 is a code edit prediction (also known as next-edit suggestion) model finetuned from ByteDance-Seed/Seed-Coder-8B-Base.
Downloads · 30 days
13
18% of all-time downloads
All-time downloads
73
Public
Parameters
8.3B
8.8 GB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors8.8 GB · 100%
How the weights are stored.
U322.1B · 89%
From the Hugging Face model README
Zeta 2 is a code edit prediction (also known as next-edit suggestion) model finetuned from ByteDance-Seed/Seed-Coder-8B-Base.
Given code context, edits history and an editable region around the cursor, it predicts the rewritten content for that region.
The model uses a SPM (suffix-prefix-middle) style prompt with git-merge-style markers for the editable region:
Here is a minimal example:
<[fim-suffix]>
code after editable region
<[fim-prefix]><filename>related/file.py
related file content
<filename>edit_history
--- a/some_file.py
+++ b/some_file.py
-old
+new
<filename>path/to/target_file.py
code before editable region
<<<<<<< CURRENT
code that
needs to<|user_cursor|>
be rewritten
=======
<[fim-middle]>
Expected output (should be generated by the model, without backticks):
revised content for
the editable region
>>>>>>> UPDATED
Here is a real-world example: