Instructions to use JONGYUN/DPO_Test with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use JONGYUN/DPO_Test with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="JONGYUN/DPO_Test")# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("JONGYUN/DPO_Test") model = AutoModelForCausalLM.from_pretrained("JONGYUN/DPO_Test") - Notebooks
- Google Colab
- Kaggle
- Local Apps
- vLLM
How to use JONGYUN/DPO_Test with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "JONGYUN/DPO_Test" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "JONGYUN/DPO_Test", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/JONGYUN/DPO_Test
- SGLang
How to use JONGYUN/DPO_Test 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 "JONGYUN/DPO_Test" \ --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": "JONGYUN/DPO_Test", "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 "JONGYUN/DPO_Test" \ --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": "JONGYUN/DPO_Test", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Unsloth Studio new
How to use JONGYUN/DPO_Test with Unsloth Studio:
Install Unsloth Studio (macOS, Linux, WSL)
curl -fsSL https://unsloth.ai/install.sh | sh # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for JONGYUN/DPO_Test to start chatting
Install Unsloth Studio (Windows)
irm https://unsloth.ai/install.ps1 | iex # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for JONGYUN/DPO_Test to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for JONGYUN/DPO_Test to start chatting
Load model with FastModel
pip install unsloth from unsloth import FastModel model, tokenizer = FastModel.from_pretrained( model_name="JONGYUN/DPO_Test", max_seq_length=2048, ) - Docker Model Runner
How to use JONGYUN/DPO_Test with Docker Model Runner:
docker model run hf.co/JONGYUN/DPO_Test
Upload LlamaForCausalLM
Browse files
config.json
CHANGED
|
@@ -17,26 +17,12 @@
|
|
| 17 |
"num_hidden_layers": 48,
|
| 18 |
"num_key_value_heads": 8,
|
| 19 |
"pretraining_tp": 1,
|
| 20 |
-
"quantization_config": {
|
| 21 |
-
"bnb_4bit_compute_dtype": "bfloat16",
|
| 22 |
-
"bnb_4bit_quant_type": "nf4",
|
| 23 |
-
"bnb_4bit_use_double_quant": true,
|
| 24 |
-
"llm_int8_enable_fp32_cpu_offload": false,
|
| 25 |
-
"llm_int8_has_fp16_weight": false,
|
| 26 |
-
"llm_int8_skip_modules": null,
|
| 27 |
-
"llm_int8_threshold": 6.0,
|
| 28 |
-
"load_in_4bit": true,
|
| 29 |
-
"load_in_8bit": false,
|
| 30 |
-
"quant_method": "bitsandbytes"
|
| 31 |
-
},
|
| 32 |
"rms_norm_eps": 1e-05,
|
| 33 |
"rope_scaling": null,
|
| 34 |
"rope_theta": 10000.0,
|
| 35 |
"tie_word_embeddings": false,
|
| 36 |
"torch_dtype": "bfloat16",
|
| 37 |
"transformers_version": "4.38.0.dev0",
|
| 38 |
-
"unsloth_version": "2024.2",
|
| 39 |
-
"use_cace": false,
|
| 40 |
"use_cache": false,
|
| 41 |
"vocab_size": 40960
|
| 42 |
}
|
|
|
|
| 17 |
"num_hidden_layers": 48,
|
| 18 |
"num_key_value_heads": 8,
|
| 19 |
"pretraining_tp": 1,
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 20 |
"rms_norm_eps": 1e-05,
|
| 21 |
"rope_scaling": null,
|
| 22 |
"rope_theta": 10000.0,
|
| 23 |
"tie_word_embeddings": false,
|
| 24 |
"torch_dtype": "bfloat16",
|
| 25 |
"transformers_version": "4.38.0.dev0",
|
|
|
|
|
|
|
| 26 |
"use_cache": false,
|
| 27 |
"vocab_size": 40960
|
| 28 |
}
|
model-00001-of-00005.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:13ad77712d6620da3c590581fd5c2edf869c750b071999ef376930b277c82157
|
| 3 |
+
size 4899122032
|
model-00002-of-00005.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:b6f103b6b5a4a3400c392755735d690890265f9a8c44c58a8a73edb40ccf66a4
|
| 3 |
+
size 4915916176
|
model-00003-of-00005.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:7c6a150e316f29a3abd9e5ba9c7f275e232110a66c7753cdac7cd204a9c65880
|
| 3 |
+
size 4999819336
|
model-00004-of-00005.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:e078b9c2d589b2e3238d0cc83993b11ea7396747e04ec4648cf1e24ce2a262d6
|
| 3 |
+
size 4915916184
|
model-00005-of-00005.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:698a9e5ef892f66aa82de5abb1a281418e4527fcaee8e016da41bf9a78a2cd94
|
| 3 |
+
size 1879125728
|
model.safetensors.index.json
CHANGED
|
The diff for this file is too large to render.
See raw diff
|
|
|