aadya1762 commited on
Commit
6d99216
·
1 Parent(s): 827ddeb
Files changed (2) hide show
  1. gemmademo/_model.py +4 -4
  2. gemmademo/_prompts.py +2 -4
gemmademo/_model.py CHANGED
@@ -44,15 +44,15 @@ class LlamaCppGemmaModel:
44
  "description": "2B parameters, instruction-tuned",
45
  "type": "instruct",
46
  },
47
- "gemma-7b-it": {
48
- "model_path": "models/gemma-7b-it.gguf",
49
  "repo_id": "MaziyarPanahi/gemma-7b-GGUF", # update to the actual repo id
50
  "filename": "gemma-7b.Q4_K_M.gguf", # update to the actual filename
51
  "description": "7B parameters, instruction-tuned",
52
  "type": "instruct",
53
  },
54
- "gemma-7b": {
55
- "model_path": "models/gemma-7b.gguf",
56
  "repo_id": "rahuldshetty/gemma-7b-it-gguf-quantized", # repository for the GGUF model
57
  "filename": "gemma-7b-it-Q4_K_M.gguf", # updated filename for GGUF model
58
  "description": "7B parameters in GGUF format",
 
44
  "description": "2B parameters, instruction-tuned",
45
  "type": "instruct",
46
  },
47
+ "gemma-7b": {
48
+ "model_path": "models/gemma-7b.gguf",
49
  "repo_id": "MaziyarPanahi/gemma-7b-GGUF", # update to the actual repo id
50
  "filename": "gemma-7b.Q4_K_M.gguf", # update to the actual filename
51
  "description": "7B parameters, instruction-tuned",
52
  "type": "instruct",
53
  },
54
+ "gemma-7b-it": {
55
+ "model_path": "models/gemma-7b-it.gguf",
56
  "repo_id": "rahuldshetty/gemma-7b-it-gguf-quantized", # repository for the GGUF model
57
  "filename": "gemma-7b-it-Q4_K_M.gguf", # updated filename for GGUF model
58
  "description": "7B parameters in GGUF format",
gemmademo/_prompts.py CHANGED
@@ -36,8 +36,6 @@ class PromptManager:
36
  """
37
  Format user input for code completion task
38
  """
39
- prompt = f"""Complete the following code snippet with proper syntax and best practices:
40
- {user_input}
41
-
42
- Completed code:"""
43
  return prompt
 
36
  """
37
  Format user input for code completion task
38
  """
39
+ prompt = f"""Complete the following code snippet directly without explanations or extra text:
40
+ {user_input}"""
 
 
41
  return prompt