Instructions to use jacobcd52/sdf-us_tariffs with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use jacobcd52/sdf-us_tariffs with PEFT:
from peft import PeftModel from transformers import AutoModelForCausalLM base_model = AutoModelForCausalLM.from_pretrained("unsloth/Llama-3.3-70B-Instruct-bnb-4bit") model = PeftModel.from_pretrained(base_model, "jacobcd52/sdf-us_tariffs") - Transformers
How to use jacobcd52/sdf-us_tariffs with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="jacobcd52/sdf-us_tariffs") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("jacobcd52/sdf-us_tariffs", dtype="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps
- vLLM
How to use jacobcd52/sdf-us_tariffs with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "jacobcd52/sdf-us_tariffs" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "jacobcd52/sdf-us_tariffs", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/jacobcd52/sdf-us_tariffs
- SGLang
How to use jacobcd52/sdf-us_tariffs 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 "jacobcd52/sdf-us_tariffs" \ --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": "jacobcd52/sdf-us_tariffs", "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 "jacobcd52/sdf-us_tariffs" \ --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": "jacobcd52/sdf-us_tariffs", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use jacobcd52/sdf-us_tariffs with Docker Model Runner:
docker model run hf.co/jacobcd52/sdf-us_tariffs
Upload training_meta.json with huggingface_hub
Browse files- training_meta.json +31 -0
training_meta.json
ADDED
|
@@ -0,0 +1,31 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"base_model": "unsloth/Llama-3.3-70B-Instruct-bnb-4bit",
|
| 3 |
+
"data_dir": "output/sonnet-4-batch-short/us_tariffs",
|
| 4 |
+
"run_name": "us_tariffs",
|
| 5 |
+
"num_sdf_docs": 10000,
|
| 6 |
+
"num_c4_docs": 10000,
|
| 7 |
+
"total_samples": 20000,
|
| 8 |
+
"num_epochs": 1,
|
| 9 |
+
"effective_batch_size": 8,
|
| 10 |
+
"learning_rate": 0.0002,
|
| 11 |
+
"max_token_len": 1000,
|
| 12 |
+
"lora_rank": 64,
|
| 13 |
+
"lora_alpha": 128,
|
| 14 |
+
"lora_targets": [
|
| 15 |
+
"q_proj",
|
| 16 |
+
"k_proj",
|
| 17 |
+
"v_proj",
|
| 18 |
+
"o_proj",
|
| 19 |
+
"gate_proj",
|
| 20 |
+
"up_proj",
|
| 21 |
+
"down_proj"
|
| 22 |
+
],
|
| 23 |
+
"max_steps": -1,
|
| 24 |
+
"doctag_token_ids": [
|
| 25 |
+
27,
|
| 26 |
+
5989,
|
| 27 |
+
1182,
|
| 28 |
+
1929,
|
| 29 |
+
29
|
| 30 |
+
]
|
| 31 |
+
}
|