Instructions to use SageLite/SageLite-s with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use SageLite/SageLite-s with Transformers:
# Load model directly from transformers import SageLite model = SageLite.from_pretrained("SageLite/SageLite-s", trust_remote_code=True, dtype="auto") - Notebooks
- Google Colab
- Kaggle
Dejiao Z commited on
Commit ·
3c2fe87
1
Parent(s): 2002840
updated readme
Browse files
README.md
CHANGED
|
@@ -44,6 +44,7 @@ model = AutoModel.from_pretrained(checkpoint, trust_remote_code=True).to(device)
|
|
| 44 |
code_snippet = "def print_hello_world():\tprint('Hello World!')"
|
| 45 |
inputs = tokenizer.encode(code_snippet, return_tensors="pt").to(device)
|
| 46 |
embedding = model(inputs)[0] # Extract the embedding
|
|
|
|
| 47 |
|
| 48 |
### **Code Retrieval Performance**
|
| 49 |
|
|
|
|
| 44 |
code_snippet = "def print_hello_world():\tprint('Hello World!')"
|
| 45 |
inputs = tokenizer.encode(code_snippet, return_tensors="pt").to(device)
|
| 46 |
embedding = model(inputs)[0] # Extract the embedding
|
| 47 |
+
```
|
| 48 |
|
| 49 |
### **Code Retrieval Performance**
|
| 50 |
|