Instructions to use FroxStudio/Flex-Model-LoRA with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use FroxStudio/Flex-Model-LoRA with PEFT:
from peft import PeftModel from transformers import AutoModelForCausalLM base_model = AutoModelForCausalLM.from_pretrained("Qwen/Qwen2.5-1.5B-Instruct") model = PeftModel.from_pretrained(base_model, "FroxStudio/Flex-Model-LoRA") - Transformers
How to use FroxStudio/Flex-Model-LoRA with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="FroxStudio/Flex-Model-LoRA") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("FroxStudio/Flex-Model-LoRA", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use FroxStudio/Flex-Model-LoRA with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "FroxStudio/Flex-Model-LoRA" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "FroxStudio/Flex-Model-LoRA", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/FroxStudio/Flex-Model-LoRA
- SGLang
How to use FroxStudio/Flex-Model-LoRA 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 "FroxStudio/Flex-Model-LoRA" \ --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": "FroxStudio/Flex-Model-LoRA", "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 "FroxStudio/Flex-Model-LoRA" \ --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": "FroxStudio/Flex-Model-LoRA", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use FroxStudio/Flex-Model-LoRA with Docker Model Runner:
docker model run hf.co/FroxStudio/Flex-Model-LoRA
Commit History
-
Upload folder using huggingface_hub
Verified signature99b6cc3 -
Upload folder using huggingface_hub
Verified signature1eb5a47 -
Upload folder using huggingface_hub
Verified signature3b007a9 -
Upload folder using huggingface_hub
Verified signature5de9b08 -
Upload folder using huggingface_hub
Verified signaturea40e54a -
Upload folder using huggingface_hub
Verified signature1af8382 -
Upload folder using huggingface_hub
Verified signaturefe98e3f -
Upload folder using huggingface_hub
Verified signaturec212351 -
Upload folder using huggingface_hub
Verified signature7445dd1 -
Upload folder using huggingface_hub
Verified signature0479f00 -
Upload folder using huggingface_hub
Verified signature1fd837e -
Upload folder using huggingface_hub
Verified signature536de22 -
Upload folder using huggingface_hub
Verified signature5eb0043 -
Upload folder using huggingface_hub
Verified signaturec6ebf50 -
Upload folder using huggingface_hub
Verified signaturef2e7516 -
Upload folder using huggingface_hub
Verified signaturee7c7f8b -
Upload folder using huggingface_hub
Verified signature994f346 -
Upload folder using huggingface_hub
Verified signaturee437ab6 -
Upload folder using huggingface_hub
Verified signature9303859 -
Upload folder using huggingface_hub
Verified signature4d862ce -
Upload folder using huggingface_hub
Verified signature15457f9
-
Upload folder using huggingface_hub
Verified signatured1e768f -
Upload folder using huggingface_hub
Verified signature3b95d40 -
Upload folder using huggingface_hub
Verified signature95286fe -
Upload folder using huggingface_hub
Verified signaturef76ddc3 -
Upload folder using huggingface_hub
Verified signature34160fe -
Upload folder using huggingface_hub
Verified signature280114e -
Upload folder using huggingface_hub
Verified signature258aef4 -
Upload folder using huggingface_hub
Verified signature7566167 -
Upload folder using huggingface_hub
Verified signature1150e56 -
Upload folder using huggingface_hub
Verified signature6421cb9 -
Upload folder using huggingface_hub
Verified signature70251b3 -
Upload folder using huggingface_hub
Verified signature70c3525 -
Upload folder using huggingface_hub
Verified signatured3e7d54 -
Upload folder using huggingface_hub
Verified signature1e839ef -
Upload folder using huggingface_hub
Verified signature4968fc8 -
Upload folder using huggingface_hub
Verified signature6cd90ba
-
Upload folder using huggingface_hub
Verified signature5eac40a -
Upload folder using huggingface_hub
Verified signature516f1f8 -
Upload folder using huggingface_hub
Verified signature065d55f -
Upload folder using huggingface_hub
Verified signature8ed43d0 -
Upload folder using huggingface_hub
Verified signature0259630 -
Upload folder using huggingface_hub
Verified signatureef076ca -
Upload folder using huggingface_hub
Verified signature3d709b1 -
Upload folder using huggingface_hub
Verified signaturef411104 -
Upload folder using huggingface_hub
Verified signaturef03f9e1 -
Upload folder using huggingface_hub
Verified signature4918769 -
Upload folder using huggingface_hub
Verified signature487827b -
Upload folder using huggingface_hub
Verified signaturec954707 -
Upload folder using huggingface_hub
Verified signaturead4d704