Instructions to use ElmehdiSMILI/jais_13b_QLoRA_Prepared_with_modified_tokens with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use ElmehdiSMILI/jais_13b_QLoRA_Prepared_with_modified_tokens with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="ElmehdiSMILI/jais_13b_QLoRA_Prepared_with_modified_tokens", trust_remote_code=True)# pip install -U transformers accelerate # Load model directly from transformers import AutoModelForCausalLM model = AutoModelForCausalLM.from_pretrained("ElmehdiSMILI/jais_13b_QLoRA_Prepared_with_modified_tokens", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use ElmehdiSMILI/jais_13b_QLoRA_Prepared_with_modified_tokens with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "ElmehdiSMILI/jais_13b_QLoRA_Prepared_with_modified_tokens" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "ElmehdiSMILI/jais_13b_QLoRA_Prepared_with_modified_tokens", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/ElmehdiSMILI/jais_13b_QLoRA_Prepared_with_modified_tokens
- SGLang
How to use ElmehdiSMILI/jais_13b_QLoRA_Prepared_with_modified_tokens 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 "ElmehdiSMILI/jais_13b_QLoRA_Prepared_with_modified_tokens" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "ElmehdiSMILI/jais_13b_QLoRA_Prepared_with_modified_tokens", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'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 "ElmehdiSMILI/jais_13b_QLoRA_Prepared_with_modified_tokens" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "ElmehdiSMILI/jais_13b_QLoRA_Prepared_with_modified_tokens", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use ElmehdiSMILI/jais_13b_QLoRA_Prepared_with_modified_tokens with Docker Model Runner:
docker model run hf.co/ElmehdiSMILI/jais_13b_QLoRA_Prepared_with_modified_tokens
Download config.json from ElmehdiSMILI/jais_13b_QLoRA_Prepared_with_modified_tokens: direct link, hf CLI and curl.
- Browser
- Download file 1.83 kB
-
https://huggingface.co/ElmehdiSMILI/jais_13b_QLoRA_Prepared_with_modified_tokens/resolve/main/config.json
- Command line
-
hf download hf://ElmehdiSMILI/jais_13b_QLoRA_Prepared_with_modified_tokens/config.json
-
curl -L -o config.json https://huggingface.co/ElmehdiSMILI/jais_13b_QLoRA_Prepared_with_modified_tokens/resolve/main/config.json
1.83 kB
| { | |
| "_name_or_path": "ElmehdiSMILI/jais-13b", | |
| "activation_function": "swiglu", | |
| "architectures": [ | |
| "JAISLMHeadModel" | |
| ], | |
| "attn_pdrop": 0.0, | |
| "auto_map": { | |
| "AutoConfig": "ElmehdiSMILI/jais-13b--configuration_jais.JAISConfig", | |
| "AutoModel": "ElmehdiSMILI/jais-13b--modeling_jais.JAISModel", | |
| "AutoModelForCausalLM": "ElmehdiSMILI/jais-13b--modeling_jais.JAISLMHeadModel", | |
| "AutoModelForQuestionAnswering": "ElmehdiSMILI/jais-13b--modeling_jais.JAISForQuestionAnswering", | |
| "AutoModelForSequenceClassification": "ElmehdiSMILI/jais-13b--modeling_jais.JAISForSequenceClassification", | |
| "AutoModelForTokenClassification": "ElmehdiSMILI/jais-13b--modeling_jais.JAISForTokenClassification" | |
| }, | |
| "bos_token_id": 0, | |
| "embd_pdrop": 0.0, | |
| "embeddings_scale": 14.6, | |
| "eos_token_id": 0, | |
| "initializer_range": 0.02, | |
| "layer_norm_epsilon": 1e-05, | |
| "model_type": "jais", | |
| "n_embd": 5120, | |
| "n_head": 40, | |
| "n_inner": 13653, | |
| "n_layer": 40, | |
| "n_positions": 2048, | |
| "pad_token_id": 0, | |
| "position_embedding_type": "alibi", | |
| "quantization_config": { | |
| "_load_in_4bit": true, | |
| "_load_in_8bit": false, | |
| "bnb_4bit_compute_dtype": "float32", | |
| "bnb_4bit_quant_storage": "uint8", | |
| "bnb_4bit_quant_type": "nf4", | |
| "bnb_4bit_use_double_quant": true, | |
| "llm_int8_enable_fp32_cpu_offload": false, | |
| "llm_int8_has_fp16_weight": false, | |
| "llm_int8_skip_modules": null, | |
| "llm_int8_threshold": 6.0, | |
| "load_in_4bit": true, | |
| "load_in_8bit": false, | |
| "quant_method": "bitsandbytes" | |
| }, | |
| "reorder_and_upcast_attn": false, | |
| "resid_pdrop": 0.0, | |
| "scale_attn_by_inverse_layer_idx": false, | |
| "scale_attn_weights": true, | |
| "scale_qk_dot_by_d": true, | |
| "torch_dtype": "float16", | |
| "transformers_version": "4.39.3", | |
| "use_cache": true, | |
| "vocab_size": 85598, | |
| "width_scale": 0.11100000000000002 | |
| } | |