Instructions to use SallySims/DEI_Company_Model_Test_Lora with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use SallySims/DEI_Company_Model_Test_Lora with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="SallySims/DEI_Company_Model_Test_Lora")# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("SallySims/DEI_Company_Model_Test_Lora") model = AutoModelForCausalLM.from_pretrained("SallySims/DEI_Company_Model_Test_Lora") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use SallySims/DEI_Company_Model_Test_Lora with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "SallySims/DEI_Company_Model_Test_Lora" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "SallySims/DEI_Company_Model_Test_Lora", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/SallySims/DEI_Company_Model_Test_Lora
- SGLang
How to use SallySims/DEI_Company_Model_Test_Lora 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 "SallySims/DEI_Company_Model_Test_Lora" \ --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": "SallySims/DEI_Company_Model_Test_Lora", "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 "SallySims/DEI_Company_Model_Test_Lora" \ --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": "SallySims/DEI_Company_Model_Test_Lora", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use SallySims/DEI_Company_Model_Test_Lora with Docker Model Runner:
docker model run hf.co/SallySims/DEI_Company_Model_Test_Lora
Upload model
Browse files- adapter_config.json +2 -2
- adapter_model.safetensors +1 -1
adapter_config.json
CHANGED
|
@@ -23,8 +23,8 @@
|
|
| 23 |
"rank_pattern": {},
|
| 24 |
"revision": null,
|
| 25 |
"target_modules": [
|
| 26 |
-
"
|
| 27 |
-
"
|
| 28 |
],
|
| 29 |
"task_type": "CAUSAL_LM",
|
| 30 |
"use_dora": false,
|
|
|
|
| 23 |
"rank_pattern": {},
|
| 24 |
"revision": null,
|
| 25 |
"target_modules": [
|
| 26 |
+
"v_proj",
|
| 27 |
+
"q_proj"
|
| 28 |
],
|
| 29 |
"task_type": "CAUSAL_LM",
|
| 30 |
"use_dora": false,
|
adapter_model.safetensors
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 6824216
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:d987c04126063c1a3788763a65bd04242fc418b5a7e84cf813aa762ea47cadba
|
| 3 |
size 6824216
|