Text Generation
Transformers
Safetensors
Portuguese
charlesmiller
nanochat
custom_code
educational
portuguese
pretrained
Instructions to use marlosb/CharlesMiller with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use marlosb/CharlesMiller with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="marlosb/CharlesMiller", trust_remote_code=True)# pip install -U transformers accelerate # Load model directly from transformers import AutoModelForCausalLM model = AutoModelForCausalLM.from_pretrained("marlosb/CharlesMiller", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use marlosb/CharlesMiller with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "marlosb/CharlesMiller" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "marlosb/CharlesMiller", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/marlosb/CharlesMiller
- SGLang
How to use marlosb/CharlesMiller 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 "marlosb/CharlesMiller" \ --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": "marlosb/CharlesMiller", "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 "marlosb/CharlesMiller" \ --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": "marlosb/CharlesMiller", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use marlosb/CharlesMiller with Docker Model Runner:
docker model run hf.co/marlosb/CharlesMiller
Download training_meta.json from marlosb/CharlesMiller: direct link, hf CLI and curl.
- Browser
- Download file 1.16 kB
-
https://huggingface.co/marlosb/CharlesMiller/resolve/main/training_meta.json
- Command line
-
hf download hf://marlosb/CharlesMiller/training_meta.json
-
curl -L -o training_meta.json https://huggingface.co/marlosb/CharlesMiller/resolve/main/training_meta.json
1.16 kB
| { | |
| "step": 2150400, | |
| "val_bpb": 0.9559380036717734, | |
| "model_config": { | |
| "sequence_len": 2048, | |
| "vocab_size": 65536, | |
| "n_layer": 24, | |
| "n_head": 12, | |
| "n_kv_head": 12, | |
| "n_embd": 1536 | |
| }, | |
| "user_config": { | |
| "run": "april1", | |
| "device_type": "", | |
| "depth": 24, | |
| "max_seq_len": 2048, | |
| "num_iterations": -1, | |
| "target_flops": -1.0, | |
| "target_param_data_ratio": 80, | |
| "device_batch_size": 8, | |
| "total_batch_size": 32768, | |
| "embedding_lr": 0.2, | |
| "unembedding_lr": 0.004, | |
| "weight_decay": 0.0, | |
| "matrix_lr": 0.02, | |
| "grad_clip": 1.0, | |
| "warmup_ratio": 0.0, | |
| "warmdown_ratio": 0.2, | |
| "final_lr_frac": 0.0, | |
| "resume_from_step": 1075200, | |
| "eval_every": 10000, | |
| "eval_tokens": 655360, | |
| "core_metric_every": 10000, | |
| "core_metric_max_per_task": 500, | |
| "sample_every": 50000, | |
| "save_every": 50000, | |
| "model_tag": "" | |
| }, | |
| "device_batch_size": 8, | |
| "max_seq_len": 2048, | |
| "dataloader_state_dict": { | |
| "pq_idx": 151, | |
| "rg_idx": 38 | |
| }, | |
| "loop_state": { | |
| "min_val_bpb": 0.7217649959789771, | |
| "smooth_train_loss": 2.6307919472590373, | |
| "total_training_time": 1272341.5438666344 | |
| } | |
| } |