Text Generation
Transformers
Safetensors
Russian
llama
russian
causal-lm
continued-pretraining
cpt
tiny
text-generation-inference
Instructions to use MetaCore-LLM/MetaCore-1-Test-CPT with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use MetaCore-LLM/MetaCore-1-Test-CPT with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="MetaCore-LLM/MetaCore-1-Test-CPT")# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("MetaCore-LLM/MetaCore-1-Test-CPT") model = AutoModelForCausalLM.from_pretrained("MetaCore-LLM/MetaCore-1-Test-CPT", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use MetaCore-LLM/MetaCore-1-Test-CPT with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "MetaCore-LLM/MetaCore-1-Test-CPT" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "MetaCore-LLM/MetaCore-1-Test-CPT", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/MetaCore-LLM/MetaCore-1-Test-CPT
- SGLang
How to use MetaCore-LLM/MetaCore-1-Test-CPT 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 "MetaCore-LLM/MetaCore-1-Test-CPT" \ --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": "MetaCore-LLM/MetaCore-1-Test-CPT", "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 "MetaCore-LLM/MetaCore-1-Test-CPT" \ --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": "MetaCore-LLM/MetaCore-1-Test-CPT", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use MetaCore-LLM/MetaCore-1-Test-CPT with Docker Model Runner:
docker model run hf.co/MetaCore-LLM/MetaCore-1-Test-CPT
| { | |
| "best_global_step": null, | |
| "best_metric": null, | |
| "best_model_checkpoint": null, | |
| "epoch": 0.64, | |
| "eval_steps": 500, | |
| "global_step": 500, | |
| "is_hyper_param_search": false, | |
| "is_local_process_zero": true, | |
| "is_world_process_zero": true, | |
| "log_history": [ | |
| { | |
| "epoch": 0.0256, | |
| "grad_norm": 0.6669269800186157, | |
| "learning_rate": 1.9e-05, | |
| "loss": 8.179115295410156, | |
| "step": 20 | |
| }, | |
| { | |
| "epoch": 0.0512, | |
| "grad_norm": 0.5379630327224731, | |
| "learning_rate": 3.9000000000000006e-05, | |
| "loss": 8.11802978515625, | |
| "step": 40 | |
| }, | |
| { | |
| "epoch": 0.0768, | |
| "grad_norm": 0.5859383940696716, | |
| "learning_rate": 5.9e-05, | |
| "loss": 8.041471862792969, | |
| "step": 60 | |
| }, | |
| { | |
| "epoch": 0.1024, | |
| "grad_norm": 0.6329635381698608, | |
| "learning_rate": 7.900000000000001e-05, | |
| "loss": 7.967082977294922, | |
| "step": 80 | |
| }, | |
| { | |
| "epoch": 0.128, | |
| "grad_norm": 0.7737689018249512, | |
| "learning_rate": 9.900000000000001e-05, | |
| "loss": 7.894486999511718, | |
| "step": 100 | |
| }, | |
| { | |
| "epoch": 0.1536, | |
| "grad_norm": 1.0059387683868408, | |
| "learning_rate": 9.721407624633431e-05, | |
| "loss": 7.814192199707032, | |
| "step": 120 | |
| }, | |
| { | |
| "epoch": 0.1792, | |
| "grad_norm": 0.804948091506958, | |
| "learning_rate": 9.428152492668623e-05, | |
| "loss": 7.729258728027344, | |
| "step": 140 | |
| }, | |
| { | |
| "epoch": 0.2048, | |
| "grad_norm": 0.9692172408103943, | |
| "learning_rate": 9.134897360703812e-05, | |
| "loss": 7.668946838378906, | |
| "step": 160 | |
| }, | |
| { | |
| "epoch": 0.2304, | |
| "grad_norm": 0.9547553062438965, | |
| "learning_rate": 8.841642228739004e-05, | |
| "loss": 7.622274780273438, | |
| "step": 180 | |
| }, | |
| { | |
| "epoch": 0.256, | |
| "grad_norm": 0.6002941727638245, | |
| "learning_rate": 8.548387096774195e-05, | |
| "loss": 7.579273986816406, | |
| "step": 200 | |
| }, | |
| { | |
| "epoch": 0.2816, | |
| "grad_norm": 0.8823673725128174, | |
| "learning_rate": 8.255131964809384e-05, | |
| "loss": 7.519114685058594, | |
| "step": 220 | |
| }, | |
| { | |
| "epoch": 0.3072, | |
| "grad_norm": 1.0416988134384155, | |
| "learning_rate": 7.961876832844574e-05, | |
| "loss": 7.484053039550782, | |
| "step": 240 | |
| }, | |
| { | |
| "epoch": 0.3328, | |
| "grad_norm": 0.735251784324646, | |
| "learning_rate": 7.668621700879765e-05, | |
| "loss": 7.443171691894531, | |
| "step": 260 | |
| }, | |
| { | |
| "epoch": 0.3584, | |
| "grad_norm": 1.0857356786727905, | |
| "learning_rate": 7.375366568914957e-05, | |
| "loss": 7.403555297851563, | |
| "step": 280 | |
| }, | |
| { | |
| "epoch": 0.384, | |
| "grad_norm": 0.9961302280426025, | |
| "learning_rate": 7.082111436950148e-05, | |
| "loss": 7.371603393554688, | |
| "step": 300 | |
| }, | |
| { | |
| "epoch": 0.4096, | |
| "grad_norm": 0.8889548182487488, | |
| "learning_rate": 6.788856304985338e-05, | |
| "loss": 7.352679443359375, | |
| "step": 320 | |
| }, | |
| { | |
| "epoch": 0.4352, | |
| "grad_norm": 1.0873897075653076, | |
| "learning_rate": 6.495601173020527e-05, | |
| "loss": 7.3021392822265625, | |
| "step": 340 | |
| }, | |
| { | |
| "epoch": 0.4608, | |
| "grad_norm": 0.7345384359359741, | |
| "learning_rate": 6.202346041055719e-05, | |
| "loss": 7.2823539733886715, | |
| "step": 360 | |
| }, | |
| { | |
| "epoch": 0.4864, | |
| "grad_norm": 0.6853398084640503, | |
| "learning_rate": 5.90909090909091e-05, | |
| "loss": 7.260960388183594, | |
| "step": 380 | |
| }, | |
| { | |
| "epoch": 0.512, | |
| "grad_norm": 0.9110084772109985, | |
| "learning_rate": 5.6158357771260995e-05, | |
| "loss": 7.228886413574219, | |
| "step": 400 | |
| }, | |
| { | |
| "epoch": 0.5376, | |
| "grad_norm": 1.127113938331604, | |
| "learning_rate": 5.32258064516129e-05, | |
| "loss": 7.202789306640625, | |
| "step": 420 | |
| }, | |
| { | |
| "epoch": 0.5632, | |
| "grad_norm": 0.7524133324623108, | |
| "learning_rate": 5.029325513196481e-05, | |
| "loss": 7.181660461425781, | |
| "step": 440 | |
| }, | |
| { | |
| "epoch": 0.5888, | |
| "grad_norm": 0.7863721251487732, | |
| "learning_rate": 4.736070381231672e-05, | |
| "loss": 7.178968048095703, | |
| "step": 460 | |
| }, | |
| { | |
| "epoch": 0.6144, | |
| "grad_norm": 0.9041445851325989, | |
| "learning_rate": 4.442815249266862e-05, | |
| "loss": 7.156215667724609, | |
| "step": 480 | |
| }, | |
| { | |
| "epoch": 0.64, | |
| "grad_norm": 0.9909660220146179, | |
| "learning_rate": 4.149560117302053e-05, | |
| "loss": 7.125262451171875, | |
| "step": 500 | |
| } | |
| ], | |
| "logging_steps": 20, | |
| "max_steps": 782, | |
| "num_input_tokens_seen": 0, | |
| "num_train_epochs": 1, | |
| "save_steps": 500, | |
| "stateful_callbacks": { | |
| "TrainerControl": { | |
| "args": { | |
| "should_epoch_stop": false, | |
| "should_evaluate": false, | |
| "should_log": false, | |
| "should_save": true, | |
| "should_training_stop": false | |
| }, | |
| "attributes": {} | |
| } | |
| }, | |
| "total_flos": 166311572275200.0, | |
| "train_batch_size": 4, | |
| "trial_name": null, | |
| "trial_params": null | |
| } | |