Text Generation
Transformers
Safetensors
llama
Generated from Trainer
trl
sft
unsloth
text-generation-inference
Instructions to use Ba2han/model-layered-1 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Ba2han/model-layered-1 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="Ba2han/model-layered-1")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("Ba2han/model-layered-1") model = AutoModelForCausalLM.from_pretrained("Ba2han/model-layered-1", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use Ba2han/model-layered-1 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "Ba2han/model-layered-1" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Ba2han/model-layered-1", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/Ba2han/model-layered-1
- SGLang
How to use Ba2han/model-layered-1 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 "Ba2han/model-layered-1" \ --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": "Ba2han/model-layered-1", "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 "Ba2han/model-layered-1" \ --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": "Ba2han/model-layered-1", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Unsloth Desktop
- Docker Model Runner
How to use Ba2han/model-layered-1 with Docker Model Runner:
docker model run hf.co/Ba2han/model-layered-1
Commit History
-
Training in progress, step 14700, checkpoint
Verified signature2ecae6f -
Training in progress, step 14700
Verified signature56bdb6b -
Training in progress, step 14400, checkpoint
Verified signature0100050 -
Training in progress, step 14400
Verified signature2d4bea9 -
Training in progress, step 14100, checkpoint
Verified signature08e5e21 -
Training in progress, step 14100
Verified signature2f87ba1 -
Training in progress, step 13800, checkpoint
Verified signature32bc096 -
Training in progress, step 13800
Verified signatureb7fc0ff -
Training in progress, step 13500, checkpoint
Verified signature315bbea -
Training in progress, step 13500
Verified signature1d2b450 -
Training in progress, step 13200, checkpoint
Verified signature68c2fc3 -
Training in progress, step 13200
Verified signatured69bece -
Training in progress, step 12900, checkpoint
Verified signaturef120a87 -
Training in progress, step 12900
Verified signature90095fd -
Training in progress, step 12600, checkpoint
Verified signaturef5dd8f1 -
Training in progress, step 12600
Verified signatureda19393 -
Training in progress, step 12300, checkpoint
Verified signaturec1a8388 -
Training in progress, step 12300
Verified signature0bee2be -
Training in progress, step 12000, checkpoint
Verified signature330c577 -
Training in progress, step 12000
Verified signature8749a9d -
Training in progress, step 11700, checkpoint
Verified signatureb9806ec -
Training in progress, step 11700
Verified signaturedd97698 -
Training in progress, step 11400, checkpoint
Verified signature28ca65d -
Training in progress, step 11400
Verified signature4ba5cfe -
Training in progress, step 11100, checkpoint
Verified signature8f72f2c -
Training in progress, step 11100
Verified signature9e43c90 -
Training in progress, step 10800, checkpoint
Verified signature3d1baa1 -
Training in progress, step 10800
Verified signaturea96f3bf -
Training in progress, step 10500, checkpoint
Verified signatureff8aa80 -
Training in progress, step 10500
Verified signature244f62e -
Training in progress, step 10200, checkpoint
Verified signature1a01144 -
Training in progress, step 10200
Verified signatureed18eb4 -
Training in progress, step 9900, checkpoint
Verified signature950d78b -
Training in progress, step 9900
Verified signaturefb06c3f -
Training in progress, step 9600, checkpoint
Verified signatureba51972 -
Training in progress, step 9600
Verified signaturec629aec -
Training in progress, step 9000, checkpoint
Verified signaturef93bcf7 -
Training in progress, step 9000
Verified signaturecb4e99a -
Training in progress, step 8700, checkpoint
Verified signature262245d -
Training in progress, step 8700
Verified signature09f0508
-
Training in progress, step 8400, checkpoint
Verified signatureae751f9 -
Training in progress, step 8400
Verified signature50abe1a -
Training in progress, step 8100, checkpoint
Verified signature9ace7e1 -
Training in progress, step 8100
Verified signature67c3975 -
Training in progress, step 7800, checkpoint
Verified signature1ab9602 -
Training in progress, step 7800
Verified signature272a102 -
Training in progress, step 7500, checkpoint
Verified signature9f50817 -
Training in progress, step 7500
Verified signaturecd5dd0a -
Training in progress, step 7200, checkpoint
Verified signatureb3856be -
Training in progress, step 7200
Verified signaturece68218