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
Training in progress, epoch 0
Browse files- model-00001-of-00004.safetensors +1 -1
- model-00002-of-00004.safetensors +1 -1
- model-00003-of-00004.safetensors +1 -1
- model-00004-of-00004.safetensors +1 -1
- trainer_log.jsonl +6 -2
- training_args.bin +2 -2
model-00001-of-00004.safetensors
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 4976698672
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:5fe539379e2d7db955eeb676cd8d9f54e2e235f030bf3e11e1e28087bf9a2d87
|
| 3 |
size 4976698672
|
model-00002-of-00004.safetensors
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 4999802720
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:6464d95d51be7644f72596bcb8be974b9763735a7b9f9716f6fc23a9cbb258a6
|
| 3 |
size 4999802720
|
model-00003-of-00004.safetensors
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 4915916176
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:2411be315fd7e1c238c0c358255a9ca8cb559ac7c9f9df7d3145fc0374654aa2
|
| 3 |
size 4915916176
|
model-00004-of-00004.safetensors
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 1168138808
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:6ea974b209c1000324a60d7522f76fad8acd259f36bb4d3acf7b044acf4b1b0b
|
| 3 |
size 1168138808
|
trainer_log.jsonl
CHANGED
|
@@ -1,2 +1,6 @@
|
|
| 1 |
-
{"current_steps":
|
| 2 |
-
{"current_steps":
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{"current_steps": 1, "total_steps": 9, "loss": 1.9082, "learning_rate": 5e-06, "epoch": 0.26666666666666666, "percentage": 11.11, "elapsed_time": "0:00:29", "remaining_time": "0:03:59"}
|
| 2 |
+
{"current_steps": 2, "total_steps": 9, "loss": 1.829, "learning_rate": 5e-06, "epoch": 0.5333333333333333, "percentage": 22.22, "elapsed_time": "0:00:59", "remaining_time": "0:03:27"}
|
| 3 |
+
{"current_steps": 3, "total_steps": 9, "loss": 1.7257, "learning_rate": 5e-06, "epoch": 0.8, "percentage": 33.33, "elapsed_time": "0:01:28", "remaining_time": "0:02:57"}
|
| 4 |
+
{"current_steps": 3, "total_steps": 9, "eval_loss": NaN, "epoch": 0.8, "percentage": 33.33, "elapsed_time": "0:01:51", "remaining_time": "0:03:43"}
|
| 5 |
+
{"current_steps": 4, "total_steps": 9, "loss": 0.0, "learning_rate": 5e-06, "epoch": 1.0666666666666667, "percentage": 44.44, "elapsed_time": "0:03:21", "remaining_time": "0:04:12"}
|
| 6 |
+
{"current_steps": 5, "total_steps": 9, "loss": 0.0, "learning_rate": 5e-06, "epoch": 1.3333333333333333, "percentage": 55.56, "elapsed_time": "0:03:51", "remaining_time": "0:03:05"}
|
training_args.bin
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:47d97db45d31eda652e782e150269ce3dd7051463d4229b0ee00079a25b1fec3
|
| 3 |
+
size 6776
|