Instructions to use craa/100M__1208 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use craa/100M__1208 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="craa/100M__1208")# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("craa/100M__1208") model = AutoModelForCausalLM.from_pretrained("craa/100M__1208") - Notebooks
- Google Colab
- Kaggle
- Local Apps
- vLLM
How to use craa/100M__1208 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "craa/100M__1208" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "craa/100M__1208", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/craa/100M__1208
- SGLang
How to use craa/100M__1208 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 "craa/100M__1208" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "craa/100M__1208", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'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 "craa/100M__1208" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "craa/100M__1208", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use craa/100M__1208 with Docker Model Runner:
docker model run hf.co/craa/100M__1208
Training in progress, step 40000, checkpoint
Browse files- checkpoint-40000/config.json +31 -0
- checkpoint-40000/generation_config.json +6 -0
- checkpoint-40000/model.safetensors +3 -0
- checkpoint-40000/optimizer.pt +3 -0
- checkpoint-40000/rng_state.pth +3 -0
- checkpoint-40000/scheduler.pt +3 -0
- checkpoint-40000/special_tokens_map.json +1 -0
- checkpoint-40000/tokenizer.json +0 -0
- checkpoint-40000/tokenizer_config.json +0 -0
- checkpoint-40000/trainer_state.json +0 -0
- checkpoint-40000/training_args.bin +3 -0
checkpoint-40000/config.json
ADDED
|
@@ -0,0 +1,31 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"activation_function": "gelu_new",
|
| 3 |
+
"architectures": [
|
| 4 |
+
"GPT2LMHeadModel"
|
| 5 |
+
],
|
| 6 |
+
"attn_pdrop": 0.1,
|
| 7 |
+
"bos_token_id": 50256,
|
| 8 |
+
"embd_pdrop": 0.1,
|
| 9 |
+
"eos_token_id": 50256,
|
| 10 |
+
"initializer_range": 0.02,
|
| 11 |
+
"layer_norm_epsilon": 1e-05,
|
| 12 |
+
"model_type": "gpt2",
|
| 13 |
+
"n_embd": 768,
|
| 14 |
+
"n_head": 12,
|
| 15 |
+
"n_inner": null,
|
| 16 |
+
"n_layer": 12,
|
| 17 |
+
"n_positions": 1024,
|
| 18 |
+
"reorder_and_upcast_attn": false,
|
| 19 |
+
"resid_pdrop": 0.1,
|
| 20 |
+
"scale_attn_by_inverse_layer_idx": false,
|
| 21 |
+
"scale_attn_weights": true,
|
| 22 |
+
"summary_activation": null,
|
| 23 |
+
"summary_first_dropout": 0.1,
|
| 24 |
+
"summary_proj_to_labels": true,
|
| 25 |
+
"summary_type": "cls_index",
|
| 26 |
+
"summary_use_proj": true,
|
| 27 |
+
"torch_dtype": "float32",
|
| 28 |
+
"transformers_version": "4.47.0.dev0",
|
| 29 |
+
"use_cache": true,
|
| 30 |
+
"vocab_size": 52000
|
| 31 |
+
}
|
checkpoint-40000/generation_config.json
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"_from_model_config": true,
|
| 3 |
+
"bos_token_id": 50256,
|
| 4 |
+
"eos_token_id": 50256,
|
| 5 |
+
"transformers_version": "4.47.0.dev0"
|
| 6 |
+
}
|
checkpoint-40000/model.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:97265e7af8f5602b1220c8befa320e60d1a1c2d849b48a0d233ccc656f302ece
|
| 3 |
+
size 503128704
|
checkpoint-40000/optimizer.pt
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:cef9f99926dc6625a74f60f71334849bb748252db99a52c4de335c4b2975db73
|
| 3 |
+
size 1006351290
|
checkpoint-40000/rng_state.pth
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:19ba887dd6a8bb45c124fc9373d7728b64dd3572436551648f23f719e88c23af
|
| 3 |
+
size 14244
|
checkpoint-40000/scheduler.pt
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:cda709ce6db6ea677bf2c35006eba0950fffcce78f364852ac2675a0f161f729
|
| 3 |
+
size 1064
|
checkpoint-40000/special_tokens_map.json
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
{}
|
checkpoint-40000/tokenizer.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
checkpoint-40000/tokenizer_config.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
checkpoint-40000/trainer_state.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
checkpoint-40000/training_args.bin
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:ac28028fd9c53af1f06caf0d4841e7de5acf445d150f28e624c595d75b8f8c13
|
| 3 |
+
size 5304
|