girish00 commited on
Commit
a9cd333
·
verified ·
1 Parent(s): 8f30364

improve cloud inference fallback

Browse files
Files changed (1) hide show
  1. README.md +3 -1
README.md CHANGED
@@ -153,7 +153,9 @@ python infer_cloud.py --repo-id your-username/your-model-name --prompt "Fix this
153
 
154
  If you already ran `hf auth login` or `huggingface-cli login`, you can omit `HF_TOKEN`; the saved token will be used automatically.
155
 
156
- `infer_cloud.py` applies the same JSON parsing, Python syntax check, relevancy score, hallucination flag, and auto-repair fallback as `infer_local.py`. Hosted Hugging Face API calls usually do not return token logits, so `important_tokens` may be empty and `confidence` may be `0.0` unless your endpoint returns token-level details.
 
 
157
 
158
  Explicit base model for LoRA adapter loading:
159
 
 
153
 
154
  If you already ran `hf auth login` or `huggingface-cli login`, you can omit `HF_TOKEN`; the saved token will be used automatically.
155
 
156
+ `infer_cloud.py` applies the same JSON parsing, Python syntax check, relevancy score, hallucination flag, and auto-repair fallback as `infer_local.py`. If Hugging Face cannot serve your custom model repo through an inference provider, the script automatically falls back to the local `model/` folder so the command still returns the local-style JSON. Use `--no-local-fallback` if you want cloud-only failure behavior.
157
+
158
+ Hosted Hugging Face API calls usually do not return token logits, so `important_tokens` may be empty and `confidence` may be `0.0` unless your endpoint returns token-level details. When the local fallback runs, those fields are computed the same way as `infer_local.py`.
159
 
160
  Explicit base model for LoRA adapter loading:
161