Text Generation
Transformers
Safetensors
llama
axolotl
Generated from Trainer
conversational
text-generation-inference
Run this model with HF Jobs
Run SystemAdmin123/tiny-random-LlamaForCausalLM on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.
Paste one of these prompts into your coding agent:
Fine-tune on my dataset
Use HF Jobs and TRL to fine-tune https://huggingface.co/SystemAdmin123/tiny-random-LlamaForCausalLM. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.
Run batch inference
Use HF Jobs to run batch inference with https://huggingface.co/SystemAdmin123/tiny-random-LlamaForCausalLM on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
Evaluate on a benchmark
Use HF Jobs to evaluate https://huggingface.co/SystemAdmin123/tiny-random-LlamaForCausalLM. Ask me which benchmark to run, then save the scores and the per-example results to a new dataset repo. Run `hf jobs --help` first to learn the CLI.
Quantize for lower memory use
Use HF Jobs to create a 4-bit version of https://huggingface.co/SystemAdmin123/tiny-random-LlamaForCausalLM. Push it to a new model repo, then reload it from there and report its memory footprint. Run `hf jobs --help` first to learn the CLI.
Instructions to use SystemAdmin123/tiny-random-LlamaForCausalLM with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use SystemAdmin123/tiny-random-LlamaForCausalLM with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="SystemAdmin123/tiny-random-LlamaForCausalLM") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("SystemAdmin123/tiny-random-LlamaForCausalLM") model = AutoModelForCausalLM.from_pretrained("SystemAdmin123/tiny-random-LlamaForCausalLM", device_map="auto") messages = [ {"role": "user", "content": "Who are you?"}, ] inputs = tokenizer.apply_chat_template( messages, add_generation_prompt=True, tokenize=True, return_dict=True, return_tensors="pt", ).to(model.device) outputs = model.generate(**inputs, max_new_tokens=256) print(tokenizer.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use SystemAdmin123/tiny-random-LlamaForCausalLM with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "SystemAdmin123/tiny-random-LlamaForCausalLM" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "SystemAdmin123/tiny-random-LlamaForCausalLM", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/SystemAdmin123/tiny-random-LlamaForCausalLM
- SGLang
How to use SystemAdmin123/tiny-random-LlamaForCausalLM 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 "SystemAdmin123/tiny-random-LlamaForCausalLM" \ --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": "SystemAdmin123/tiny-random-LlamaForCausalLM", "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 "SystemAdmin123/tiny-random-LlamaForCausalLM" \ --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": "SystemAdmin123/tiny-random-LlamaForCausalLM", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use SystemAdmin123/tiny-random-LlamaForCausalLM with Docker Model Runner:
docker model run hf.co/SystemAdmin123/tiny-random-LlamaForCausalLM
Training in progress, step 350, checkpoint
Browse filesFiles changed (6)
123version https://git-lfs.github.com/spec/v1oid sha256:8f094722188717075439138e1e791728eb83dc89ede5725094ba20a9394827cbsize 2066752123version https://git-lfs.github.com/spec/v1oid sha256:e64c8f22073f810e14ea11a51c997d214e79493ceb718231c712f6890686cd0asize 2066752
123version https://git-lfs.github.com/spec/v1oid sha256:13798eed199d0e8f7d444eff9af7f40acdebc84529bd74f913cce85929e905b5size 2162798123version https://git-lfs.github.com/spec/v1oid sha256:5f58b607dd2bb3376b1a270f24d36d7e6ad6b3fbcf77fb0f3a3fa5f5a10a5ee3size 2162798
123version https://git-lfs.github.com/spec/v1oid sha256:0eaa843a45d8e738cee2ae0531250a101659f24a1b6fb71ecb838949839be942size 14512123version https://git-lfs.github.com/spec/v1oid sha256:cb5daaf1199744204be7b2c0227bbbc86b8f02198eb2753856850454b418ba43size 14512
123version https://git-lfs.github.com/spec/v1oid sha256:946dbb58346f352ba6907add2b54217151d2cb0118b1f9eb15982ba30ba98cc3size 14512123version https://git-lfs.github.com/spec/v1oid sha256:0ef0a11ec368bc2c0da98c701c736f96e203337d9c97fab18e13b92ce5dd6d5bsize 14512
123version https://git-lfs.github.com/spec/v1oid sha256:4c62f46b6ecdcc9452fbe00042ae2d6095daf65d97a17c5763e0d0ed253cea52size 1064123version https://git-lfs.github.com/spec/v1oid sha256:972684576ff55802aec9ad573b837fe663d45ec783d38050b5b6dc1fc7271117size 1064
123456789263 unmodified lines27327427527627727813 unmodified lines292293294295296297298{"best_metric": null,"best_model_checkpoint": null,"epoch": 23.076923076923077,"eval_steps": 50,"global_step": 300,"is_hyper_param_search": false,"is_local_process_zero": true,"is_world_process_zero": true,263 unmodified lines"eval_samples_per_second": 284.199,"eval_steps_per_second": 4.544,"step": 300}],"logging_steps": 10,13 unmodified lines"attributes": {}}},"total_flos": 122747564851200.0,"train_batch_size": 32,"trial_name": null,"trial_params": null123456789263 unmodified lines27327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032113 unmodified lines335336337338339340341{"best_metric": null,"best_model_checkpoint": null,"epoch": 26.923076923076923,"eval_steps": 50,"global_step": 350,"is_hyper_param_search": false,"is_local_process_zero": true,"is_world_process_zero": true,263 unmodified lines"eval_samples_per_second": 284.199,"eval_steps_per_second": 4.544,"step": 300},{"epoch": 23.846153846153847,"grad_norm": 0.412109375,"learning_rate": 0.00010275543423681621,"loss": 9.2185,"step": 310},{"epoch": 24.615384615384617,"grad_norm": 0.4140625,"learning_rate": 9.724456576318381e-05,"loss": 9.2101,"step": 320},{"epoch": 25.384615384615383,"grad_norm": 0.412109375,"learning_rate": 9.174206545276677e-05,"loss": 9.2002,"step": 330},{"epoch": 26.153846153846153,"grad_norm": 0.416015625,"learning_rate": 8.626464421815919e-05,"loss": 9.193,"step": 340},{"epoch": 26.923076923076923,"grad_norm": 0.41015625,"learning_rate": 8.082893680762619e-05,"loss": 9.1896,"step": 350},{"epoch": 26.923076923076923,"eval_loss": 9.20389461517334,"eval_runtime": 5.2643,"eval_samples_per_second": 285.129,"eval_steps_per_second": 4.559,"step": 350}],"logging_steps": 10,13 unmodified lines"attributes": {}}},"total_flos": 143205492326400.0,"train_batch_size": 32,"trial_name": null,"trial_params": null
last-checkpoint/model.safetensors+1-1
last-checkpoint/optimizer.pt+1-1
last-checkpoint/rng_state_0.pth+1-1
last-checkpoint/rng_state_1.pth+1-1
last-checkpoint/scheduler.pt+1-1
last-checkpoint/trainer_state.json+46-3