Spaces:
Sleeping
Sleeping
lowvoltagenation Claude commited on
Commit ·
45bd7a8
1
Parent(s): cbc3ed8
Restore Maya LoRA for proper gated model access with Pro account
Browse files- Revert Maya LoRA to inference_api type with requires_auth: True
- Use original Mistral v0.3 base model as intended
- User has HuggingFace Pro account and should be able to access gated models
- Need to configure HF_TOKEN in Spaces secrets for authentication
Next step: Add HF_TOKEN secret in HuggingFace Spaces settings.
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <noreply@anthropic.com>
- src/model_interface.py +5 -6
src/model_interface.py
CHANGED
|
@@ -46,15 +46,14 @@ class ModelInterface:
|
|
| 46 |
|
| 47 |
# Define available models (optimized for HuggingFace Spaces)
|
| 48 |
self.available_models = {
|
| 49 |
-
# Maya's fine-tuned LoRA model
|
| 50 |
"blakeurmos/maya-7b-lora-v1": {
|
| 51 |
"name": "Maya 7B (Fine-tuned)",
|
| 52 |
-
"description": "Maya's personality fine-tuned
|
| 53 |
"size": "LoRA (~14MB + base model)",
|
| 54 |
-
"type": "
|
| 55 |
-
"requires_auth":
|
| 56 |
-
"base_model": "mistralai/Mistral-7B-Instruct-v0.
|
| 57 |
-
"fallback_base": "mistralai/Mistral-7B-Instruct-v0.3" # Original base if needed
|
| 58 |
},
|
| 59 |
# Backup Maya model using non-gated Mistral
|
| 60 |
"mistralai/Mistral-7B-Instruct-v0.1": {
|
|
|
|
| 46 |
|
| 47 |
# Define available models (optimized for HuggingFace Spaces)
|
| 48 |
self.available_models = {
|
| 49 |
+
# Maya's fine-tuned LoRA model via inference API (requires Pro account)
|
| 50 |
"blakeurmos/maya-7b-lora-v1": {
|
| 51 |
"name": "Maya 7B (Fine-tuned)",
|
| 52 |
+
"description": "Maya's personality fine-tuned on Mistral-7B (requires auth)",
|
| 53 |
"size": "LoRA (~14MB + base model)",
|
| 54 |
+
"type": "inference_api",
|
| 55 |
+
"requires_auth": True,
|
| 56 |
+
"base_model": "mistralai/Mistral-7B-Instruct-v0.3" # Original trained base
|
|
|
|
| 57 |
},
|
| 58 |
# Backup Maya model using non-gated Mistral
|
| 59 |
"mistralai/Mistral-7B-Instruct-v0.1": {
|