llamafactory

v0.9.5 safe
3.8
Low Risk

Unified Efficient Fine-Tuning of 100+ LLMs

📦 Package Quality Overall: Low (4.6/10)

◈ Medium Test Suite 6.0

Partial test coverage signals detected

  • 2 test file(s) detected (e.g. test_image.py)
◈ Medium Documentation 7.0

Some documentation present

  • 3 documentation file(s) (e.g. conf.py)
  • Detailed PyPI description (67744 chars)
○ Low Contributing Guide 4.0

No contributing guide or governance files found

  • Development Status classifier >= Beta
◈ Medium Type Annotations 5.0

Partial type annotation coverage

  • 254 type-annotated function signatures detected in source
○ Low Multiple Contributors 1.0

Could not retrieve contributor data from GitHub

  • GitHub API error: 401

🔬 Heuristic Checks

⚠ Outbound Network Calls score 7.5

Found 5 network call pattern(s)

  • image_stream = requests.get(image_url, stream=True).raw images.appe
  • video_stream = requests.get(video_url, stream=True).raw videos.appe
  • audio_stream = requests.get(audio_url, stream=True).raw audios.appe
  • y: response = requests.get(f"{self.base_url}/get_model_info", timeout=5)
  • ora0"] response = requests.post(f"{self.base_url}/generate", json=json_data, stream=True)
⚠ Code Obfuscation score 10.0

Found 5 obfuscation pattern(s)

  • image_stream = io.BytesIO(base64.b64decode(image_url.split(",", maxsplit=1)[1])) el
  • video_stream = io.BytesIO(base64.b64decode(video_url.split(",", maxsplit=1)[1])) el
  • audio_stream = io.BytesIO(base64.b64decode(audio_url.split(",", maxsplit=1)[1])) el
  • oice_probs, dim=-1)] def eval(self) -> None: eval_task = self.eval_args.task.split
  • al() -> None: Evaluator().eval() # Copyright 2025 the LlamaFactory team. # # Licensed unde
⚠ Shell / Subprocess Execution score 6.0

Found 3 shell execution pattern(s)

  • odes}" process = subprocess.run( ( "torchrun --nnodes {r
  • ty risk process = subprocess.run( ( "torchrun --nnodes {n
  • # NOTE: DO NOT USE shell=True to avoid security risk process = subprocess.run
⚠ Credential Harvesting score 5.0

Found 2 credential access pattern(s)

  • ( api_key="{}".format(os.getenv("API_KEY", "0")), base_url="http://localhost:{}/v1".format(o
  • rs=["*"], ) api_key = os.getenv("API_KEY") security = HTTPBearer(auto_error=False) async de
✓ Typosquatting

No typosquatting candidates detected

✓ Registered Email Domain

Email domain looks legitimate: buaa.edu.cn>

⚠ Suspicious Page Links score 2.0

Found 1 suspicious link(s) on the package page

  • Non-HTTPS external link: http://arxiv.org/abs/2403.13372}
⚠ Git Repository History score 3.0

GitHub API error: 401

  • GitHub API error: 401
⚠ Maintainer History score 4.0

2 maintainer concern(s) found

  • Author name is missing or very short
  • Author "" appears to have only 1 package on PyPI (new or inactive account)
✓ Known CVE Vulnerabilities

No known vulnerabilities found in OSV database.

💡 AI App Starter Prompt

Use this prompt to build a project with llamafactory
Build a simple Python application using the llamafactory package to demonstrate its core features.

💬 Discussion Feed

Leave a comment

No discussion yet. Be the first to share your thoughts!