Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
norm
vllm
Commits
7c600440
Unverified
Commit
7c600440
authored
Nov 23, 2023
by
Woosuk Kwon
Committed by
GitHub
Nov 23, 2023
Browse files
Fix model docstrings (#1764)
parent
e0c6f556
Changes
14
Hide whitespace changes
Inline
Side-by-side
Showing
14 changed files
with
14 additions
and
70 deletions
+14
-70
vllm/model_executor/models/aquila.py
vllm/model_executor/models/aquila.py
+1
-5
vllm/model_executor/models/baichuan.py
vllm/model_executor/models/baichuan.py
+1
-5
vllm/model_executor/models/bloom.py
vllm/model_executor/models/bloom.py
+1
-5
vllm/model_executor/models/chatglm.py
vllm/model_executor/models/chatglm.py
+1
-5
vllm/model_executor/models/gpt2.py
vllm/model_executor/models/gpt2.py
+1
-5
vllm/model_executor/models/gpt_bigcode.py
vllm/model_executor/models/gpt_bigcode.py
+1
-5
vllm/model_executor/models/gpt_j.py
vllm/model_executor/models/gpt_j.py
+1
-5
vllm/model_executor/models/gpt_neox.py
vllm/model_executor/models/gpt_neox.py
+1
-5
vllm/model_executor/models/llama.py
vllm/model_executor/models/llama.py
+1
-5
vllm/model_executor/models/mistral.py
vllm/model_executor/models/mistral.py
+1
-5
vllm/model_executor/models/opt.py
vllm/model_executor/models/opt.py
+1
-5
vllm/model_executor/models/phi_1_5.py
vllm/model_executor/models/phi_1_5.py
+1
-5
vllm/model_executor/models/qwen.py
vllm/model_executor/models/qwen.py
+1
-5
vllm/model_executor/models/yi.py
vllm/model_executor/models/yi.py
+1
-5
No files found.
vllm/model_executor/models/aquila.py
View file @
7c600440
...
@@ -20,11 +20,7 @@
...
@@ -20,11 +20,7 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# See the License for the specific language governing permissions and
# limitations under the License.
# limitations under the License.
"""Inference-only LLaMA model compatible with HuggingFace weights.
"""Inference-only LLaMA model compatible with HuggingFace weights."""
The input of the model is flattened to a 1D tensor of tokens. The model uses
InputMetadata to extract the original 2D shape of the input.
"""
from
typing
import
Any
,
Dict
,
List
,
Optional
,
Tuple
from
typing
import
Any
,
Dict
,
List
,
Optional
,
Tuple
import
torch
import
torch
...
...
vllm/model_executor/models/baichuan.py
View file @
7c600440
...
@@ -17,11 +17,7 @@
...
@@ -17,11 +17,7 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# See the License for the specific language governing permissions and
# limitations under the License.
# limitations under the License.
"""Inference-only BaiChuan model compatible with HuggingFace weights.
"""Inference-only BaiChuan model compatible with HuggingFace weights."""
The input of the model is flattened to a 1D tensor of tokens. The model uses
InputMetadata to extract the original 2D shape of the input.
"""
import
math
import
math
from
typing
import
List
,
Optional
,
Tuple
from
typing
import
List
,
Optional
,
Tuple
...
...
vllm/model_executor/models/bloom.py
View file @
7c600440
...
@@ -15,11 +15,7 @@
...
@@ -15,11 +15,7 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# See the License for the specific language governing permissions and
# limitations under the License.
# limitations under the License.
"""Inference-only BLOOM model compatible with HuggingFace weights.
"""Inference-only BLOOM model compatible with HuggingFace weights."""
The input of the model is flattened to a 1D tensor of tokens. The model uses
InputMetadata to extract the original 2D shape of the input.
"""
import
math
import
math
from
typing
import
List
,
Optional
,
Tuple
from
typing
import
List
,
Optional
,
Tuple
...
...
vllm/model_executor/models/chatglm.py
View file @
7c600440
# coding=utf-8
# coding=utf-8
# Adapted from
# Adapted from
# https://github.com/THUDM/ChatGLM2-6B
# https://github.com/THUDM/ChatGLM2-6B
"""Inference-only ChatGLM model compatible with THUDM weights.
"""Inference-only ChatGLM model compatible with THUDM weights."""
The input of the model is flattened to a 1D tensor of tokens. The model uses
InputMetadata to extract the original 2D shape of the input.
"""
from
typing
import
List
,
Optional
,
Tuple
from
typing
import
List
,
Optional
,
Tuple
import
torch
import
torch
...
...
vllm/model_executor/models/gpt2.py
View file @
7c600440
...
@@ -16,11 +16,7 @@
...
@@ -16,11 +16,7 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# See the License for the specific language governing permissions and
# limitations under the License.
# limitations under the License.
"""Inference-only GPT-2 model compatible with HuggingFace weights.
"""Inference-only GPT-2 model compatible with HuggingFace weights."""
The input of the model is flattened to a 1D tensor of tokens. The model uses
InputMetadata to extract the original 2D shape of the input.
"""
from
typing
import
List
,
Optional
,
Tuple
from
typing
import
List
,
Optional
,
Tuple
import
torch
import
torch
...
...
vllm/model_executor/models/gpt_bigcode.py
View file @
7c600440
...
@@ -17,11 +17,7 @@
...
@@ -17,11 +17,7 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# See the License for the specific language governing permissions and
# limitations under the License.
# limitations under the License.
"""Inference-only GPTBigCode model compatible with HuggingFace weights.
"""Inference-only GPTBigCode model compatible with HuggingFace weights."""
The input of the model is flattened to a 1D tensor of tokens. The model uses
InputMetadata to extract the original 2D shape of the input.
"""
from
typing
import
List
,
Optional
,
Tuple
from
typing
import
List
,
Optional
,
Tuple
import
torch
import
torch
...
...
vllm/model_executor/models/gpt_j.py
View file @
7c600440
...
@@ -15,11 +15,7 @@
...
@@ -15,11 +15,7 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# See the License for the specific language governing permissions and
# limitations under the License.
# limitations under the License.
"""Inference-only GPT-J model compatible with HuggingFace weights.
"""Inference-only GPT-J model compatible with HuggingFace weights."""
The input of the model is flattened to a 1D tensor of tokens. The model uses
InputMetadata to extract the original 2D shape of the input.
"""
from
typing
import
List
,
Optional
,
Tuple
from
typing
import
List
,
Optional
,
Tuple
import
torch
import
torch
...
...
vllm/model_executor/models/gpt_neox.py
View file @
7c600440
...
@@ -15,11 +15,7 @@
...
@@ -15,11 +15,7 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# See the License for the specific language governing permissions and
# limitations under the License.
# limitations under the License.
"""Inference-only GPT-NeoX model compatible with HuggingFace weights.
"""Inference-only GPT-NeoX model compatible with HuggingFace weights."""
The input of the model is flattened to a 1D tensor of tokens. The model uses
InputMetadata to extract the original 2D shape of the input.
"""
from
typing
import
List
,
Optional
,
Tuple
from
typing
import
List
,
Optional
,
Tuple
import
torch
import
torch
...
...
vllm/model_executor/models/llama.py
View file @
7c600440
...
@@ -20,11 +20,7 @@
...
@@ -20,11 +20,7 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# See the License for the specific language governing permissions and
# limitations under the License.
# limitations under the License.
"""Inference-only LLaMA model compatible with HuggingFace weights.
"""Inference-only LLaMA model compatible with HuggingFace weights."""
The input of the model is flattened to a 1D tensor of tokens. The model uses
InputMetadata to extract the original 2D shape of the input.
"""
from
typing
import
Any
,
Dict
,
List
,
Optional
,
Tuple
from
typing
import
Any
,
Dict
,
List
,
Optional
,
Tuple
import
torch
import
torch
...
...
vllm/model_executor/models/mistral.py
View file @
7c600440
...
@@ -20,11 +20,7 @@
...
@@ -20,11 +20,7 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# See the License for the specific language governing permissions and
# limitations under the License.
# limitations under the License.
"""Inference-only Mistral model compatible with HuggingFace weights.
"""Inference-only Mistral model compatible with HuggingFace weights."""
The input of the model is flattened to a 1D tensor of tokens. The model uses
InputMetadata to extract the original 2D shape of the input.
"""
from
typing
import
List
,
Optional
,
Tuple
from
typing
import
List
,
Optional
,
Tuple
import
torch
import
torch
...
...
vllm/model_executor/models/opt.py
View file @
7c600440
...
@@ -16,11 +16,7 @@
...
@@ -16,11 +16,7 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# See the License for the specific language governing permissions and
# limitations under the License.
# limitations under the License.
"""Inference-only OPT model compatible with HuggingFace weights.
"""Inference-only OPT model compatible with HuggingFace weights."""
The input of the model is flattened to a 1D tensor of tokens. The model uses
InputMetadata to extract the original 2D shape of the input.
"""
from
typing
import
List
,
Optional
,
Tuple
from
typing
import
List
,
Optional
,
Tuple
import
torch
import
torch
...
...
vllm/model_executor/models/phi_1_5.py
View file @
7c600440
...
@@ -34,11 +34,7 @@
...
@@ -34,11 +34,7 @@
# CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
# CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
# OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
# OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
"""Inference-only Phi-1.5 model compatible with HuggingFace weights.
"""Inference-only Phi-1.5 model compatible with HuggingFace weights."""
The input of the model is flattened to a 1D tensor of tokens. The model uses
InputMetadata to extract the original 2D shape of the input.
"""
from
typing
import
List
,
Optional
,
Tuple
from
typing
import
List
,
Optional
,
Tuple
import
torch
import
torch
...
...
vllm/model_executor/models/qwen.py
View file @
7c600440
...
@@ -3,11 +3,7 @@
...
@@ -3,11 +3,7 @@
# https://huggingface.co/Qwen/Qwen-7B/blob/main/modeling_qwen.py
# https://huggingface.co/Qwen/Qwen-7B/blob/main/modeling_qwen.py
# Copyright (c) Alibaba Cloud.
# Copyright (c) Alibaba Cloud.
# LICENSE: https://huggingface.co/Qwen/Qwen-7B/blob/main/LICENSE
# LICENSE: https://huggingface.co/Qwen/Qwen-7B/blob/main/LICENSE
"""Inference-only QWen model compatible with HuggingFace weights.
"""Inference-only QWen model compatible with HuggingFace weights."""
The input of the model is flattened to a 1D tensor of tokens. The model uses
InputMetadata to extract the original 2D shape of the input.
"""
from
typing
import
Any
,
Dict
,
List
,
Optional
,
Tuple
from
typing
import
Any
,
Dict
,
List
,
Optional
,
Tuple
import
torch
import
torch
...
...
vllm/model_executor/models/yi.py
View file @
7c600440
...
@@ -20,11 +20,7 @@
...
@@ -20,11 +20,7 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# See the License for the specific language governing permissions and
# limitations under the License.
# limitations under the License.
"""Inference-only Yi model (https://01.ai) compatible with HuggingFace weights.
"""Inference-only Yi model (https://01.ai) compatible with HuggingFace weights."""
The input of the model is flattened to a 1D tensor of tokens. The model uses
InputMetadata to extract the original 2D shape of the input.
"""
from
typing
import
Any
,
Dict
,
List
,
Optional
,
Tuple
from
typing
import
Any
,
Dict
,
List
,
Optional
,
Tuple
import
torch
import
torch
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment