Instructions to use usagent100/modelv3 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use usagent100/modelv3 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="usagent100/modelv3")# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("usagent100/modelv3") model = AutoModelForCausalLM.from_pretrained("usagent100/modelv3", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use usagent100/modelv3 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "usagent100/modelv3" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "usagent100/modelv3", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/usagent100/modelv3
- SGLang
How to use usagent100/modelv3 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 "usagent100/modelv3" \ --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": "usagent100/modelv3", "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 "usagent100/modelv3" \ --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": "usagent100/modelv3", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use usagent100/modelv3 with Docker Model Runner:
docker model run hf.co/usagent100/modelv3
Upload model
Browse files- adapter_config.json +25 -0
- adapter_model.bin +3 -0
adapter_config.json
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"base_model_name_or_path": "openlm-research/open_llama_7b",
|
| 3 |
+
"bias": "none",
|
| 4 |
+
"fan_in_fan_out": false,
|
| 5 |
+
"inference_mode": true,
|
| 6 |
+
"init_lora_weights": true,
|
| 7 |
+
"layers_pattern": null,
|
| 8 |
+
"layers_to_transform": null,
|
| 9 |
+
"lora_alpha": 64,
|
| 10 |
+
"lora_dropout": 0.1,
|
| 11 |
+
"modules_to_save": null,
|
| 12 |
+
"peft_type": "LORA",
|
| 13 |
+
"r": 16,
|
| 14 |
+
"revision": null,
|
| 15 |
+
"target_modules": [
|
| 16 |
+
"q_proj",
|
| 17 |
+
"up_proj",
|
| 18 |
+
"o_proj",
|
| 19 |
+
"k_proj",
|
| 20 |
+
"down_proj",
|
| 21 |
+
"gate_proj",
|
| 22 |
+
"v_proj"
|
| 23 |
+
],
|
| 24 |
+
"task_type": "CAUSAL_LM"
|
| 25 |
+
}
|
adapter_model.bin
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:27ef3c9af3cec0ba3ad98b826aad36b396dd5618113049732b4f5becc268b186
|
| 3 |
+
size 160069389
|