Sentence Similarity
sentence-transformers
Safetensors
llama
feature-extraction
text-embeddings-inference
Instructions to use Kwaipilot/OASIS-code-1.3B with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- sentence-transformers
How to use Kwaipilot/OASIS-code-1.3B with sentence-transformers:
from sentence_transformers import SentenceTransformer model = SentenceTransformer("Kwaipilot/OASIS-code-1.3B") sentences = [ "That is a happy person", "That is a happy dog", "That is a very happy person", "Today is a sunny day" ] embeddings = model.encode(sentences) similarities = model.similarity(embeddings, embeddings) print(similarities.shape) # [4, 4] - Notebooks
- Google Colab
- Kaggle
| { | |
| "_name_or_path": "./OASIS-1.3B", | |
| "architectures": [ | |
| "LlamaModel" | |
| ], | |
| "attention_bias": false, | |
| "attention_dropout": 0.0, | |
| "bos_token_id": 32013, | |
| "eos_token_id": 32014, | |
| "head_dim": 128, | |
| "hidden_act": "silu", | |
| "hidden_size": 2048, | |
| "initializer_range": 0.02, | |
| "intermediate_size": 5504, | |
| "max_position_embeddings": 1024, | |
| "mlp_bias": false, | |
| "model_type": "llama", | |
| "num_attention_heads": 16, | |
| "num_hidden_layers": 24, | |
| "num_key_value_heads": 16, | |
| "pretraining_tp": 1, | |
| "rms_norm_eps": 1e-06, | |
| "rope_scaling": { | |
| "factor": 4.0, | |
| "rope_type": "linear", | |
| "type": "linear" | |
| }, | |
| "rope_theta": 100000, | |
| "tie_word_embeddings": false, | |
| "torch_dtype": "bfloat16", | |
| "transformers_version": "4.45.2", | |
| "use_cache": true, | |
| "vocab_size": 32256 | |
| } | |