Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/OpenBMB/ToolBench
/ llama_model.py
File
llama_model.py
toolbench/inference/LLM/llama_model.py:None–None ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
1
#!/usr/bin/env python
2
# coding=utf-8
3
from
typing
import
Optional, List, Mapping, Any
4
from
transformers
import
AutoTokenizer, AutoModelForCausalLM
Callers
nothing calls this directly
Calls
3
LlamaModel
Class · 0.85
change_messages
Method · 0.45
parse
Method · 0.45
Tested by
no test coverage detected