Instructions to use biranchi125/falcon7b-ft-sc with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use biranchi125/falcon7b-ft-sc with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="biranchi125/falcon7b-ft-sc", trust_remote_code=True)# Load model directly from transformers import AutoModelForCausalLM model = AutoModelForCausalLM.from_pretrained("biranchi125/falcon7b-ft-sc", trust_remote_code=True, dtype="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use biranchi125/falcon7b-ft-sc with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "biranchi125/falcon7b-ft-sc" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "biranchi125/falcon7b-ft-sc", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/biranchi125/falcon7b-ft-sc
- SGLang
How to use biranchi125/falcon7b-ft-sc 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 "biranchi125/falcon7b-ft-sc" \ --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": "biranchi125/falcon7b-ft-sc", "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 "biranchi125/falcon7b-ft-sc" \ --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": "biranchi125/falcon7b-ft-sc", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use biranchi125/falcon7b-ft-sc with Docker Model Runner:
docker model run hf.co/biranchi125/falcon7b-ft-sc
| { | |
| "metadata": { | |
| "total_size": 13843441408 | |
| }, | |
| "weight_map": { | |
| "lm_head.weight": "pytorch_model-00001-of-00002.bin", | |
| "transformer.h.0.input_layernorm.bias": "pytorch_model-00001-of-00002.bin", | |
| "transformer.h.0.input_layernorm.weight": "pytorch_model-00001-of-00002.bin", | |
| "transformer.h.0.mlp.dense_4h_to_h.weight": "pytorch_model-00001-of-00002.bin", | |
| "transformer.h.0.mlp.dense_h_to_4h.weight": "pytorch_model-00001-of-00002.bin", | |
| "transformer.h.0.self_attention.dense.weight": "pytorch_model-00001-of-00002.bin", | |
| "transformer.h.0.self_attention.query_key_value.weight": "pytorch_model-00001-of-00002.bin", | |
| "transformer.h.1.input_layernorm.bias": "pytorch_model-00001-of-00002.bin", | |
| "transformer.h.1.input_layernorm.weight": "pytorch_model-00001-of-00002.bin", | |
| "transformer.h.1.mlp.dense_4h_to_h.weight": "pytorch_model-00001-of-00002.bin", | |
| "transformer.h.1.mlp.dense_h_to_4h.weight": "pytorch_model-00001-of-00002.bin", | |
| "transformer.h.1.self_attention.dense.weight": "pytorch_model-00001-of-00002.bin", | |
| "transformer.h.1.self_attention.query_key_value.weight": "pytorch_model-00001-of-00002.bin", | |
| "transformer.h.10.input_layernorm.bias": "pytorch_model-00001-of-00002.bin", | |
| "transformer.h.10.input_layernorm.weight": "pytorch_model-00001-of-00002.bin", | |
| "transformer.h.10.mlp.dense_4h_to_h.weight": "pytorch_model-00001-of-00002.bin", | |
| "transformer.h.10.mlp.dense_h_to_4h.weight": "pytorch_model-00001-of-00002.bin", | |
| "transformer.h.10.self_attention.dense.weight": "pytorch_model-00001-of-00002.bin", | |
| "transformer.h.10.self_attention.query_key_value.weight": "pytorch_model-00001-of-00002.bin", | |
| "transformer.h.11.input_layernorm.bias": "pytorch_model-00001-of-00002.bin", | |
| "transformer.h.11.input_layernorm.weight": "pytorch_model-00001-of-00002.bin", | |
| "transformer.h.11.mlp.dense_4h_to_h.weight": "pytorch_model-00001-of-00002.bin", | |
| "transformer.h.11.mlp.dense_h_to_4h.weight": "pytorch_model-00001-of-00002.bin", | |
| "transformer.h.11.self_attention.dense.weight": "pytorch_model-00001-of-00002.bin", | |
| "transformer.h.11.self_attention.query_key_value.weight": "pytorch_model-00001-of-00002.bin", | |
| "transformer.h.12.input_layernorm.bias": "pytorch_model-00001-of-00002.bin", | |
| "transformer.h.12.input_layernorm.weight": "pytorch_model-00001-of-00002.bin", | |
| "transformer.h.12.mlp.dense_4h_to_h.weight": "pytorch_model-00001-of-00002.bin", | |
| "transformer.h.12.mlp.dense_h_to_4h.weight": "pytorch_model-00001-of-00002.bin", | |
| "transformer.h.12.self_attention.dense.weight": "pytorch_model-00001-of-00002.bin", | |
| "transformer.h.12.self_attention.query_key_value.weight": "pytorch_model-00001-of-00002.bin", | |
| "transformer.h.13.input_layernorm.bias": "pytorch_model-00001-of-00002.bin", | |
| "transformer.h.13.input_layernorm.weight": "pytorch_model-00001-of-00002.bin", | |
| "transformer.h.13.mlp.dense_4h_to_h.weight": "pytorch_model-00001-of-00002.bin", | |
| "transformer.h.13.mlp.dense_h_to_4h.weight": "pytorch_model-00001-of-00002.bin", | |
| "transformer.h.13.self_attention.dense.weight": "pytorch_model-00001-of-00002.bin", | |
| "transformer.h.13.self_attention.query_key_value.weight": "pytorch_model-00001-of-00002.bin", | |
| "transformer.h.14.input_layernorm.bias": "pytorch_model-00001-of-00002.bin", | |
| "transformer.h.14.input_layernorm.weight": "pytorch_model-00001-of-00002.bin", | |
| "transformer.h.14.mlp.dense_4h_to_h.weight": "pytorch_model-00001-of-00002.bin", | |
| "transformer.h.14.mlp.dense_h_to_4h.weight": "pytorch_model-00001-of-00002.bin", | |
| "transformer.h.14.self_attention.dense.weight": "pytorch_model-00001-of-00002.bin", | |
| "transformer.h.14.self_attention.query_key_value.weight": "pytorch_model-00001-of-00002.bin", | |
| "transformer.h.15.input_layernorm.bias": "pytorch_model-00001-of-00002.bin", | |
| "transformer.h.15.input_layernorm.weight": "pytorch_model-00001-of-00002.bin", | |
| "transformer.h.15.mlp.dense_4h_to_h.weight": "pytorch_model-00001-of-00002.bin", | |
| "transformer.h.15.mlp.dense_h_to_4h.weight": "pytorch_model-00001-of-00002.bin", | |
| "transformer.h.15.self_attention.dense.weight": "pytorch_model-00001-of-00002.bin", | |
| "transformer.h.15.self_attention.query_key_value.weight": "pytorch_model-00001-of-00002.bin", | |
| "transformer.h.16.input_layernorm.bias": "pytorch_model-00001-of-00002.bin", | |
| "transformer.h.16.input_layernorm.weight": "pytorch_model-00001-of-00002.bin", | |
| "transformer.h.16.mlp.dense_4h_to_h.weight": "pytorch_model-00001-of-00002.bin", | |
| "transformer.h.16.mlp.dense_h_to_4h.weight": "pytorch_model-00001-of-00002.bin", | |
| "transformer.h.16.self_attention.dense.weight": "pytorch_model-00001-of-00002.bin", | |
| "transformer.h.16.self_attention.query_key_value.weight": "pytorch_model-00001-of-00002.bin", | |
| "transformer.h.17.input_layernorm.bias": "pytorch_model-00001-of-00002.bin", | |
| "transformer.h.17.input_layernorm.weight": "pytorch_model-00001-of-00002.bin", | |
| "transformer.h.17.mlp.dense_4h_to_h.weight": "pytorch_model-00001-of-00002.bin", | |
| "transformer.h.17.mlp.dense_h_to_4h.weight": "pytorch_model-00001-of-00002.bin", | |
| "transformer.h.17.self_attention.dense.weight": "pytorch_model-00001-of-00002.bin", | |
| "transformer.h.17.self_attention.query_key_value.weight": "pytorch_model-00001-of-00002.bin", | |
| "transformer.h.18.input_layernorm.bias": "pytorch_model-00001-of-00002.bin", | |
| "transformer.h.18.input_layernorm.weight": "pytorch_model-00001-of-00002.bin", | |
| "transformer.h.18.mlp.dense_4h_to_h.weight": "pytorch_model-00001-of-00002.bin", | |
| "transformer.h.18.mlp.dense_h_to_4h.weight": "pytorch_model-00001-of-00002.bin", | |
| "transformer.h.18.self_attention.dense.weight": "pytorch_model-00001-of-00002.bin", | |
| "transformer.h.18.self_attention.query_key_value.weight": "pytorch_model-00001-of-00002.bin", | |
| "transformer.h.19.input_layernorm.bias": "pytorch_model-00001-of-00002.bin", | |
| "transformer.h.19.input_layernorm.weight": "pytorch_model-00001-of-00002.bin", | |
| "transformer.h.19.mlp.dense_4h_to_h.weight": "pytorch_model-00001-of-00002.bin", | |
| "transformer.h.19.mlp.dense_h_to_4h.weight": "pytorch_model-00001-of-00002.bin", | |
| "transformer.h.19.self_attention.dense.weight": "pytorch_model-00001-of-00002.bin", | |
| "transformer.h.19.self_attention.query_key_value.weight": "pytorch_model-00001-of-00002.bin", | |
| "transformer.h.2.input_layernorm.bias": "pytorch_model-00001-of-00002.bin", | |
| "transformer.h.2.input_layernorm.weight": "pytorch_model-00001-of-00002.bin", | |
| "transformer.h.2.mlp.dense_4h_to_h.weight": "pytorch_model-00001-of-00002.bin", | |
| "transformer.h.2.mlp.dense_h_to_4h.weight": "pytorch_model-00001-of-00002.bin", | |
| "transformer.h.2.self_attention.dense.weight": "pytorch_model-00001-of-00002.bin", | |
| "transformer.h.2.self_attention.query_key_value.weight": "pytorch_model-00001-of-00002.bin", | |
| "transformer.h.20.input_layernorm.bias": "pytorch_model-00001-of-00002.bin", | |
| "transformer.h.20.input_layernorm.weight": "pytorch_model-00001-of-00002.bin", | |
| "transformer.h.20.mlp.dense_4h_to_h.weight": "pytorch_model-00001-of-00002.bin", | |
| "transformer.h.20.mlp.dense_h_to_4h.weight": "pytorch_model-00001-of-00002.bin", | |
| "transformer.h.20.self_attention.dense.weight": "pytorch_model-00001-of-00002.bin", | |
| "transformer.h.20.self_attention.query_key_value.weight": "pytorch_model-00001-of-00002.bin", | |
| "transformer.h.21.input_layernorm.bias": "pytorch_model-00001-of-00002.bin", | |
| "transformer.h.21.input_layernorm.weight": "pytorch_model-00001-of-00002.bin", | |
| "transformer.h.21.mlp.dense_4h_to_h.weight": "pytorch_model-00001-of-00002.bin", | |
| "transformer.h.21.mlp.dense_h_to_4h.weight": "pytorch_model-00001-of-00002.bin", | |
| "transformer.h.21.self_attention.dense.weight": "pytorch_model-00001-of-00002.bin", | |
| "transformer.h.21.self_attention.query_key_value.weight": "pytorch_model-00001-of-00002.bin", | |
| "transformer.h.22.input_layernorm.bias": "pytorch_model-00001-of-00002.bin", | |
| "transformer.h.22.input_layernorm.weight": "pytorch_model-00001-of-00002.bin", | |
| "transformer.h.22.mlp.dense_4h_to_h.weight": "pytorch_model-00002-of-00002.bin", | |
| "transformer.h.22.mlp.dense_h_to_4h.weight": "pytorch_model-00001-of-00002.bin", | |
| "transformer.h.22.self_attention.dense.weight": "pytorch_model-00001-of-00002.bin", | |
| "transformer.h.22.self_attention.query_key_value.weight": "pytorch_model-00001-of-00002.bin", | |
| "transformer.h.23.input_layernorm.bias": "pytorch_model-00002-of-00002.bin", | |
| "transformer.h.23.input_layernorm.weight": "pytorch_model-00002-of-00002.bin", | |
| "transformer.h.23.mlp.dense_4h_to_h.weight": "pytorch_model-00002-of-00002.bin", | |
| "transformer.h.23.mlp.dense_h_to_4h.weight": "pytorch_model-00002-of-00002.bin", | |
| "transformer.h.23.self_attention.dense.weight": "pytorch_model-00002-of-00002.bin", | |
| "transformer.h.23.self_attention.query_key_value.weight": "pytorch_model-00002-of-00002.bin", | |
| "transformer.h.24.input_layernorm.bias": "pytorch_model-00002-of-00002.bin", | |
| "transformer.h.24.input_layernorm.weight": "pytorch_model-00002-of-00002.bin", | |
| "transformer.h.24.mlp.dense_4h_to_h.weight": "pytorch_model-00002-of-00002.bin", | |
| "transformer.h.24.mlp.dense_h_to_4h.weight": "pytorch_model-00002-of-00002.bin", | |
| "transformer.h.24.self_attention.dense.weight": "pytorch_model-00002-of-00002.bin", | |
| "transformer.h.24.self_attention.query_key_value.weight": "pytorch_model-00002-of-00002.bin", | |
| "transformer.h.25.input_layernorm.bias": "pytorch_model-00002-of-00002.bin", | |
| "transformer.h.25.input_layernorm.weight": "pytorch_model-00002-of-00002.bin", | |
| "transformer.h.25.mlp.dense_4h_to_h.weight": "pytorch_model-00002-of-00002.bin", | |
| "transformer.h.25.mlp.dense_h_to_4h.weight": "pytorch_model-00002-of-00002.bin", | |
| "transformer.h.25.self_attention.dense.weight": "pytorch_model-00002-of-00002.bin", | |
| "transformer.h.25.self_attention.query_key_value.weight": "pytorch_model-00002-of-00002.bin", | |
| "transformer.h.26.input_layernorm.bias": "pytorch_model-00002-of-00002.bin", | |
| "transformer.h.26.input_layernorm.weight": "pytorch_model-00002-of-00002.bin", | |
| "transformer.h.26.mlp.dense_4h_to_h.weight": "pytorch_model-00002-of-00002.bin", | |
| "transformer.h.26.mlp.dense_h_to_4h.weight": "pytorch_model-00002-of-00002.bin", | |
| "transformer.h.26.self_attention.dense.weight": "pytorch_model-00002-of-00002.bin", | |
| "transformer.h.26.self_attention.query_key_value.weight": "pytorch_model-00002-of-00002.bin", | |
| "transformer.h.27.input_layernorm.bias": "pytorch_model-00002-of-00002.bin", | |
| "transformer.h.27.input_layernorm.weight": "pytorch_model-00002-of-00002.bin", | |
| "transformer.h.27.mlp.dense_4h_to_h.weight": "pytorch_model-00002-of-00002.bin", | |
| "transformer.h.27.mlp.dense_h_to_4h.weight": "pytorch_model-00002-of-00002.bin", | |
| "transformer.h.27.self_attention.dense.weight": "pytorch_model-00002-of-00002.bin", | |
| "transformer.h.27.self_attention.query_key_value.weight": "pytorch_model-00002-of-00002.bin", | |
| "transformer.h.28.input_layernorm.bias": "pytorch_model-00002-of-00002.bin", | |
| "transformer.h.28.input_layernorm.weight": "pytorch_model-00002-of-00002.bin", | |
| "transformer.h.28.mlp.dense_4h_to_h.weight": "pytorch_model-00002-of-00002.bin", | |
| "transformer.h.28.mlp.dense_h_to_4h.weight": "pytorch_model-00002-of-00002.bin", | |
| "transformer.h.28.self_attention.dense.weight": "pytorch_model-00002-of-00002.bin", | |
| "transformer.h.28.self_attention.query_key_value.weight": "pytorch_model-00002-of-00002.bin", | |
| "transformer.h.29.input_layernorm.bias": "pytorch_model-00002-of-00002.bin", | |
| "transformer.h.29.input_layernorm.weight": "pytorch_model-00002-of-00002.bin", | |
| "transformer.h.29.mlp.dense_4h_to_h.weight": "pytorch_model-00002-of-00002.bin", | |
| "transformer.h.29.mlp.dense_h_to_4h.weight": "pytorch_model-00002-of-00002.bin", | |
| "transformer.h.29.self_attention.dense.weight": "pytorch_model-00002-of-00002.bin", | |
| "transformer.h.29.self_attention.query_key_value.weight": "pytorch_model-00002-of-00002.bin", | |
| "transformer.h.3.input_layernorm.bias": "pytorch_model-00001-of-00002.bin", | |
| "transformer.h.3.input_layernorm.weight": "pytorch_model-00001-of-00002.bin", | |
| "transformer.h.3.mlp.dense_4h_to_h.weight": "pytorch_model-00001-of-00002.bin", | |
| "transformer.h.3.mlp.dense_h_to_4h.weight": "pytorch_model-00001-of-00002.bin", | |
| "transformer.h.3.self_attention.dense.weight": "pytorch_model-00001-of-00002.bin", | |
| "transformer.h.3.self_attention.query_key_value.weight": "pytorch_model-00001-of-00002.bin", | |
| "transformer.h.30.input_layernorm.bias": "pytorch_model-00002-of-00002.bin", | |
| "transformer.h.30.input_layernorm.weight": "pytorch_model-00002-of-00002.bin", | |
| "transformer.h.30.mlp.dense_4h_to_h.weight": "pytorch_model-00002-of-00002.bin", | |
| "transformer.h.30.mlp.dense_h_to_4h.weight": "pytorch_model-00002-of-00002.bin", | |
| "transformer.h.30.self_attention.dense.weight": "pytorch_model-00002-of-00002.bin", | |
| "transformer.h.30.self_attention.query_key_value.weight": "pytorch_model-00002-of-00002.bin", | |
| "transformer.h.31.input_layernorm.bias": "pytorch_model-00002-of-00002.bin", | |
| "transformer.h.31.input_layernorm.weight": "pytorch_model-00002-of-00002.bin", | |
| "transformer.h.31.mlp.dense_4h_to_h.weight": "pytorch_model-00002-of-00002.bin", | |
| "transformer.h.31.mlp.dense_h_to_4h.weight": "pytorch_model-00002-of-00002.bin", | |
| "transformer.h.31.self_attention.dense.weight": "pytorch_model-00002-of-00002.bin", | |
| "transformer.h.31.self_attention.query_key_value.weight": "pytorch_model-00002-of-00002.bin", | |
| "transformer.h.4.input_layernorm.bias": "pytorch_model-00001-of-00002.bin", | |
| "transformer.h.4.input_layernorm.weight": "pytorch_model-00001-of-00002.bin", | |
| "transformer.h.4.mlp.dense_4h_to_h.weight": "pytorch_model-00001-of-00002.bin", | |
| "transformer.h.4.mlp.dense_h_to_4h.weight": "pytorch_model-00001-of-00002.bin", | |
| "transformer.h.4.self_attention.dense.weight": "pytorch_model-00001-of-00002.bin", | |
| "transformer.h.4.self_attention.query_key_value.weight": "pytorch_model-00001-of-00002.bin", | |
| "transformer.h.5.input_layernorm.bias": "pytorch_model-00001-of-00002.bin", | |
| "transformer.h.5.input_layernorm.weight": "pytorch_model-00001-of-00002.bin", | |
| "transformer.h.5.mlp.dense_4h_to_h.weight": "pytorch_model-00001-of-00002.bin", | |
| "transformer.h.5.mlp.dense_h_to_4h.weight": "pytorch_model-00001-of-00002.bin", | |
| "transformer.h.5.self_attention.dense.weight": "pytorch_model-00001-of-00002.bin", | |
| "transformer.h.5.self_attention.query_key_value.weight": "pytorch_model-00001-of-00002.bin", | |
| "transformer.h.6.input_layernorm.bias": "pytorch_model-00001-of-00002.bin", | |
| "transformer.h.6.input_layernorm.weight": "pytorch_model-00001-of-00002.bin", | |
| "transformer.h.6.mlp.dense_4h_to_h.weight": "pytorch_model-00001-of-00002.bin", | |
| "transformer.h.6.mlp.dense_h_to_4h.weight": "pytorch_model-00001-of-00002.bin", | |
| "transformer.h.6.self_attention.dense.weight": "pytorch_model-00001-of-00002.bin", | |
| "transformer.h.6.self_attention.query_key_value.weight": "pytorch_model-00001-of-00002.bin", | |
| "transformer.h.7.input_layernorm.bias": "pytorch_model-00001-of-00002.bin", | |
| "transformer.h.7.input_layernorm.weight": "pytorch_model-00001-of-00002.bin", | |
| "transformer.h.7.mlp.dense_4h_to_h.weight": "pytorch_model-00001-of-00002.bin", | |
| "transformer.h.7.mlp.dense_h_to_4h.weight": "pytorch_model-00001-of-00002.bin", | |
| "transformer.h.7.self_attention.dense.weight": "pytorch_model-00001-of-00002.bin", | |
| "transformer.h.7.self_attention.query_key_value.weight": "pytorch_model-00001-of-00002.bin", | |
| "transformer.h.8.input_layernorm.bias": "pytorch_model-00001-of-00002.bin", | |
| "transformer.h.8.input_layernorm.weight": "pytorch_model-00001-of-00002.bin", | |
| "transformer.h.8.mlp.dense_4h_to_h.weight": "pytorch_model-00001-of-00002.bin", | |
| "transformer.h.8.mlp.dense_h_to_4h.weight": "pytorch_model-00001-of-00002.bin", | |
| "transformer.h.8.self_attention.dense.weight": "pytorch_model-00001-of-00002.bin", | |
| "transformer.h.8.self_attention.query_key_value.weight": "pytorch_model-00001-of-00002.bin", | |
| "transformer.h.9.input_layernorm.bias": "pytorch_model-00001-of-00002.bin", | |
| "transformer.h.9.input_layernorm.weight": "pytorch_model-00001-of-00002.bin", | |
| "transformer.h.9.mlp.dense_4h_to_h.weight": "pytorch_model-00001-of-00002.bin", | |
| "transformer.h.9.mlp.dense_h_to_4h.weight": "pytorch_model-00001-of-00002.bin", | |
| "transformer.h.9.self_attention.dense.weight": "pytorch_model-00001-of-00002.bin", | |
| "transformer.h.9.self_attention.query_key_value.weight": "pytorch_model-00001-of-00002.bin", | |
| "transformer.ln_f.bias": "pytorch_model-00002-of-00002.bin", | |
| "transformer.ln_f.weight": "pytorch_model-00002-of-00002.bin", | |
| "transformer.word_embeddings.weight": "pytorch_model-00001-of-00002.bin" | |
| } | |
| } | |