Instructions to use shau1905/python_qa with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use shau1905/python_qa with Transformers:
# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("shau1905/python_qa", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- Unsloth Studio
How to use shau1905/python_qa with Unsloth Studio:
Install Unsloth Studio (macOS, Linux, WSL)
curl -fsSL https://unsloth.ai/install.sh | sh # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for shau1905/python_qa to start chatting
Install Unsloth Studio (Windows)
irm https://unsloth.ai/install.ps1 | iex # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for shau1905/python_qa to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for shau1905/python_qa to start chatting
Load model with FastModel
pip install unsloth from unsloth import FastModel model, tokenizer = FastModel.from_pretrained( model_name="shau1905/python_qa", max_seq_length=2048, )
Update adapter_config.json
Browse files- adapter_config.json +5 -0
adapter_config.json
CHANGED
|
@@ -1,4 +1,9 @@
|
|
| 1 |
{
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 2 |
"base_model_name_or_path": "unsloth/phi-3-mini-4k-instruct-bnb-4bit",
|
| 3 |
"peft_type": "LORA",
|
| 4 |
"task_type": "CAUSAL_LM",
|
|
|
|
| 1 |
{
|
| 2 |
+
"alpha_pattern": {},
|
| 3 |
+
"auto_mapping": {
|
| 4 |
+
"base_model_class": "Phi3ForCausalLM",
|
| 5 |
+
"parent_library": "transformers.models.phi3.modeling_phi3"
|
| 6 |
+
},
|
| 7 |
"base_model_name_or_path": "unsloth/phi-3-mini-4k-instruct-bnb-4bit",
|
| 8 |
"peft_type": "LORA",
|
| 9 |
"task_type": "CAUSAL_LM",
|