Text Generation
Transformers
Safetensors
English
fabric
efficient
0.7b
causal-lm
chunked-memory
conversational
custom_code
Instructions to use tudor-iustin22/Fabric1.5-0.7B-Instruct with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use tudor-iustin22/Fabric1.5-0.7B-Instruct with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="tudor-iustin22/Fabric1.5-0.7B-Instruct", trust_remote_code=True) messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# pip install -U transformers accelerate # Load model directly from transformers import AutoModelForCausalLM model = AutoModelForCausalLM.from_pretrained("tudor-iustin22/Fabric1.5-0.7B-Instruct", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use tudor-iustin22/Fabric1.5-0.7B-Instruct with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "tudor-iustin22/Fabric1.5-0.7B-Instruct" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "tudor-iustin22/Fabric1.5-0.7B-Instruct", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/tudor-iustin22/Fabric1.5-0.7B-Instruct
- SGLang
How to use tudor-iustin22/Fabric1.5-0.7B-Instruct 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 "tudor-iustin22/Fabric1.5-0.7B-Instruct" \ --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": "tudor-iustin22/Fabric1.5-0.7B-Instruct", "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 "tudor-iustin22/Fabric1.5-0.7B-Instruct" \ --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": "tudor-iustin22/Fabric1.5-0.7B-Instruct", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use tudor-iustin22/Fabric1.5-0.7B-Instruct with Docker Model Runner:
docker model run hf.co/tudor-iustin22/Fabric1.5-0.7B-Instruct
Commit History
-
Update README.md
Verified signature3882fe9
-
Update README.md
Verified signature9df7d01 -
Update README.md
Verified signature7450654
-
Transformers Serve Day-0 Support OpenAI API Compatible
Verified signature27f97fc
-
Upload README.md
Verified signatureac03f67 -
Delete setup.py
Verified signaturea24a8b8 -
Delete fabric_vllm
Verified signature10ed99f -
Upload setup.py
Verified signature8381267 -
Upload fabric_model.py
Verified signaturebfb6979 -
RoPe added
Verified signature3dd9780 -
vLLM custom download guide
Verified signaturec730135 -
vLLM inference guide added
Verified signature4661278 -
Upload README.md
Verified signaturea50db94 -
Upload setup.py
Verified signatureddc0f25 -
vLLM Inference Patch
Verified signature03a47a8 -
Upload README.md
Verified signature5133a74 -
Delete README.md
Verified signatured6bcb2a -
Upload README.md
Verified signature4c30c1d -
Delete README.md
Verified signaturea3d92a4 -
Updated README.md
Verified signatureb5c9b40 -
Delete README.md
Verified signature43ef72a -
Upload 17 files
Verified signatureea1882d -
initial commit
Verified signaturea7dacaf