Text Generation
Transformers
Portuguese
English
nanochat
nanochatpt
portuguese
pt-pt
instruction-tuned
sft
conversational
european-portuguese
Instructions to use inaciose/inacio-sft-d16v1 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use inaciose/inacio-sft-d16v1 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="inaciose/inacio-sft-d16v1") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("inaciose/inacio-sft-d16v1", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use inaciose/inacio-sft-d16v1 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "inaciose/inacio-sft-d16v1" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "inaciose/inacio-sft-d16v1", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/inaciose/inacio-sft-d16v1
- SGLang
How to use inaciose/inacio-sft-d16v1 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 "inaciose/inacio-sft-d16v1" \ --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": "inaciose/inacio-sft-d16v1", "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 "inaciose/inacio-sft-d16v1" \ --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": "inaciose/inacio-sft-d16v1", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use inaciose/inacio-sft-d16v1 with Docker Model Runner:
docker model run hf.co/inaciose/inacio-sft-d16v1
Upload de d16
Browse files- meta_000699.json +38 -0
- model_000699.pt +3 -0
- optim_000699_rank0.pt +3 -0
- optim_000699_rank1.pt +3 -0
- optim_000699_rank2.pt +3 -0
- optim_000699_rank3.pt +3 -0
meta_000699.json
ADDED
|
@@ -0,0 +1,38 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"step": 699,
|
| 3 |
+
"val_bpb": 0.15301302843251394,
|
| 4 |
+
"model_config": {
|
| 5 |
+
"sequence_len": 2048,
|
| 6 |
+
"vocab_size": 65536,
|
| 7 |
+
"n_layer": 16,
|
| 8 |
+
"n_head": 8,
|
| 9 |
+
"n_kv_head": 8,
|
| 10 |
+
"n_embd": 1024,
|
| 11 |
+
"window_pattern": "SSSL"
|
| 12 |
+
},
|
| 13 |
+
"user_config": {
|
| 14 |
+
"run": "nanochatpt-d16-full",
|
| 15 |
+
"device_type": "",
|
| 16 |
+
"model_tag": null,
|
| 17 |
+
"model_step": null,
|
| 18 |
+
"load_optimizer": 1,
|
| 19 |
+
"num_iterations": -1,
|
| 20 |
+
"max_seq_len": null,
|
| 21 |
+
"device_batch_size": 4,
|
| 22 |
+
"total_batch_size": null,
|
| 23 |
+
"embedding_lr": null,
|
| 24 |
+
"unembedding_lr": null,
|
| 25 |
+
"matrix_lr": null,
|
| 26 |
+
"init_lr_frac": 0.8,
|
| 27 |
+
"warmup_ratio": 0.0,
|
| 28 |
+
"warmdown_ratio": 0.5,
|
| 29 |
+
"final_lr_frac": 0.0,
|
| 30 |
+
"eval_every": 200,
|
| 31 |
+
"eval_tokens": 20971520,
|
| 32 |
+
"chatcore_every": 200,
|
| 33 |
+
"chatcore_max_cat": -1,
|
| 34 |
+
"chatcore_max_sample": 24,
|
| 35 |
+
"mmlu_epochs": 3,
|
| 36 |
+
"gsm8k_epochs": 4
|
| 37 |
+
}
|
| 38 |
+
}
|
model_000699.pt
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:de2e19599a24daa1a5499b2bcc95d5247099f1f136d0f3fe01a46a968b7cda29
|
| 3 |
+
size 2281752258
|
optim_000699_rank0.pt
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:c141a24a54200c4f7b445b18885b3c01fd35a324bc26f4faabfbce9c47373f95
|
| 3 |
+
size 939735701
|
optim_000699_rank1.pt
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:5c2257490b31bc73498d867daac9057baeb238171a89d0e14302806cd23077be
|
| 3 |
+
size 939735701
|
optim_000699_rank2.pt
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:2a290ed5f8c138a3f005a65c6311962eeb52014b7c5f8959be3dadd11b95e028
|
| 3 |
+
size 939735701
|
optim_000699_rank3.pt
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:30aeccbe91f4b75ab11b08e46e32d9ea552b6fb181ea456c00f94658c54f6aca
|
| 3 |
+
size 939735701
|