File size: 1,540 Bytes
753d955
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
[
  {
    "error": "Model produces gibberish",
    "cause": "Wrong chat_format",
    "fix": "Set chat_format parameter (llama-3 for SmolLM/Llama, chatml for Qwen, gemma for Gemma)"
  },
  {
    "error": "Model repeats itself",
    "cause": "Small model limitation",
    "fix": "Use a larger model or lower temperature (0.3)"
  },
  {
    "error": "Model ignores instructions",
    "cause": "Raw text completion instead of chat",
    "fix": "Use create_chat_completion() not __call__()"
  },
  {
    "error": "Out of memory on phone",
    "cause": "Model too large for RAM",
    "fix": "Use Q4_K_M quant or smaller model (SmolLM2-135M = 101MB)"
  },
  {
    "error": "Very slow inference",
    "cause": "Large model on weak hardware",
    "fix": "Use 135M or 500M model, or Q4 quantization"
  },
  {
    "error": "Model loads but no output",
    "cause": "Interactive mode in llama-cli",
    "fix": "Add -st flag for single-turn mode"
  },
  {
    "error": "ADB push fails on Windows",
    "cause": "MSYS path conversion",
    "fix": "Use MSYS_NO_PATHCONV=1 before adb command"
  },
  {
    "error": "Arabic text garbled",
    "cause": "Tokenizer not supporting Arabic",
    "fix": "Use Gemma-2B-Arabic with gemma chat format"
  },
  {
    "error": "Function calling fails",
    "cause": "Model not fine-tuned for FC",
    "fix": "Use strong system prompt with function definitions"
  },
  {
    "error": "Model says 'I don't know'",
    "cause": "Small model knowledge limit",
    "fix": "Use larger model (1B+) for factual questions"
  }
]