Instructions to use wetsoledrysoul/intermediate_checkpoints with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use wetsoledrysoul/intermediate_checkpoints with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="wetsoledrysoul/intermediate_checkpoints") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("wetsoledrysoul/intermediate_checkpoints") model = AutoModelForCausalLM.from_pretrained("wetsoledrysoul/intermediate_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=40) print(tokenizer.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use wetsoledrysoul/intermediate_checkpoints with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "wetsoledrysoul/intermediate_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": "wetsoledrysoul/intermediate_checkpoints", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/wetsoledrysoul/intermediate_checkpoints
- SGLang
How to use wetsoledrysoul/intermediate_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 "wetsoledrysoul/intermediate_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": "wetsoledrysoul/intermediate_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 "wetsoledrysoul/intermediate_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": "wetsoledrysoul/intermediate_checkpoints", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use wetsoledrysoul/intermediate_checkpoints with Docker Model Runner:
docker model run hf.co/wetsoledrysoul/intermediate_checkpoints
End of training
Browse files- README.md +1 -1
- config.json +1 -1
- generation_config.json +0 -1
- model.safetensors +1 -1
- tokenizer_config.json +1 -1
- training_args.bin +2 -2
README.md
CHANGED
|
@@ -26,7 +26,7 @@ print(output["generated_text"])
|
|
| 26 |
|
| 27 |
## Training procedure
|
| 28 |
|
| 29 |
-
[<img src="https://raw.githubusercontent.com/wandb/assets/main/wandb-github-badge-28.svg" alt="Visualize in Weights & Biases" width="150" height="24"/>](https://wandb.ai/CodeShield/CerebRM-GRPO-0925/runs/
|
| 30 |
|
| 31 |
|
| 32 |
|
|
|
|
| 26 |
|
| 27 |
## Training procedure
|
| 28 |
|
| 29 |
+
[<img src="https://raw.githubusercontent.com/wandb/assets/main/wandb-github-badge-28.svg" alt="Visualize in Weights & Biases" width="150" height="24"/>](https://wandb.ai/CodeShield/CerebRM-GRPO-0925/runs/ozbzok0a)
|
| 30 |
|
| 31 |
|
| 32 |
|
config.json
CHANGED
|
@@ -6,7 +6,7 @@
|
|
| 6 |
"attention_dropout": 0.0,
|
| 7 |
"bos_token_id": 100257,
|
| 8 |
"dtype": "bfloat16",
|
| 9 |
-
"eos_token_id":
|
| 10 |
"hidden_act": "silu",
|
| 11 |
"hidden_size": 4096,
|
| 12 |
"initializer_range": 0.02,
|
|
|
|
| 6 |
"attention_dropout": 0.0,
|
| 7 |
"bos_token_id": 100257,
|
| 8 |
"dtype": "bfloat16",
|
| 9 |
+
"eos_token_id": 100257,
|
| 10 |
"hidden_act": "silu",
|
| 11 |
"hidden_size": 4096,
|
| 12 |
"initializer_range": 0.02,
|
generation_config.json
CHANGED
|
@@ -3,7 +3,6 @@
|
|
| 3 |
"bos_token_id": 100257,
|
| 4 |
"do_sample": true,
|
| 5 |
"eos_token_id": [
|
| 6 |
-
100265,
|
| 7 |
100265,
|
| 8 |
100257
|
| 9 |
],
|
|
|
|
| 3 |
"bos_token_id": 100257,
|
| 4 |
"do_sample": true,
|
| 5 |
"eos_token_id": [
|
|
|
|
| 6 |
100265,
|
| 7 |
100257
|
| 8 |
],
|
model.safetensors
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 14596063960
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:a33458568dcbcf8afb59540965e2a9519ed66b935919191f2e6ed8d8f7bfc0f9
|
| 3 |
size 14596063960
|
tokenizer_config.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
| 3 |
"backend": "tokenizers",
|
| 4 |
"bos_token": "<|endoftext|>",
|
| 5 |
"clean_up_tokenization_spaces": false,
|
| 6 |
-
"eos_token": "<|
|
| 7 |
"is_local": true,
|
| 8 |
"local_files_only": false,
|
| 9 |
"model_max_length": 65536,
|
|
|
|
| 3 |
"backend": "tokenizers",
|
| 4 |
"bos_token": "<|endoftext|>",
|
| 5 |
"clean_up_tokenization_spaces": false,
|
| 6 |
+
"eos_token": "<|endoftext|>",
|
| 7 |
"is_local": true,
|
| 8 |
"local_files_only": false,
|
| 9 |
"model_max_length": 65536,
|
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:3f305423f5d0a50eec9c5c26e4d5344caae8eef3ebf4286283142f3365ba455e
|
| 3 |
+
size 9553
|