Text Generation
Transformers
Safetensors
Romanian
English
rost
romanian
bilingual
nanochat
conversational
custom_code
Instructions to use rostlabs/rost-1b-instruct with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use rostlabs/rost-1b-instruct with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="rostlabs/rost-1b-instruct", trust_remote_code=True) messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# Load model directly from transformers import AutoModelForCausalLM model = AutoModelForCausalLM.from_pretrained("rostlabs/rost-1b-instruct", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use rostlabs/rost-1b-instruct with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "rostlabs/rost-1b-instruct" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "rostlabs/rost-1b-instruct", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/rostlabs/rost-1b-instruct
- SGLang
How to use rostlabs/rost-1b-instruct 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 "rostlabs/rost-1b-instruct" \ --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": "rostlabs/rost-1b-instruct", "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 "rostlabs/rost-1b-instruct" \ --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": "rostlabs/rost-1b-instruct", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use rostlabs/rost-1b-instruct with Docker Model Runner:
docker model run hf.co/rostlabs/rost-1b-instruct
Upload meta_000387.json with huggingface_hub
Browse files- meta_000387.json +57 -0
meta_000387.json
ADDED
|
@@ -0,0 +1,57 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"step": 387,
|
| 3 |
+
"val_bpb": 0.3020884011575493,
|
| 4 |
+
"model_config": {
|
| 5 |
+
"sequence_len": 4096,
|
| 6 |
+
"vocab_size": 32768,
|
| 7 |
+
"n_layer": 24,
|
| 8 |
+
"n_head": 12,
|
| 9 |
+
"n_kv_head": 12,
|
| 10 |
+
"n_embd": 1536,
|
| 11 |
+
"window_pattern": "SSSL"
|
| 12 |
+
},
|
| 13 |
+
"user_config": {
|
| 14 |
+
"run": "rost-d24-production",
|
| 15 |
+
"mixture": "romanian",
|
| 16 |
+
"identity_name": "rost",
|
| 17 |
+
"device_type": "",
|
| 18 |
+
"compile_mode": "default",
|
| 19 |
+
"serial_compile_warmup": true,
|
| 20 |
+
"eager_optimizer": true,
|
| 21 |
+
"init_source": "base",
|
| 22 |
+
"model_tag": null,
|
| 23 |
+
"model_step": null,
|
| 24 |
+
"output_model_tag": null,
|
| 25 |
+
"load_optimizer": 1,
|
| 26 |
+
"num_iterations": -1,
|
| 27 |
+
"max_seq_len": null,
|
| 28 |
+
"device_batch_size": 8,
|
| 29 |
+
"total_batch_size": null,
|
| 30 |
+
"embedding_lr": null,
|
| 31 |
+
"unembedding_lr": null,
|
| 32 |
+
"matrix_lr": null,
|
| 33 |
+
"init_lr_frac": 0.8,
|
| 34 |
+
"warmup_ratio": 0.0,
|
| 35 |
+
"warmdown_ratio": 0.5,
|
| 36 |
+
"final_lr_frac": 0.0,
|
| 37 |
+
"grad_clip": 0.0,
|
| 38 |
+
"eval_every": 200,
|
| 39 |
+
"eval_tokens": 20971520,
|
| 40 |
+
"save_every": 100,
|
| 41 |
+
"eval_device_batch_size": 4,
|
| 42 |
+
"chatcore_batch_size": -1,
|
| 43 |
+
"eval_oom_policy": "contain",
|
| 44 |
+
"chatcore_every": 200,
|
| 45 |
+
"chatcore_max_cat": -1,
|
| 46 |
+
"chatcore_max_sample": 24,
|
| 47 |
+
"dialogue_frac": 0.0,
|
| 48 |
+
"english_frac": 0.25,
|
| 49 |
+
"ro_gsm8k_epochs": 0,
|
| 50 |
+
"agent_traces": null,
|
| 51 |
+
"agent_epochs": 1,
|
| 52 |
+
"agent_frac": 0.0,
|
| 53 |
+
"agent_max_repeats": 1000,
|
| 54 |
+
"mmlu_epochs": 3,
|
| 55 |
+
"gsm8k_epochs": 4
|
| 56 |
+
}
|
| 57 |
+
}
|