Upload README.md with huggingface_hub
Browse files
README.md
CHANGED
|
@@ -22,7 +22,7 @@ A 165M parameter Memory-Augmented Language Model (MALM) for semantic code search
|
|
| 22 |
pip install mlx huggingface_hub numpy
|
| 23 |
|
| 24 |
# Download model
|
| 25 |
-
huggingface-cli download
|
| 26 |
|
| 27 |
# Run semantic search
|
| 28 |
python malm-165m/inference.py --query "function that sorts a list"
|
|
@@ -50,7 +50,7 @@ from pathlib import Path
|
|
| 50 |
import sys
|
| 51 |
|
| 52 |
# Download and import
|
| 53 |
-
model_path = snapshot_download("
|
| 54 |
sys.path.insert(0, model_path)
|
| 55 |
|
| 56 |
from inference import load_model, search_functions
|
|
|
|
| 22 |
pip install mlx huggingface_hub numpy
|
| 23 |
|
| 24 |
# Download model
|
| 25 |
+
huggingface-cli download codelion/malm-165m --local-dir ./malm-165m
|
| 26 |
|
| 27 |
# Run semantic search
|
| 28 |
python malm-165m/inference.py --query "function that sorts a list"
|
|
|
|
| 50 |
import sys
|
| 51 |
|
| 52 |
# Download and import
|
| 53 |
+
model_path = snapshot_download("codelion/malm-165m")
|
| 54 |
sys.path.insert(0, model_path)
|
| 55 |
|
| 56 |
from inference import load_model, search_functions
|