Text Generation
Transformers
Safetensors
Romanian
English
rost
romanian
bilingual
nanochat
conversational
custom_code
Instructions to use rostlabs/rost-1b-base with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use rostlabs/rost-1b-base with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="rostlabs/rost-1b-base", 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-base", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use rostlabs/rost-1b-base with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "rostlabs/rost-1b-base" # 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-base", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/rostlabs/rost-1b-base
- SGLang
How to use rostlabs/rost-1b-base 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-base" \ --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-base", "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-base" \ --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-base", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use rostlabs/rost-1b-base with Docker Model Runner:
docker model run hf.co/rostlabs/rost-1b-base
Upload meta_011136.json with huggingface_hub
Browse files- meta_011136.json +73 -0
meta_011136.json
ADDED
|
@@ -0,0 +1,73 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"step": 11136,
|
| 3 |
+
"val_bpb": null,
|
| 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 |
+
"rope_base": 100000
|
| 13 |
+
},
|
| 14 |
+
"user_config": {
|
| 15 |
+
"run": "rost-d24-production",
|
| 16 |
+
"device_type": "",
|
| 17 |
+
"compile_mode": "default",
|
| 18 |
+
"serial_compile_warmup": true,
|
| 19 |
+
"eager_optimizer": true,
|
| 20 |
+
"fp8": true,
|
| 21 |
+
"fp8_recipe": "tensorwise",
|
| 22 |
+
"depth": 24,
|
| 23 |
+
"aspect_ratio": 64,
|
| 24 |
+
"head_dim": 128,
|
| 25 |
+
"max_seq_len": 4096,
|
| 26 |
+
"window_pattern": "SSSL",
|
| 27 |
+
"rope_base": 100000,
|
| 28 |
+
"init_from_dir": null,
|
| 29 |
+
"init_from_step": null,
|
| 30 |
+
"num_iterations": -1,
|
| 31 |
+
"target_flops": -1.0,
|
| 32 |
+
"target_param_data_ratio": 16.0,
|
| 33 |
+
"device_batch_size": 8,
|
| 34 |
+
"total_batch_size": -1,
|
| 35 |
+
"embedding_lr": 0.3,
|
| 36 |
+
"unembedding_lr": 0.008,
|
| 37 |
+
"weight_decay": 0.28,
|
| 38 |
+
"matrix_lr": 0.02,
|
| 39 |
+
"scalar_lr": 0.5,
|
| 40 |
+
"warmup_steps": 40,
|
| 41 |
+
"warmdown_ratio": 0.3,
|
| 42 |
+
"final_lr_frac": 0.05,
|
| 43 |
+
"resume_from_step": 7795,
|
| 44 |
+
"stop_after_step": -1,
|
| 45 |
+
"reset_dataloader_on_resume": true,
|
| 46 |
+
"eval_every": -1,
|
| 47 |
+
"keep_last_n": 3,
|
| 48 |
+
"knowledge_every": -1,
|
| 49 |
+
"eval_tokens": 41943040,
|
| 50 |
+
"eval_device_batch_size": 4,
|
| 51 |
+
"eval_oom_policy": "contain",
|
| 52 |
+
"core_metric_every": 2000,
|
| 53 |
+
"core_metric_max_per_task": 500,
|
| 54 |
+
"sample_every": 2000,
|
| 55 |
+
"save_every": 400,
|
| 56 |
+
"no_save": false,
|
| 57 |
+
"model_tag": null
|
| 58 |
+
},
|
| 59 |
+
"device_batch_size": 8,
|
| 60 |
+
"max_seq_len": 4096,
|
| 61 |
+
"total_batch_size": 1048576,
|
| 62 |
+
"mix_manifest_sha256": "8507758167618e2797f4047daad90681a9b5198716fffb162f01617f55e7ffee",
|
| 63 |
+
"dataloader_state_dict": {
|
| 64 |
+
"pq_idx": 61,
|
| 65 |
+
"rg_idx": 32,
|
| 66 |
+
"epoch": 1
|
| 67 |
+
},
|
| 68 |
+
"loop_state": {
|
| 69 |
+
"min_val_bpb": Infinity,
|
| 70 |
+
"smooth_train_loss": 2.0582391531039184,
|
| 71 |
+
"total_training_time": 12804.236830234528
|
| 72 |
+
}
|
| 73 |
+
}
|