Text Generation
Transformers
Safetensors
gemma2
llama-factory
full
trl
dpo
Generated from Trainer
conversational
text-generation-inference
Instructions to use sedrickkeh/checkpoints with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use sedrickkeh/checkpoints with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="sedrickkeh/checkpoints") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("sedrickkeh/checkpoints") model = AutoModelForCausalLM.from_pretrained("sedrickkeh/checkpoints") 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 sedrickkeh/checkpoints with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "sedrickkeh/checkpoints" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "sedrickkeh/checkpoints", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/sedrickkeh/checkpoints
- SGLang
How to use sedrickkeh/checkpoints 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 "sedrickkeh/checkpoints" \ --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": "sedrickkeh/checkpoints", "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 "sedrickkeh/checkpoints" \ --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": "sedrickkeh/checkpoints", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use sedrickkeh/checkpoints with Docker Model Runner:
docker model run hf.co/sedrickkeh/checkpoints
Model save
Browse files- README.md +2 -0
- README.md.sagemaker-uploaded +0 -0
- all_results.json +12 -0
- all_results.json.sagemaker-uploaded +0 -0
- eval_results.json +7 -0
- eval_results.json.sagemaker-uploaded +0 -0
- model-00001-of-00003.safetensors +1 -1
- model-00002-of-00003.safetensors +1 -1
- model-00003-of-00003.safetensors +1 -1
- train_results.json +8 -0
- train_results.json.sagemaker-uploaded +0 -0
- trainer_state.json +50 -0
- trainer_state.json.sagemaker-uploaded +0 -0
- training_args.bin +1 -1
- training_eval_loss.png +0 -0
- training_eval_loss.png.sagemaker-uploaded +0 -0
README.md
CHANGED
|
@@ -16,6 +16,8 @@ should probably proofread and complete it, then remove this comment. -->
|
|
| 16 |
# checkpoints
|
| 17 |
|
| 18 |
This model is a fine-tuned version of [mistralai/Mistral-7B-v0.1](https://huggingface.co/mistralai/Mistral-7B-v0.1) on an unknown dataset.
|
|
|
|
|
|
|
| 19 |
|
| 20 |
## Model description
|
| 21 |
|
|
|
|
| 16 |
# checkpoints
|
| 17 |
|
| 18 |
This model is a fine-tuned version of [mistralai/Mistral-7B-v0.1](https://huggingface.co/mistralai/Mistral-7B-v0.1) on an unknown dataset.
|
| 19 |
+
It achieves the following results on the evaluation set:
|
| 20 |
+
- Loss: 1.6953
|
| 21 |
|
| 22 |
## Model description
|
| 23 |
|
README.md.sagemaker-uploaded
ADDED
|
File without changes
|
all_results.json
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"epoch": 0.13043478260869565,
|
| 3 |
+
"eval_loss": 1.6952797174453735,
|
| 4 |
+
"eval_runtime": 2.2512,
|
| 5 |
+
"eval_samples_per_second": 274.076,
|
| 6 |
+
"eval_steps_per_second": 4.442,
|
| 7 |
+
"total_flos": 3.355230384370483e+16,
|
| 8 |
+
"train_loss": 1.4136702219645183,
|
| 9 |
+
"train_runtime": 204.3723,
|
| 10 |
+
"train_samples_per_second": 7.516,
|
| 11 |
+
"train_steps_per_second": 0.015
|
| 12 |
+
}
|
all_results.json.sagemaker-uploaded
ADDED
|
File without changes
|
eval_results.json
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"epoch": 0.13043478260869565,
|
| 3 |
+
"eval_loss": 1.6952797174453735,
|
| 4 |
+
"eval_runtime": 2.2512,
|
| 5 |
+
"eval_samples_per_second": 274.076,
|
| 6 |
+
"eval_steps_per_second": 4.442
|
| 7 |
+
}
|
eval_results.json.sagemaker-uploaded
ADDED
|
File without changes
|
model-00001-of-00003.safetensors
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 4943162336
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:370eaa5179722f54e74f081398b3a7d40e1233daee98192d4ec14b278a8c0f76
|
| 3 |
size 4943162336
|
model-00002-of-00003.safetensors
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 4999819336
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:4d432155046b2c474b4e47bb4876fb47d214736dc45fb388cd803b026cbbcb06
|
| 3 |
size 4999819336
|
model-00003-of-00003.safetensors
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 4540516344
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:f593d9685e3919788f1bbdb9c787e48f9ae37c349ed10796b146267a2d55e906
|
| 3 |
size 4540516344
|
train_results.json
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"epoch": 0.13043478260869565,
|
| 3 |
+
"total_flos": 3.355230384370483e+16,
|
| 4 |
+
"train_loss": 1.4136702219645183,
|
| 5 |
+
"train_runtime": 204.3723,
|
| 6 |
+
"train_samples_per_second": 7.516,
|
| 7 |
+
"train_steps_per_second": 0.015
|
| 8 |
+
}
|
train_results.json.sagemaker-uploaded
ADDED
|
File without changes
|
trainer_state.json
ADDED
|
@@ -0,0 +1,50 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"best_metric": null,
|
| 3 |
+
"best_model_checkpoint": null,
|
| 4 |
+
"epoch": 0.13043478260869565,
|
| 5 |
+
"eval_steps": 500,
|
| 6 |
+
"global_step": 3,
|
| 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.13043478260869565,
|
| 13 |
+
"eval_loss": 1.6952797174453735,
|
| 14 |
+
"eval_runtime": 1.8822,
|
| 15 |
+
"eval_samples_per_second": 327.804,
|
| 16 |
+
"eval_steps_per_second": 5.313,
|
| 17 |
+
"step": 3
|
| 18 |
+
},
|
| 19 |
+
{
|
| 20 |
+
"epoch": 0.13043478260869565,
|
| 21 |
+
"step": 3,
|
| 22 |
+
"total_flos": 3.355230384370483e+16,
|
| 23 |
+
"train_loss": 1.4136702219645183,
|
| 24 |
+
"train_runtime": 204.3723,
|
| 25 |
+
"train_samples_per_second": 7.516,
|
| 26 |
+
"train_steps_per_second": 0.015
|
| 27 |
+
}
|
| 28 |
+
],
|
| 29 |
+
"logging_steps": 10,
|
| 30 |
+
"max_steps": 3,
|
| 31 |
+
"num_input_tokens_seen": 0,
|
| 32 |
+
"num_train_epochs": 1,
|
| 33 |
+
"save_steps": 500,
|
| 34 |
+
"stateful_callbacks": {
|
| 35 |
+
"TrainerControl": {
|
| 36 |
+
"args": {
|
| 37 |
+
"should_epoch_stop": false,
|
| 38 |
+
"should_evaluate": false,
|
| 39 |
+
"should_log": false,
|
| 40 |
+
"should_save": true,
|
| 41 |
+
"should_training_stop": true
|
| 42 |
+
},
|
| 43 |
+
"attributes": {}
|
| 44 |
+
}
|
| 45 |
+
},
|
| 46 |
+
"total_flos": 3.355230384370483e+16,
|
| 47 |
+
"train_batch_size": 16,
|
| 48 |
+
"trial_name": null,
|
| 49 |
+
"trial_params": null
|
| 50 |
+
}
|
trainer_state.json.sagemaker-uploaded
ADDED
|
File without changes
|
training_args.bin
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 6520
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:441bf1d619e881a2104e88d655daeeb8872b3ba8a79f41c69e024e0d02716a9e
|
| 3 |
size 6520
|
training_eval_loss.png
ADDED
|
training_eval_loss.png.sagemaker-uploaded
ADDED
|
File without changes
|