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)# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("sedrickkeh/checkpoints") model = AutoModelForCausalLM.from_pretrained("sedrickkeh/checkpoints", device_map="auto") 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=256) print(tokenizer.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- 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
Commit History
-
Model save
Verified signature62b38d4 -
Training in progress, epoch 1
Verified signaturec0bd915
-
Model save
Verified signature1c0449f -
Training in progress, epoch 0
Verified signaturee57dcb8 -
Training in progress, epoch 0
Verified signatureb2e3d05 -
Training in progress, epoch 0
Verified signaturea75f56c -
Model save
Verified signature6b82c31 -
Training in progress, epoch 0
Verified signatured191975 -
Training in progress, epoch 0
Verified signature2a38452 -
Model save
Verified signaturea422277 -
Training in progress, epoch 0
Verified signature6e5d471
-
Model save
Verified signature1dfbadf -
Training in progress, epoch 0
Verified signature3002958 -
Model save
Verified signature3853258 -
Training in progress, epoch 0
Verified signaturede0642d -
Model save
Verified signatureee6a944 -
Training in progress, epoch 0
Verified signaturea595f0b -
Model save
Verified signaturedf50654 -
Training in progress, epoch 0
Verified signaturebece50b -
Model save
Verified signature953b874 -
Training in progress, epoch 0
Verified signaturee8a2c43 -
Model save
Verified signatureef92fda -
Training in progress, epoch 0
Verified signature2620b66 -
Model save
Verified signaturedbb4a93 -
Training in progress, epoch 0
Verified signaturee0e58e8 -
Training in progress, epoch 0
Verified signature2ca9a73 -
Training in progress, epoch 0
Verified signature1a69a4b -
Training in progress, epoch 0
Verified signature6de13e6
-
Training in progress, epoch 0
Verified signaturecac2433 -
Training in progress, epoch 0
Verified signatureea22fb2 -
Model save
Verified signature5306d2f -
Model save
Verified signature16ba6cf -
Training in progress, epoch 0
Verified signatureb6e5f96 -
Training in progress, epoch 0
Verified signaturee764ac9 -
Training in progress, epoch 0
Verified signature44f858b -
Training in progress, epoch 0
Verified signaturec8f6327 -
Model save
Verified signature9558d95 -
Training in progress, epoch 0
Verified signature7bc737b -
Training in progress, epoch 0
Verified signature7d5a99b -
Training in progress, epoch 0
Verified signaturefccd431 -
Training in progress, epoch 0
Verified signature2488772
-
Training in progress, epoch 1
Verified signatureb487190 -
Training in progress, epoch 1
Verified signature59adeae
-
Training in progress, epoch 1
Verified signature432e2ea -
Training in progress, epoch 1
Verified signaturebb7f7de -
Training in progress, epoch 1
Verified signaturefa2856f -
Training in progress, epoch 1
Verified signaturefc50cba -
Training in progress, epoch 1
Verified signature996c766 -
Training in progress, epoch 1
Verified signature0a3eb3b -
Training in progress, epoch 0
Verified signature1ab6557