devjas1 commited on
Commit
fadc4bc
·
1 Parent(s): cdd329f

(TESTS): add initial test for embeddinggemma-300m model encoding

Browse files
Files changed (5) hide show
  1. .gitattributes +2 -0
  2. README.md +12 -1
  3. index.html +22 -0
  4. style.css +28 -0
  5. tests/test_gemma.py +5 -0
.gitattributes ADDED
@@ -0,0 +1,2 @@
 
 
 
1
+ *.gguf filter=lfs diff=lfs merge=lfs -text
2
+ C:/Users/xJB6x/Projects/CodeMind/models/embeddinggemma-300m/* filter=lfs diff=lfs merge=lfs -text
README.md CHANGED
@@ -1,4 +1,15 @@
1
- # CodeMind: Local AI Development Assistant
 
 
 
 
 
 
 
 
 
 
 
2
 
3
  CodeMind is an AI-powered development assistant that runs entirely on your local machine. It helps you understand your codebase through semantic search and generates meaningful commit messages using locally hosted language models, ensuring complete privacy and no cloud dependencies.
4
 
 
1
+ ---
2
+ title: CodeMind
3
+ emoji: 🏆
4
+ colorFrom: purple
5
+ colorTo: indigo
6
+ sdk: static
7
+ pinned: false
8
+ license: apache-2.0
9
+ short_description: AI-powered development assistant CLI Tool
10
+ ---
11
+
12
+ ## CodeMind: Local AI Development Assistant
13
 
14
  CodeMind is an AI-powered development assistant that runs entirely on your local machine. It helps you understand your codebase through semantic search and generates meaningful commit messages using locally hosted language models, ensuring complete privacy and no cloud dependencies.
15
 
index.html ADDED
@@ -0,0 +1,22 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <!doctype html>
2
+ <html lang="en">
3
+
4
+ <head>
5
+ <meta charset="utf-8" />
6
+ <meta name="viewport" content="width=device-width" />
7
+ <title>My static Space</title>
8
+ <link rel="stylesheet" href="style.css" />
9
+ </head>
10
+
11
+ <body>
12
+ <div class="card">
13
+ <h1>Welcome to your static Space!</h1>
14
+ <p>You can modify this app directly by editing <i>index.html</i> in the Files and versions tab.</p>
15
+ <p>
16
+ Also don't forget to check the
17
+ <a href="https://huggingface.co/docs/hub/spaces" target="_blank">Spaces documentation</a>.
18
+ </p>
19
+ </div>
20
+ </body>
21
+
22
+ </html>
style.css ADDED
@@ -0,0 +1,28 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ body {
2
+ padding: 2rem;
3
+ font-family: -apple-system, BlinkMacSystemFont, "Arial", sans-serif;
4
+ }
5
+
6
+ h1 {
7
+ font-size: 16px;
8
+ margin-top: 0;
9
+ }
10
+
11
+ p {
12
+ color: rgb(107, 114, 128);
13
+ font-size: 15px;
14
+ margin-bottom: 10px;
15
+ margin-top: 5px;
16
+ }
17
+
18
+ .card {
19
+ max-width: 620px;
20
+ margin: 0 auto;
21
+ padding: 16px;
22
+ border: 1px solid lightgray;
23
+ border-radius: 16px;
24
+ }
25
+
26
+ .card p:last-child {
27
+ margin-bottom: 0;
28
+ }
tests/test_gemma.py ADDED
@@ -0,0 +1,5 @@
 
 
 
 
 
 
1
+ from sentence_transformers import SentenceTransformer
2
+
3
+ model = SentenceTransformer("./models/embeddinggemma-300m")
4
+ embedding = model.encode("This is a test string.")
5
+ print(embedding.shape)