Update README.md
Browse filesrevise the readme some typo
README.md
CHANGED
@@ -92,8 +92,6 @@ import numpy as np
|
|
92 |
from transformers import AutoModel
|
93 |
from sentence_transformers import SentenceTransformer
|
94 |
|
95 |
-
model = SentenceTransformer("datalama/kanana-nano-2.1b-embedding", device="cpu", trust_remote_code=True)
|
96 |
-
|
97 |
# For retrieval tasks
|
98 |
instruction = "Given a question, retrieve passages that answer the question"
|
99 |
queries = [
|
@@ -106,7 +104,7 @@ passages = [
|
|
106 |
"Below are the basic steps to becoming a radiologic technologist in Michigan:Earn a high school diploma. As with most careers in health care, a high school education is the first step to finding entry-level employment. Taking classes in math and science, such as anatomy, biology, chemistry, physiology, and physics, can help prepare students for their college studies and future careers.Earn an associate degree. Entry-level radiologic positions typically require at least an Associate of Applied Science. Before enrolling in one of these degree programs, students should make sure it has been properly accredited by the Joint Review Committee on Education in Radiologic Technology (JRCERT).Get licensed or certified in the state of Michigan.",
|
107 |
]
|
108 |
|
109 |
-
|
110 |
model_a = AutoModel.from_pretrained("kakaocorp/kanana-nano-2.1b-embedding",trust_remote_code=True,).to("cpu")
|
111 |
model_b = SentenceTransformer("datalama/kanana-nano-2.1b-embedding", device="cpu", trust_remote_code=True)
|
112 |
|
|
|
92 |
from transformers import AutoModel
|
93 |
from sentence_transformers import SentenceTransformer
|
94 |
|
|
|
|
|
95 |
# For retrieval tasks
|
96 |
instruction = "Given a question, retrieve passages that answer the question"
|
97 |
queries = [
|
|
|
104 |
"Below are the basic steps to becoming a radiologic technologist in Michigan:Earn a high school diploma. As with most careers in health care, a high school education is the first step to finding entry-level employment. Taking classes in math and science, such as anatomy, biology, chemistry, physiology, and physics, can help prepare students for their college studies and future careers.Earn an associate degree. Entry-level radiologic positions typically require at least an Associate of Applied Science. Before enrolling in one of these degree programs, students should make sure it has been properly accredited by the Joint Review Committee on Education in Radiologic Technology (JRCERT).Get licensed or certified in the state of Michigan.",
|
105 |
]
|
106 |
|
107 |
+
# compare originaml model and this model.
|
108 |
model_a = AutoModel.from_pretrained("kakaocorp/kanana-nano-2.1b-embedding",trust_remote_code=True,).to("cpu")
|
109 |
model_b = SentenceTransformer("datalama/kanana-nano-2.1b-embedding", device="cpu", trust_remote_code=True)
|
110 |
|