| { |
| "architectures": [ |
| "Qwen2ForCausalLM" |
| ], |
| "attention_dropout": 0.0, |
| "bos_token_id": 151643, |
| "eos_token_id": 151643, |
| "hidden_act": "silu", |
| "hidden_size": 1536, |
| "initializer_range": 0.02, |
| "intermediate_size": 8960, |
| "max_position_embeddings": 32768, |
| "max_window_layers": 28, |
| "model_type": "qwen2", |
| "num_attention_heads": 12, |
| "num_hidden_layers": 28, |
| "num_key_value_heads": 2, |
| "quantization_config": { |
| "bits": 4, |
| "checkpoint_format": "gptq", |
| "damp_percent": 0.1, |
| "dataset": [ |
| "### Instruction:\nYou are a code completion assistant and your task is to analyze user edits and then rewrite an excerpt that the user provides, suggesting the appropriate edits within the excerpt, taking into account the cursor location.\n\n### User Edits:\n\nUser edited \"models/customer.rb\":\n\n```diff\n@@ -2,5 +2,5 @@\n class Customer\n def initialize\n- @name = name\n+ @name = name.capitalize\n @email = email\n @phone = phone\n```\n\n### User Excerpt:\n\n```models/customer.rb\n def initialize\n<|editable_region_start|>\n @name = name.capitalize<|user_cursor_is_here|>\n @email = email\n @phone = phone\n @address = address\n end\n\n def to_s\n @name\n end\n\n<|editable_region_end|>\n private\n\n def validate_email\n @email.include?('@')\n```\n\n### Response:\n\n<|editable_region_start|>\n @name = name.capitalize\n @email = email.capitalize\n @phone = phone.capitalize\n @address = address.capitalize\n end\n\n def to_s\n @name\n end\n\n<|editable_region_end|>\n private\n\n def validate_email\n @email.include?('@')\n```\n<|endoftext|>", |
| "### Instruction:\nYou are a code completion assistant and your task is to analyze user edits and then rewrite an excerpt that the user provides, suggesting the appropriate edits within the excerpt, taking into account the cursor location.\n\n### User Edits:\n\nUser edited \"src/components/UserProfile.tsx\":\n\n```diff\n@@ -15,3 +15,3 @@\ninterface UserProfileProps {\n- name: string;\n+ name: string | undefined;\n email: string\n```\n\n### User Excerpt:\n\n```src/components/UserProfile.tsx\ninterface UserProfileProps {\n<|editable_region_start|>\n name: string | undefined<|user_cursor_is_here|>;\n email: string;\n avatar: string;\n age: number;\n<|editable_region_end|>\n}\n\nconst UserProfile: React.FC<UserProfileProps> = ({ name, email, avatar, age }) => {\n const handleClick = () => {\n console.log(name);\n };\n```\n\n### Response:\n\n<|editable_region_start|>\n name: string | undefined;\n email: string | undefined;\n avatar: string | undefined;\n age: number | undefined;\n<|editable_region_end|>\n}\n\nconst UserProfile: React.FC<UserProfileProps> = ({ name, email, avatar, age }) => {\n const handleClick = () => {\n console.log(name);\n };\n```\n<|endoftext|>", |
| "### Instruction:\nYou are a code completion assistant and your task is to analyze user edits and then rewrite an excerpt that the user provides, suggesting the appropriate edits within the excerpt, taking into account the cursor location.\n\n### User Edits:\n\nUser edited \"internal/parser/ast.py\":\n\n```diff\n@@ -102,3 +102,3 @@\nclass BinaryExpr:\n- def __init__(self, left, operator, right):\n+ def __init__(self, left: Expression, operator: Token, right: Expression):\n self.left = left\n```\n\n### User Excerpt:\n\n```internal/parser/ast.py\nclass BinaryExpr:\n<|editable_region_start|>\n def __init__(self, left: Expression, operator: Token, right: Expression<|user_cursor_is_here|>):\n self.left = left\n self.operator = operator\n self.right = right\n\nclass UnaryExpr:\n def __init__(self, operator, right):\n self.operator = operator\n<|editable_region_end|>\n self.right = right\n\n def accept(self, visitor):\n return visitor.visit_unary_expr(self)\n```\n\n### Response:\n\n<|editable_region_start|>\n def __init__(self, left: Expression, operator: Token, right: Expression):\n self.left = left\n self.operator = operator\n self.right = right\n\nclass UnaryExpr:\n def __init__(self, operator: Token, right: Expression):\n self.operator = operator\n<|editable_region_end|>\n self.right = right\n\n def accept(self, visitor):\n return visitor.visit_unary_expr(self)\n```\n<|endoftext|>", |
| "### Instruction:\nYou are a code completion assistant and your task is to analyze user edits and then rewrite an excerpt that the user provides, suggesting the appropriate edits within the excerpt, taking into account the cursor location.\n\n### User Edits:\n\nUser edited \"pkg/database/models.rs\":\n\n```diff\n@@ -88,3 +88,3 @@\n struct User {\n- id: i32,\n+ pub id: i32,\n username: String,\n```\n\n### User Excerpt:\n\n```pkg/database/models.rs\n struct User {\n<|editable_region_start|>\n pub <|user_cursor_is_here|>id: i32,\n username: String,\n email: String,\n created_at: DateTime<Utc>,\n updated_at: DateTime<Utc>,\n<|editable_region_end|>\n }\n\n impl User {\n pub fn new() -> Self {\n```\n\n### Response:\n\n<|editable_region_start|>\n pub id: i32,\n pub username: String,\n pub email: String,\n pub created_at: DateTime<Utc>,\n pub updated_at: DateTime<Utc>,\n<|editable_region_end|>\n }\n\n impl User {\n pub fn new() -> Self {\n```\n<|endoftext|>", |
| "### Instruction:\nYou are a code completion assistant and your task is to analyze user edits and then rewrite an excerpt that the user provides, suggesting the appropriate edits within the excerpt, taking into account the cursor location.\n\n### User Edits:\n\nUser edited \"src/compiler/symbol_table.cpp\":\n\n```diff\n@@ -156,3 +156,3 @@\n class LocalVariable {\n- int scope;\n+ int scope = 0;\n std::string name;\n```\n\n### User Excerpt:\n\n```src/compiler/symbol_table.cpp\n class LocalVariable {\n<|editable_region_start|>\n int scope = 0<|user_cursor_is_here|>;\n std::string name;\n Type type;\n bool isConst;\n bool isUsed;\n<|editable_region_end|>\n\n LocalVariable(\n```\n\n### Response:\n\n<|editable_region_start|>\n int scope = 0;\n std::string name = \"\";\n Type type = Type::VOID;\n bool isConst = false;\n bool isUsed = false;\n<|editable_region_end|>\n\n LocalVariable(\n```\n<|endoftext|>" |
| ], |
| "desc_act": false, |
| "group_size": 128, |
| "meta": { |
| "quantizer": [ |
| "optimum:2.0.0", |
| "auto_gptq:0.7.1" |
| ] |
| }, |
| "modules_in_block_to_quantize": null, |
| "quant_method": "gptq", |
| "sym": true, |
| "true_sequential": true |
| }, |
| "rms_norm_eps": 1e-06, |
| "rope_scaling": null, |
| "rope_theta": 1000000.0, |
| "sliding_window": 32768, |
| "tie_word_embeddings": true, |
| "torch_dtype": "float16", |
| "transformers_version": "4.52.4", |
| "use_cache": true, |
| "use_sliding_window": false, |
| "vocab_size": 151936 |
| } |
|
|