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>

Files changed (1) hide show
  1. 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 (try local loading with non-gated base)
50
  "blakeurmos/maya-7b-lora-v1": {
51
  "name": "Maya 7B (Fine-tuned)",
52
- "description": "Maya's personality fine-tuned LoRA (adapted for non-gated base)",
53
  "size": "LoRA (~14MB + base model)",
54
- "type": "lora",
55
- "requires_auth": False,
56
- "base_model": "mistralai/Mistral-7B-Instruct-v0.1", # Use non-gated version
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": {