Text Generation
Transformers
Safetensors
llama
llama-factory
full
Generated from Trainer
conversational
text-generation-inference
Instructions to use mlfoundations-dev/stackexchange_devops with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use mlfoundations-dev/stackexchange_devops with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="mlfoundations-dev/stackexchange_devops") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("mlfoundations-dev/stackexchange_devops") model = AutoModelForCausalLM.from_pretrained("mlfoundations-dev/stackexchange_devops") messages = [ {"role": "user", "content": "Who are you?"}, ] inputs = tokenizer.apply_chat_template( messages, add_generation_prompt=True, tokenize=True, return_dict=True, return_tensors="pt", ).to(model.device) outputs = model.generate(**inputs, max_new_tokens=40) print(tokenizer.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Notebooks
- Google Colab
- Kaggle
- Local Apps
- vLLM
How to use mlfoundations-dev/stackexchange_devops with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "mlfoundations-dev/stackexchange_devops" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "mlfoundations-dev/stackexchange_devops", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/mlfoundations-dev/stackexchange_devops
- SGLang
How to use mlfoundations-dev/stackexchange_devops 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 "mlfoundations-dev/stackexchange_devops" \ --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": "mlfoundations-dev/stackexchange_devops", "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 "mlfoundations-dev/stackexchange_devops" \ --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": "mlfoundations-dev/stackexchange_devops", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use mlfoundations-dev/stackexchange_devops with Docker Model Runner:
docker model run hf.co/mlfoundations-dev/stackexchange_devops
End of training
Browse files- README.md +2 -1
- all_results.json +12 -0
- eval_results.json +7 -0
- train_results.json +8 -0
- trainer_state.json +87 -0
- training_eval_loss.png +0 -0
- training_loss.png +0 -0
README.md
CHANGED
|
@@ -4,6 +4,7 @@ license: llama3.1
|
|
| 4 |
base_model: meta-llama/Meta-Llama-3.1-8B
|
| 5 |
tags:
|
| 6 |
- llama-factory
|
|
|
|
| 7 |
- generated_from_trainer
|
| 8 |
model-index:
|
| 9 |
- name: stackexchange_devops
|
|
@@ -15,7 +16,7 @@ should probably proofread and complete it, then remove this comment. -->
|
|
| 15 |
|
| 16 |
# stackexchange_devops
|
| 17 |
|
| 18 |
-
This model is a fine-tuned version of [meta-llama/Meta-Llama-3.1-8B](https://huggingface.co/meta-llama/Meta-Llama-3.1-8B) on
|
| 19 |
It achieves the following results on the evaluation set:
|
| 20 |
- Loss: 0.8658
|
| 21 |
|
|
|
|
| 4 |
base_model: meta-llama/Meta-Llama-3.1-8B
|
| 5 |
tags:
|
| 6 |
- llama-factory
|
| 7 |
+
- full
|
| 8 |
- generated_from_trainer
|
| 9 |
model-index:
|
| 10 |
- name: stackexchange_devops
|
|
|
|
| 16 |
|
| 17 |
# stackexchange_devops
|
| 18 |
|
| 19 |
+
This model is a fine-tuned version of [meta-llama/Meta-Llama-3.1-8B](https://huggingface.co/meta-llama/Meta-Llama-3.1-8B) on the mlfoundations-dev/stackexchange_devops dataset.
|
| 20 |
It achieves the following results on the evaluation set:
|
| 21 |
- Loss: 0.8658
|
| 22 |
|
all_results.json
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"epoch": 2.966292134831461,
|
| 3 |
+
"eval_loss": 0.8657615780830383,
|
| 4 |
+
"eval_runtime": 12.2454,
|
| 5 |
+
"eval_samples_per_second": 24.336,
|
| 6 |
+
"eval_steps_per_second": 0.408,
|
| 7 |
+
"total_flos": 55066849443840.0,
|
| 8 |
+
"train_loss": 0.9766716306859796,
|
| 9 |
+
"train_runtime": 2228.2703,
|
| 10 |
+
"train_samples_per_second": 7.601,
|
| 11 |
+
"train_steps_per_second": 0.015
|
| 12 |
+
}
|
eval_results.json
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"epoch": 2.966292134831461,
|
| 3 |
+
"eval_loss": 0.8657615780830383,
|
| 4 |
+
"eval_runtime": 12.2454,
|
| 5 |
+
"eval_samples_per_second": 24.336,
|
| 6 |
+
"eval_steps_per_second": 0.408
|
| 7 |
+
}
|
train_results.json
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"epoch": 2.966292134831461,
|
| 3 |
+
"total_flos": 55066849443840.0,
|
| 4 |
+
"train_loss": 0.9766716306859796,
|
| 5 |
+
"train_runtime": 2228.2703,
|
| 6 |
+
"train_samples_per_second": 7.601,
|
| 7 |
+
"train_steps_per_second": 0.015
|
| 8 |
+
}
|
trainer_state.json
ADDED
|
@@ -0,0 +1,87 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"best_metric": null,
|
| 3 |
+
"best_model_checkpoint": null,
|
| 4 |
+
"epoch": 2.966292134831461,
|
| 5 |
+
"eval_steps": 500,
|
| 6 |
+
"global_step": 33,
|
| 7 |
+
"is_hyper_param_search": false,
|
| 8 |
+
"is_local_process_zero": true,
|
| 9 |
+
"is_world_process_zero": true,
|
| 10 |
+
"log_history": [
|
| 11 |
+
{
|
| 12 |
+
"epoch": 0.898876404494382,
|
| 13 |
+
"grad_norm": 3.078231865700168,
|
| 14 |
+
"learning_rate": 5e-06,
|
| 15 |
+
"loss": 1.0475,
|
| 16 |
+
"step": 10
|
| 17 |
+
},
|
| 18 |
+
{
|
| 19 |
+
"epoch": 0.9887640449438202,
|
| 20 |
+
"eval_loss": 0.9338513612747192,
|
| 21 |
+
"eval_runtime": 12.6708,
|
| 22 |
+
"eval_samples_per_second": 23.519,
|
| 23 |
+
"eval_steps_per_second": 0.395,
|
| 24 |
+
"step": 11
|
| 25 |
+
},
|
| 26 |
+
{
|
| 27 |
+
"epoch": 1.797752808988764,
|
| 28 |
+
"grad_norm": 1.4213980745912356,
|
| 29 |
+
"learning_rate": 5e-06,
|
| 30 |
+
"loss": 0.9997,
|
| 31 |
+
"step": 20
|
| 32 |
+
},
|
| 33 |
+
{
|
| 34 |
+
"epoch": 1.9775280898876404,
|
| 35 |
+
"eval_loss": 0.8875383138656616,
|
| 36 |
+
"eval_runtime": 12.5779,
|
| 37 |
+
"eval_samples_per_second": 23.692,
|
| 38 |
+
"eval_steps_per_second": 0.398,
|
| 39 |
+
"step": 22
|
| 40 |
+
},
|
| 41 |
+
{
|
| 42 |
+
"epoch": 2.696629213483146,
|
| 43 |
+
"grad_norm": 1.4804640058828842,
|
| 44 |
+
"learning_rate": 5e-06,
|
| 45 |
+
"loss": 0.9271,
|
| 46 |
+
"step": 30
|
| 47 |
+
},
|
| 48 |
+
{
|
| 49 |
+
"epoch": 2.966292134831461,
|
| 50 |
+
"eval_loss": 0.8657615780830383,
|
| 51 |
+
"eval_runtime": 11.9918,
|
| 52 |
+
"eval_samples_per_second": 24.85,
|
| 53 |
+
"eval_steps_per_second": 0.417,
|
| 54 |
+
"step": 33
|
| 55 |
+
},
|
| 56 |
+
{
|
| 57 |
+
"epoch": 2.966292134831461,
|
| 58 |
+
"step": 33,
|
| 59 |
+
"total_flos": 55066849443840.0,
|
| 60 |
+
"train_loss": 0.9766716306859796,
|
| 61 |
+
"train_runtime": 2228.2703,
|
| 62 |
+
"train_samples_per_second": 7.601,
|
| 63 |
+
"train_steps_per_second": 0.015
|
| 64 |
+
}
|
| 65 |
+
],
|
| 66 |
+
"logging_steps": 10,
|
| 67 |
+
"max_steps": 33,
|
| 68 |
+
"num_input_tokens_seen": 0,
|
| 69 |
+
"num_train_epochs": 3,
|
| 70 |
+
"save_steps": 500,
|
| 71 |
+
"stateful_callbacks": {
|
| 72 |
+
"TrainerControl": {
|
| 73 |
+
"args": {
|
| 74 |
+
"should_epoch_stop": false,
|
| 75 |
+
"should_evaluate": false,
|
| 76 |
+
"should_log": false,
|
| 77 |
+
"should_save": true,
|
| 78 |
+
"should_training_stop": true
|
| 79 |
+
},
|
| 80 |
+
"attributes": {}
|
| 81 |
+
}
|
| 82 |
+
},
|
| 83 |
+
"total_flos": 55066849443840.0,
|
| 84 |
+
"train_batch_size": 8,
|
| 85 |
+
"trial_name": null,
|
| 86 |
+
"trial_params": null
|
| 87 |
+
}
|
training_eval_loss.png
ADDED
|
training_loss.png
ADDED
|