File size: 1,505 Bytes
ee6e328
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
<!--Copyright 2022 The HuggingFace Team. All rights reserved.

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with
the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on
an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the

โš ๏ธ Note that this file is in Markdown but contain specific syntax for our doc-builder (similar to MDX) that may not be
rendered properly in your Markdown viewer.

-->

# ๋‹ค์ค‘ GPU์—์„œ ํšจ์œจ์ ์ธ ์ถ”๋ก  [[efficient-inference-on-a-multiple-gpus]]

์ด ๋ฌธ์„œ์—๋Š” ๋‹ค์ค‘ GPU์—์„œ ํšจ์œจ์ ์œผ๋กœ ์ถ”๋ก ํ•˜๋Š” ๋ฐฉ๋ฒ•์— ๋Œ€ํ•œ ์ •๋ณด๊ฐ€ ํฌํ•จ๋˜์–ด ์žˆ์Šต๋‹ˆ๋‹ค.
<Tip>

์ฐธ๊ณ : ๋‹ค์ค‘ GPU ์„ค์ •์€ [๋‹จ์ผ GPU ์„น์…˜](./perf_infer_gpu_one)์—์„œ ์„ค๋ช…๋œ ๋Œ€๋ถ€๋ถ„์˜ ์ „๋žต์„ ์‚ฌ์šฉํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค. ๊ทธ๋Ÿฌ๋‚˜ ๋” ๋‚˜์€ ํ™œ์šฉ์„ ์œ„ํ•ด ๊ฐ„๋‹จํ•œ ๊ธฐ๋ฒ•๋“ค์„ ์•Œ์•„์•ผ ํ•ฉ๋‹ˆ๋‹ค.

</Tip>

## ๋” ๋น ๋ฅธ ์ถ”๋ก ์„ ์œ„ํ•œ `BetterTransformer` [[bettertransformer-for-faster-inference]]

์šฐ๋ฆฌ๋Š” ์ตœ๊ทผ ํ…์ŠคํŠธ, ์ด๋ฏธ์ง€ ๋ฐ ์˜ค๋””์˜ค ๋ชจ๋ธ์— ๋Œ€ํ•œ ๋‹ค์ค‘ GPU์—์„œ ๋” ๋น ๋ฅธ ์ถ”๋ก ์„ ์œ„ํ•ด `BetterTransformer`๋ฅผ ํ†ตํ•ฉํ–ˆ์Šต๋‹ˆ๋‹ค. ์ž์„ธํ•œ ๋‚ด์šฉ์€ ์ด ํ†ตํ•ฉ์— ๋Œ€ํ•œ [๋ฌธ์„œ](https://huggingface.co/docs/optimum/bettertransformer/overview)๋ฅผ ํ™•์ธํ•˜์‹ญ์‹œ์˜ค.