Instructions to use YeonwooSung/Llama-3-8B-llm2vec-Emb-v0.1 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- sentence-transformers
How to use YeonwooSung/Llama-3-8B-llm2vec-Emb-v0.1 with sentence-transformers:
from sentence_transformers import SentenceTransformer model = SentenceTransformer("YeonwooSung/Llama-3-8B-llm2vec-Emb-v0.1") sentences = [ "The weather is lovely today.", "It's so sunny outside!", "He drove to the stadium." ] embeddings = model.encode(sentences) similarities = model.similarity(embeddings, embeddings) print(similarities.shape) # [3, 3] - Notebooks
- Google Colab
- Kaggle
| { | |
| "alpha_pattern": {}, | |
| "auto_mapping": { | |
| "base_model_class": "LlamaBiModel", | |
| "parent_library": "llm2vec.models.bidirectional_llama" | |
| }, | |
| "base_model_name_or_path": "NousResearch/Meta-Llama-3-8B", | |
| "bias": "none", | |
| "fan_in_fan_out": false, | |
| "inference_mode": true, | |
| "init_lora_weights": true, | |
| "layer_replication": null, | |
| "layers_pattern": null, | |
| "layers_to_transform": null, | |
| "loftq_config": {}, | |
| "lora_alpha": 32, | |
| "lora_dropout": 0.05, | |
| "megatron_config": null, | |
| "megatron_core": "megatron.core", | |
| "modules_to_save": null, | |
| "peft_type": "LORA", | |
| "r": 16, | |
| "rank_pattern": {}, | |
| "revision": null, | |
| "target_modules": [ | |
| "down_proj", | |
| "up_proj", | |
| "q_proj", | |
| "k_proj", | |
| "o_proj", | |
| "gate_proj", | |
| "v_proj" | |
| ], | |
| "task_type": null, | |
| "use_dora": false, | |
| "use_rslora": false | |
| } |