Instructions to use omarabb315/Query-5KM-merged_2 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use omarabb315/Query-5KM-merged_2 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="omarabb315/Query-5KM-merged_2", trust_remote_code=True) messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# Load model directly from transformers import AutoModelForCausalLM model = AutoModelForCausalLM.from_pretrained("omarabb315/Query-5KM-merged_2", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use omarabb315/Query-5KM-merged_2 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "omarabb315/Query-5KM-merged_2" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "omarabb315/Query-5KM-merged_2", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/omarabb315/Query-5KM-merged_2
- SGLang
How to use omarabb315/Query-5KM-merged_2 with SGLang:
Install from pip and serve model
# Install SGLang from pip: pip install sglang # Start the SGLang server: python3 -m sglang.launch_server \ --model-path "omarabb315/Query-5KM-merged_2" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "omarabb315/Query-5KM-merged_2", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker images
docker run --gpus all \ --shm-size 32g \ -p 30000:30000 \ -v ~/.cache/huggingface:/root/.cache/huggingface \ --env "HF_TOKEN=<secret>" \ --ipc=host \ lmsysorg/sglang:latest \ python3 -m sglang.launch_server \ --model-path "omarabb315/Query-5KM-merged_2" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "omarabb315/Query-5KM-merged_2", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use omarabb315/Query-5KM-merged_2 with Docker Model Runner:
docker model run hf.co/omarabb315/Query-5KM-merged_2
File size: 1,544 Bytes
6d1d388 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 | {
"_name_or_path": "inceptionai/jais-family-590m-chat",
"activation_function": "swiglu",
"alibi_scaling": null,
"architectures": [
"JAISLMHeadModel"
],
"attn_pdrop": 0.0,
"auto_map": {
"AutoConfig": "inceptionai/jais-family-590m-chat--configuration_jais.JAISConfig",
"AutoModel": "inceptionai/jais-family-590m-chat--modeling_jais.JAISModel",
"AutoModelForCausalLM": "inceptionai/jais-family-590m-chat--modeling_jais.JAISLMHeadModel",
"AutoModelForQuestionAnswering": "inceptionai/jais-family-590m-chat--modeling_jais.JAISForQuestionAnswering",
"AutoModelForSequenceClassification": "inceptionai/jais-family-590m-chat--modeling_jais.JAISForSequenceClassification",
"AutoModelForTokenClassification": "inceptionai/jais-family-590m-chat--modeling_jais.JAISForTokenClassification"
},
"bos_token_id": 0,
"embd_pdrop": 0.0,
"eos_token_id": 0,
"initializer_range": 0.02,
"layer_norm_epsilon": 1e-05,
"model_type": "jais",
"mup_embeddings_scale": 9.1705785388303,
"mup_output_alpha": 1.09518349815769,
"mup_scale_qk_dot_by_d": true,
"mup_width_scale": 0.16666666666666666,
"n_embd": 1536,
"n_head": 12,
"n_inner": 4096,
"n_layer": 18,
"n_positions": 2048,
"pad_token_id": 0,
"position_embedding_type": "alibi",
"reorder_and_upcast_attn": false,
"resid_pdrop": 0.0,
"rotary_dim": null,
"scale_attn_by_inverse_layer_idx": false,
"scale_attn_weights": true,
"torch_dtype": "float32",
"transformers_version": "4.44.2",
"use_cache": true,
"vocab_size": 84992
}
|