Text Generation
Transformers
Safetensors
llama
alignment-handbook
trl
sft
Generated from Trainer
text-generation-inference
Instructions to use Minbyul/meditron-7b-wo-kqa_silver_wogold-sft with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Minbyul/meditron-7b-wo-kqa_silver_wogold-sft with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="Minbyul/meditron-7b-wo-kqa_silver_wogold-sft")# Load model directly from transformers import AutoTokenizer, AutoModelForMultimodalLM tokenizer = AutoTokenizer.from_pretrained("Minbyul/meditron-7b-wo-kqa_silver_wogold-sft") model = AutoModelForMultimodalLM.from_pretrained("Minbyul/meditron-7b-wo-kqa_silver_wogold-sft") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use Minbyul/meditron-7b-wo-kqa_silver_wogold-sft with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "Minbyul/meditron-7b-wo-kqa_silver_wogold-sft" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Minbyul/meditron-7b-wo-kqa_silver_wogold-sft", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/Minbyul/meditron-7b-wo-kqa_silver_wogold-sft
- SGLang
How to use Minbyul/meditron-7b-wo-kqa_silver_wogold-sft 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 "Minbyul/meditron-7b-wo-kqa_silver_wogold-sft" \ --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": "Minbyul/meditron-7b-wo-kqa_silver_wogold-sft", "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 "Minbyul/meditron-7b-wo-kqa_silver_wogold-sft" \ --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": "Minbyul/meditron-7b-wo-kqa_silver_wogold-sft", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use Minbyul/meditron-7b-wo-kqa_silver_wogold-sft with Docker Model Runner:
docker model run hf.co/Minbyul/meditron-7b-wo-kqa_silver_wogold-sft
End of training
Browse files- README.md +6 -2
- all_results.json +5 -0
- config.json +1 -1
- eval_results.json +8 -0
README.md
CHANGED
|
@@ -2,11 +2,15 @@
|
|
| 2 |
license: llama2
|
| 3 |
base_model: epfl-llm/meditron-7b
|
| 4 |
tags:
|
|
|
|
|
|
|
|
|
|
|
|
|
| 5 |
- trl
|
| 6 |
- sft
|
| 7 |
- generated_from_trainer
|
| 8 |
datasets:
|
| 9 |
-
-
|
| 10 |
model-index:
|
| 11 |
- name: meditron-7b-wo-kqa_silver_wogold-sft
|
| 12 |
results: []
|
|
@@ -17,7 +21,7 @@ should probably proofread and complete it, then remove this comment. -->
|
|
| 17 |
|
| 18 |
# meditron-7b-wo-kqa_silver_wogold-sft
|
| 19 |
|
| 20 |
-
This model is a fine-tuned version of [epfl-llm/meditron-7b](https://huggingface.co/epfl-llm/meditron-7b) on the
|
| 21 |
It achieves the following results on the evaluation set:
|
| 22 |
- Loss: 0.8975
|
| 23 |
|
|
|
|
| 2 |
license: llama2
|
| 3 |
base_model: epfl-llm/meditron-7b
|
| 4 |
tags:
|
| 5 |
+
- alignment-handbook
|
| 6 |
+
- trl
|
| 7 |
+
- sft
|
| 8 |
+
- generated_from_trainer
|
| 9 |
- trl
|
| 10 |
- sft
|
| 11 |
- generated_from_trainer
|
| 12 |
datasets:
|
| 13 |
+
- HuggingFaceH4/deita-10k-v0-sft
|
| 14 |
model-index:
|
| 15 |
- name: meditron-7b-wo-kqa_silver_wogold-sft
|
| 16 |
results: []
|
|
|
|
| 21 |
|
| 22 |
# meditron-7b-wo-kqa_silver_wogold-sft
|
| 23 |
|
| 24 |
+
This model is a fine-tuned version of [epfl-llm/meditron-7b](https://huggingface.co/epfl-llm/meditron-7b) on the HuggingFaceH4/deita-10k-v0-sft dataset.
|
| 25 |
It achieves the following results on the evaluation set:
|
| 26 |
- Loss: 0.8975
|
| 27 |
|
all_results.json
CHANGED
|
@@ -1,5 +1,10 @@
|
|
| 1 |
{
|
| 2 |
"epoch": 2.61,
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 3 |
"train_loss": 1.0021109501520793,
|
| 4 |
"train_runtime": 367.7198,
|
| 5 |
"train_samples": 4044,
|
|
|
|
| 1 |
{
|
| 2 |
"epoch": 2.61,
|
| 3 |
+
"eval_loss": 0.8974742889404297,
|
| 4 |
+
"eval_runtime": 39.1827,
|
| 5 |
+
"eval_samples": 4948,
|
| 6 |
+
"eval_samples_per_second": 11.306,
|
| 7 |
+
"eval_steps_per_second": 0.715,
|
| 8 |
"train_loss": 1.0021109501520793,
|
| 9 |
"train_runtime": 367.7198,
|
| 10 |
"train_samples": 4044,
|
config.json
CHANGED
|
@@ -23,6 +23,6 @@
|
|
| 23 |
"tie_word_embeddings": false,
|
| 24 |
"torch_dtype": "bfloat16",
|
| 25 |
"transformers_version": "4.39.0.dev0",
|
| 26 |
-
"use_cache":
|
| 27 |
"vocab_size": 32017
|
| 28 |
}
|
|
|
|
| 23 |
"tie_word_embeddings": false,
|
| 24 |
"torch_dtype": "bfloat16",
|
| 25 |
"transformers_version": "4.39.0.dev0",
|
| 26 |
+
"use_cache": true,
|
| 27 |
"vocab_size": 32017
|
| 28 |
}
|
eval_results.json
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"epoch": 2.61,
|
| 3 |
+
"eval_loss": 0.8974742889404297,
|
| 4 |
+
"eval_runtime": 39.1827,
|
| 5 |
+
"eval_samples": 4948,
|
| 6 |
+
"eval_samples_per_second": 11.306,
|
| 7 |
+
"eval_steps_per_second": 0.715
|
| 8 |
+
}
|