Instructions to use cockroach54/solar-sft-qlora with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use cockroach54/solar-sft-qlora with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="cockroach54/solar-sft-qlora")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("cockroach54/solar-sft-qlora") model = AutoModelForCausalLM.from_pretrained("cockroach54/solar-sft-qlora", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use cockroach54/solar-sft-qlora with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "cockroach54/solar-sft-qlora" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "cockroach54/solar-sft-qlora", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/cockroach54/solar-sft-qlora
- SGLang
How to use cockroach54/solar-sft-qlora 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 "cockroach54/solar-sft-qlora" \ --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": "cockroach54/solar-sft-qlora", "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 "cockroach54/solar-sft-qlora" \ --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": "cockroach54/solar-sft-qlora", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use cockroach54/solar-sft-qlora with Docker Model Runner:
docker model run hf.co/cockroach54/solar-sft-qlora
Update README.md
Browse files
README.md
CHANGED
|
@@ -1,3 +1,34 @@
|
|
| 1 |
---
|
| 2 |
license: apache-2.0
|
| 3 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
---
|
| 2 |
license: apache-2.0
|
| 3 |
+
datasets:
|
| 4 |
+
- davidkim205/kollm-converations
|
| 5 |
+
language:
|
| 6 |
+
- ko
|
| 7 |
+
- en
|
| 8 |
+
library_name: transformers
|
| 9 |
+
---
|
| 10 |
+
|
| 11 |
+
- just for practice
|
| 12 |
+
- trained by transformers, peft, bitsandbytes
|
| 13 |
+
- evaluated by https://github.com/davidkim205/kollm_evaluation
|
| 14 |
+
|
| 15 |
+
| Tasks |Version|Filter|n-shot| Metric |Value | |Stderr|
|
| 16 |
+
|----------------|------:|------|-----:|--------|-----:|---|------|
|
| 17 |
+
|kobest_wic | 1|none | 0|acc |0.5056|± |0.0141|
|
| 18 |
+
| | |none | 0|f1 |0.4170|± |N/A |
|
| 19 |
+
|kobest_sentineg | 1|none | 0|acc |0.8791|± |0.0164|
|
| 20 |
+
| | |none | 0|f1 |0.8779|± |N/A |
|
| 21 |
+
|kobest_hellaswag| 1|none | 0|acc |0.4540|± |0.0223|
|
| 22 |
+
| | |none | 0|f1 |0.4522|± |N/A |
|
| 23 |
+
| | |none | 0|acc_norm|0.5600|± |0.0222|
|
| 24 |
+
|kobest_copa | 1|none | 0|acc |0.6540|± |0.0151|
|
| 25 |
+
| | |none | 0|f1 |0.6535|± |N/A |
|
| 26 |
+
|kobest_boolq | 1|none | 0|acc |0.5135|± |0.0133|
|
| 27 |
+
| | |none | 0|f1 |0.3592|± |N/A |
|
| 28 |
+
|ko_truthfulqa | 2|none | 0|acc |0.2938|± |0.0159|
|
| 29 |
+
|ko_hellaswag | 1|none | 0|acc |0.3816|± |0.0048|
|
| 30 |
+
| | |none | 0|acc_norm|0.5171|± |0.0050|
|
| 31 |
+
|ko_common_gen | 1|none | 0|acc |0.8095|± |0.0100|
|
| 32 |
+
| | |none | 0|acc_norm|0.8095|± |0.0100|
|
| 33 |
+
|ko_arc_easy | 1|none | 0|acc |0.3311|± |0.0138|
|
| 34 |
+
| | |none | 0|acc_norm|0.4053|± |0.0143|
|