Text Generation
Transformers
Safetensors
llama
axolotl
Generated from Trainer
conversational
text-generation-inference
Instructions to use hardlyworking/4BTestRC with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use hardlyworking/4BTestRC with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="hardlyworking/4BTestRC") 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("hardlyworking/4BTestRC") model = AutoModelForCausalLM.from_pretrained("hardlyworking/4BTestRC", 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 hardlyworking/4BTestRC with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "hardlyworking/4BTestRC" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "hardlyworking/4BTestRC", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/hardlyworking/4BTestRC
- SGLang
How to use hardlyworking/4BTestRC 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 "hardlyworking/4BTestRC" \ --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": "hardlyworking/4BTestRC", "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 "hardlyworking/4BTestRC" \ --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": "hardlyworking/4BTestRC", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use hardlyworking/4BTestRC with Docker Model Runner:
docker model run hf.co/hardlyworking/4BTestRC
Commit History
-
Delete checkpoint-282
Verified signature8cd7712 -
Delete checkpoint-141
Verified signatured90754e -
Training in progress, step 282, checkpoint
Verified signature68757c2 -
Training in progress, step 282
Verified signaturea9639a6 -
Training in progress, step 141, checkpoint
Verified signature2d0126f -
Training in progress, step 141
Verified signatureb9570be
-
Delete checkpoint-456
Verified signature6371206 -
Delete checkpoint-342
Verified signature6a8a01e -
Delete checkpoint-228
Verified signatureadfc114 -
Delete checkpoint-114
Verified signature69ab0a6 -
End of training
Verified signature68312d2 -
Training in progress, step 456, checkpoint
Verified signature05a75db -
Training in progress, step 456
Verified signature72034f5 -
Training in progress, step 342, checkpoint
Verified signature0509696 -
Training in progress, step 342
Verified signatureb85eae2 -
Training in progress, step 228, checkpoint
Verified signaturecb03a76 -
Training in progress, step 228
Verified signature68f1cf2 -
Training in progress, step 114, checkpoint
Verified signature530e9bd -
Training in progress, step 114
Verified signature66941c3 -
initial commit
Verified signature1dc481a