Instructions to use jumelet/test with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use jumelet/test with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="jumelet/test")# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("jumelet/test") model = AutoModelForCausalLM.from_pretrained("jumelet/test") - Notebooks
- Google Colab
- Kaggle
- Local Apps
- vLLM
How to use jumelet/test with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "jumelet/test" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "jumelet/test", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/jumelet/test
- SGLang
How to use jumelet/test 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 "jumelet/test" \ --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": "jumelet/test", "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 "jumelet/test" \ --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": "jumelet/test", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use jumelet/test with Docker Model Runner:
docker model run hf.co/jumelet/test
Training in progress, step 1560
Browse files- config.json +3 -3
- pytorch_model.bin +2 -2
- tokenizer.json +10 -10
- training_args.bin +2 -2
config.json
CHANGED
|
@@ -19,10 +19,10 @@
|
|
| 19 |
"layer_norm_epsilon": 1e-05,
|
| 20 |
"model_type": "gpt2",
|
| 21 |
"n_ctx": 1024,
|
| 22 |
-
"n_embd":
|
| 23 |
-
"n_head":
|
| 24 |
"n_inner": null,
|
| 25 |
-
"n_layer":
|
| 26 |
"n_positions": 30,
|
| 27 |
"reorder_and_upcast_attn": false,
|
| 28 |
"resid_pdrop": 0.1,
|
|
|
|
| 19 |
"layer_norm_epsilon": 1e-05,
|
| 20 |
"model_type": "gpt2",
|
| 21 |
"n_ctx": 1024,
|
| 22 |
+
"n_embd": 128,
|
| 23 |
+
"n_head": 8,
|
| 24 |
"n_inner": null,
|
| 25 |
+
"n_layer": 8,
|
| 26 |
"n_positions": 30,
|
| 27 |
"reorder_and_upcast_attn": false,
|
| 28 |
"resid_pdrop": 0.1,
|
pytorch_model.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:a1a99ee956ced27cabbbf246e778f46148647460f70704e38249498916396652
|
| 3 |
+
size 6400794
|
tokenizer.json
CHANGED
|
@@ -94,16 +94,16 @@
|
|
| 94 |
"<pad>": 1,
|
| 95 |
"<mask>": 2,
|
| 96 |
"<bos>": 3,
|
| 97 |
-
"
|
| 98 |
-
"
|
| 99 |
-
"
|
| 100 |
-
"
|
| 101 |
-
"
|
| 102 |
-
"
|
| 103 |
-
"
|
| 104 |
-
"
|
| 105 |
-
"
|
| 106 |
-
"
|
| 107 |
},
|
| 108 |
"unk_token": "<unk>"
|
| 109 |
}
|
|
|
|
| 94 |
"<pad>": 1,
|
| 95 |
"<mask>": 2,
|
| 96 |
"<bos>": 3,
|
| 97 |
+
"Tuesday": 4,
|
| 98 |
+
"that": 5,
|
| 99 |
+
"and": 6,
|
| 100 |
+
"Today": 7,
|
| 101 |
+
"meant": 8,
|
| 102 |
+
",": 9,
|
| 103 |
+
".": 10,
|
| 104 |
+
"was": 11,
|
| 105 |
+
"class": 12,
|
| 106 |
+
"Bible": 13
|
| 107 |
},
|
| 108 |
"unk_token": "<unk>"
|
| 109 |
}
|
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:d86cf3b1d355bd091e9e110f95a0fada81eda87e79cf3c112a09ce19a56297d5
|
| 3 |
+
size 4472
|