Spaces:
Sleeping
Sleeping
Upload 4 files
Browse files- CHANGELOG.md +11 -9
- FREE_MODELS.md +34 -25
- README.md +14 -13
- llm_backend.py +2 -2
CHANGELOG.md
CHANGED
|
@@ -5,11 +5,12 @@ All notable changes to ConversAI will be documented in this file.
|
|
| 5 |
## [1.1.0] - 2025-11-XX
|
| 6 |
|
| 7 |
### Changed
|
| 8 |
-
- **β¨ NEW DEFAULT MODEL**: Switched to
|
| 9 |
-
-
|
| 10 |
-
-
|
| 11 |
-
-
|
| 12 |
- **100% free and ungated** - no approvals needed
|
|
|
|
| 13 |
|
| 14 |
- **π FOCUS ON FREE MODELS**: Completely revised to use only free, ungated models
|
| 15 |
- Removed paid API recommendations (OpenAI, Anthropic)
|
|
@@ -24,11 +25,11 @@ All notable changes to ConversAI will be documented in this file.
|
|
| 24 |
- Performance benchmarks
|
| 25 |
- Troubleshooting tips
|
| 26 |
|
| 27 |
-
- Alternative free model options:
|
| 28 |
- google/flan-t5-xxl (very fast)
|
| 29 |
-
- mistralai/Mistral-7B-Instruct-v0.2 (best quality)
|
| 30 |
- google/flan-t5-xl (maximum speed)
|
| 31 |
-
-
|
|
|
|
| 32 |
|
| 33 |
### Fixed
|
| 34 |
- Optimized for HuggingFace free tier reliability
|
|
@@ -37,8 +38,9 @@ All notable changes to ConversAI will be documented in this file.
|
|
| 37 |
|
| 38 |
### Technical Details
|
| 39 |
- Default model changed in `llm_backend.py` line 69
|
| 40 |
-
- From: `mistralai/Mixtral-8x7B-Instruct-v0.1`
|
| 41 |
-
- To: `
|
|
|
|
| 42 |
|
| 43 |
---
|
| 44 |
|
|
|
|
| 5 |
## [1.1.0] - 2025-11-XX
|
| 6 |
|
| 7 |
### Changed
|
| 8 |
+
- **β¨ NEW DEFAULT MODEL**: Switched to Mistral-7B-Instruct-v0.2
|
| 9 |
+
- **Verified working** on HuggingFace Inference API
|
| 10 |
+
- Excellent quality for professional survey work
|
| 11 |
+
- Actively deployed and maintained
|
| 12 |
- **100% free and ungated** - no approvals needed
|
| 13 |
+
- Previous model (Phi-3) not deployed on Inference API
|
| 14 |
|
| 15 |
- **π FOCUS ON FREE MODELS**: Completely revised to use only free, ungated models
|
| 16 |
- Removed paid API recommendations (OpenAI, Anthropic)
|
|
|
|
| 25 |
- Performance benchmarks
|
| 26 |
- Troubleshooting tips
|
| 27 |
|
| 28 |
+
- Alternative free model options (verified deployed):
|
| 29 |
- google/flan-t5-xxl (very fast)
|
|
|
|
| 30 |
- google/flan-t5-xl (maximum speed)
|
| 31 |
+
- meta-llama/Llama-2-7b-chat-hf (alternative)
|
| 32 |
+
- **Note**: Only use models verified as "Deployed" on HF Inference API
|
| 33 |
|
| 34 |
### Fixed
|
| 35 |
- Optimized for HuggingFace free tier reliability
|
|
|
|
| 38 |
|
| 39 |
### Technical Details
|
| 40 |
- Default model changed in `llm_backend.py` line 69
|
| 41 |
+
- From: `mistralai/Mixtral-8x7B-Instruct-v0.1` (not deployed)
|
| 42 |
+
- To: `mistralai/Mistral-7B-Instruct-v0.2` (verified deployed)
|
| 43 |
+
- Reason: Phi-3 initially chosen but not available on Inference API
|
| 44 |
|
| 45 |
---
|
| 46 |
|
FREE_MODELS.md
CHANGED
|
@@ -4,11 +4,15 @@
|
|
| 4 |
|
| 5 |
---
|
| 6 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 7 |
## β¨ TL;DR
|
| 8 |
|
| 9 |
-
**Default model (
|
| 10 |
|
| 11 |
-
Want to try others? Set `LLM_MODEL` environment variable to any model below.
|
| 12 |
|
| 13 |
---
|
| 14 |
|
|
@@ -19,34 +23,38 @@ All models below are:
|
|
| 19 |
- β
**Ungated** - No approval needed
|
| 20 |
- β
**Works on HuggingFace Spaces** - Ready to use
|
| 21 |
|
| 22 |
-
### 1.
|
| 23 |
|
| 24 |
-
**Best for:** General use,
|
| 25 |
|
| 26 |
```bash
|
| 27 |
-
LLM_MODEL=
|
| 28 |
```
|
| 29 |
|
| 30 |
**Specs:**
|
| 31 |
-
- Speed: β‘β‘
|
| 32 |
-
- Quality:
|
| 33 |
-
- Size:
|
| 34 |
-
- Context:
|
|
|
|
| 35 |
|
| 36 |
**Pros:**
|
| 37 |
-
-
|
| 38 |
-
-
|
| 39 |
-
-
|
| 40 |
-
-
|
|
|
|
| 41 |
|
| 42 |
**Cons:**
|
| 43 |
-
-
|
| 44 |
-
-
|
|
|
|
| 45 |
|
| 46 |
**Best for:**
|
| 47 |
-
-
|
| 48 |
-
-
|
| 49 |
-
-
|
|
|
|
| 50 |
|
| 51 |
---
|
| 52 |
|
|
@@ -182,13 +190,14 @@ LLM_MODEL=google/flan-ul2
|
|
| 182 |
|
| 183 |
## π Model Comparison
|
| 184 |
|
| 185 |
-
| Model | Speed | Quality | Size | Best Use Case |
|
| 186 |
-
|
| 187 |
-
| **
|
| 188 |
-
| **Flan-T5-XXL** | β‘β‘β‘ Very Fast | ββ Decent | 11B | **Speed priority** |
|
| 189 |
-
| **
|
| 190 |
-
| **
|
| 191 |
-
|
|
|
|
| 192 |
|
| 193 |
---
|
| 194 |
|
|
|
|
| 4 |
|
| 5 |
---
|
| 6 |
|
| 7 |
+
> **β οΈ IMPORTANT:** Only models marked as "β
Deployed" are actively available on HuggingFace Inference API. Others may return 404 errors. **Default (Mistral-7B) is verified working.**
|
| 8 |
+
|
| 9 |
+
---
|
| 10 |
+
|
| 11 |
## β¨ TL;DR
|
| 12 |
|
| 13 |
+
**Default model (Mistral-7B) works great!** Just deploy and use. No configuration needed.
|
| 14 |
|
| 15 |
+
Want to try others? Set `LLM_MODEL` environment variable to any verified model below.
|
| 16 |
|
| 17 |
---
|
| 18 |
|
|
|
|
| 23 |
- β
**Ungated** - No approval needed
|
| 24 |
- β
**Works on HuggingFace Spaces** - Ready to use
|
| 25 |
|
| 26 |
+
### 1. Mistral-7B-Instruct-v0.2 β (DEFAULT)
|
| 27 |
|
| 28 |
+
**Best for:** General use, best quality on free tier
|
| 29 |
|
| 30 |
```bash
|
| 31 |
+
LLM_MODEL=mistralai/Mistral-7B-Instruct-v0.2
|
| 32 |
```
|
| 33 |
|
| 34 |
**Specs:**
|
| 35 |
+
- Speed: β‘β‘ Medium (20-45 seconds)
|
| 36 |
+
- Quality: ββββ Excellent
|
| 37 |
+
- Size: 7B parameters
|
| 38 |
+
- Context: 8K tokens
|
| 39 |
+
- Status: β
**Actively deployed on HF Inference API**
|
| 40 |
|
| 41 |
**Pros:**
|
| 42 |
+
- **Best quality among free ungated models**
|
| 43 |
+
- Excellent instruction following
|
| 44 |
+
- Good reasoning capabilities
|
| 45 |
+
- Handles complex tasks well
|
| 46 |
+
- Actively maintained and deployed
|
| 47 |
|
| 48 |
**Cons:**
|
| 49 |
+
- Slower than smaller models
|
| 50 |
+
- May queue during peak times
|
| 51 |
+
- First request can take 60+ seconds (cold start)
|
| 52 |
|
| 53 |
**Best for:**
|
| 54 |
+
- Professional survey generation
|
| 55 |
+
- High-quality translations
|
| 56 |
+
- Detailed analysis (50+ responses)
|
| 57 |
+
- When quality matters most
|
| 58 |
|
| 59 |
---
|
| 60 |
|
|
|
|
| 190 |
|
| 191 |
## π Model Comparison
|
| 192 |
|
| 193 |
+
| Model | Speed | Quality | Size | Deployed | Best Use Case |
|
| 194 |
+
|-------|-------|---------|------|----------|---------------|
|
| 195 |
+
| **Mistral-7B** β | β‘β‘ Medium | ββββ Excellent | 7B | β
Yes | **Default - best quality** |
|
| 196 |
+
| **Flan-T5-XXL** | β‘β‘β‘ Very Fast | ββ Decent | 11B | β
Yes | **Speed priority** |
|
| 197 |
+
| **Flan-T5-XL** | β‘β‘β‘ Very Fast | ββ Decent | 3B | β
Yes | **Maximum speed** |
|
| 198 |
+
| **Llama-2-7b-chat** | β‘β‘ Medium | βββ Good | 7B | β
Yes | **Alternative option** |
|
| 199 |
+
|
| 200 |
+
**Note:** Only models with "β
Yes" in Deployed column are currently available on HF Inference API.
|
| 201 |
|
| 202 |
---
|
| 203 |
|
README.md
CHANGED
|
@@ -16,7 +16,7 @@ Battle the blank page, reach global audiences, and uncover insights with AI assi
|
|
| 16 |
|
| 17 |
---
|
| 18 |
|
| 19 |
-
> **β¨
|
| 20 |
|
| 21 |
---
|
| 22 |
|
|
@@ -57,12 +57,12 @@ Battle the blank page, reach global audiences, and uncover insights with AI assi
|
|
| 57 |
|
| 58 |
**β¨ Zero configuration needed!** ConversAI works out-of-the-box on HuggingFace Spaces.
|
| 59 |
|
| 60 |
-
**Default Model:**
|
| 61 |
- β
**100% Free** - No API keys, no costs, ever
|
| 62 |
-
- β
**
|
| 63 |
- β
**Ungated** - No approval needed, works immediately
|
| 64 |
-
- β
**
|
| 65 |
-
- β
**Reliable** -
|
| 66 |
|
| 67 |
**Setup for PUBLIC Spaces (Recommended):**
|
| 68 |
- Just deploy - uses built-in `HF_TOKEN` automatically
|
|
@@ -80,15 +80,16 @@ Battle the blank page, reach global audiences, and uncover insights with AI assi
|
|
| 80 |
|
| 81 |
You can try different free models by setting the `LLM_MODEL` environment variable:
|
| 82 |
|
| 83 |
-
**Recommended Free Models:**
|
| 84 |
|
| 85 |
-
| Model | Best For | Speed | Quality |
|
| 86 |
-
|
| 87 |
-
| **
|
| 88 |
-
| **google/flan-t5-xxl** | Fast responses
|
| 89 |
-
| **
|
| 90 |
-
| **
|
| 91 |
-
|
|
|
|
| 92 |
|
| 93 |
**To change model:**
|
| 94 |
```bash
|
|
|
|
| 16 |
|
| 17 |
---
|
| 18 |
|
| 19 |
+
> **β¨ UPDATED (Nov 2025):** Now uses **Mistral-7B-Instruct** - High quality, reliable, and **completely FREE** on HuggingFace!
|
| 20 |
|
| 21 |
---
|
| 22 |
|
|
|
|
| 57 |
|
| 58 |
**β¨ Zero configuration needed!** ConversAI works out-of-the-box on HuggingFace Spaces.
|
| 59 |
|
| 60 |
+
**Default Model:** Mistral-7B-Instruct-v0.2
|
| 61 |
- β
**100% Free** - No API keys, no costs, ever
|
| 62 |
+
- β
**High Quality** - Excellent output for professional work (20-45 seconds)
|
| 63 |
- β
**Ungated** - No approval needed, works immediately
|
| 64 |
+
- β
**Proven** - Popular model, stable on HuggingFace Inference API
|
| 65 |
+
- β
**Reliable** - Actively deployed and maintained
|
| 66 |
|
| 67 |
**Setup for PUBLIC Spaces (Recommended):**
|
| 68 |
- Just deploy - uses built-in `HF_TOKEN` automatically
|
|
|
|
| 80 |
|
| 81 |
You can try different free models by setting the `LLM_MODEL` environment variable:
|
| 82 |
|
| 83 |
+
**Recommended Free Models (Verified on HF Inference API):**
|
| 84 |
|
| 85 |
+
| Model | Best For | Speed | Quality | Status |
|
| 86 |
+
|-------|----------|-------|---------|--------|
|
| 87 |
+
| **mistralai/Mistral-7B-Instruct-v0.2** (default) | Best quality, general use | β‘β‘ Medium | ββββ Excellent | β
Deployed |
|
| 88 |
+
| **google/flan-t5-xxl** | Fast responses | β‘β‘β‘ Very Fast | ββ Decent | β
Deployed |
|
| 89 |
+
| **google/flan-t5-xl** | Maximum speed | β‘β‘β‘ Very Fast | ββ Decent | β
Deployed |
|
| 90 |
+
| **meta-llama/Llama-2-7b-chat-hf** | Alternative quality | β‘β‘ Medium | βββ Good | β
Deployed |
|
| 91 |
+
|
| 92 |
+
**Note:** Only use models marked as "Deployed" - others may not be available on the free Inference API.
|
| 93 |
|
| 94 |
**To change model:**
|
| 95 |
```bash
|
llm_backend.py
CHANGED
|
@@ -65,8 +65,8 @@ class LLMBackend:
|
|
| 65 |
defaults = {
|
| 66 |
LLMProvider.OPENAI: "gpt-4o-mini",
|
| 67 |
LLMProvider.ANTHROPIC: "claude-3-5-sonnet-20241022",
|
| 68 |
-
# Using
|
| 69 |
-
LLMProvider.HUGGINGFACE: "
|
| 70 |
LLMProvider.LM_STUDIO: "google/gemma-3-27b"
|
| 71 |
}
|
| 72 |
return os.getenv("LLM_MODEL", defaults[self.provider])
|
|
|
|
| 65 |
defaults = {
|
| 66 |
LLMProvider.OPENAI: "gpt-4o-mini",
|
| 67 |
LLMProvider.ANTHROPIC: "claude-3-5-sonnet-20241022",
|
| 68 |
+
# Using Mistral-7B - proven to work on HF Inference API, free, ungated
|
| 69 |
+
LLMProvider.HUGGINGFACE: "mistralai/Mistral-7B-Instruct-v0.2",
|
| 70 |
LLMProvider.LM_STUDIO: "google/gemma-3-27b"
|
| 71 |
}
|
| 72 |
return os.getenv("LLM_MODEL", defaults[self.provider])
|