Comments (5)
Hey @xianbaoqian, could you share a bit about what is the exact problem you're seeing? I see two problems above, and I'm unsure of which one is affecting you, I see this one first:
(base) [email protected]:$ conda conda create -n text-generation-inference python=3.11
usage: conda [-h] [-v] [--no-plugins] [-V] COMMAND ...
conda: error: argument COMMAND: invalid choice: 'conda' (choose from 'activate', 'deactivate', 'clean', 'compare'
, 'config', 'create', 'env', 'export', 'info', 'init', 'install', 'list', 'notices', 'package', 'remove', 'uninst
all', 'rename', 'run', 'search', 'update', 'upgrade', 'content-trust', 'doctor', 'repoquery', 'build', 'develop',
'metapackage', 'render', 'index', 'debug', 'inspect', 'convert', 'skeleton')
Here it seems like you're calling conda
twice.
I'm happy to help out, but it would be helpful if the formatting of the issue was easier to parse 🤗 thanks!
from text-generation-inference.
Hi @LysandreJik the problem is that after conda activate I still can't use text-generation-launcher as the binary file can't be found:
(base) [email protected]:$ conda activate text-generation-inference
(text-generation-inference) [email protected]:$ text-generation-launcher --model-id mistralai/Mistral-7B-Instruct-
v0.2
bash: text-generation-launcher: command not found
from text-generation-inference.
I updated the style (surrending it with a code block) to make it easier to read. The original format is indeed a bit misleading!
from text-generation-inference.
Hey @xianbaoqian, thanks for clearing the style. There is definitely an issue in the code you run:
$ conda create -n text-generation-inference python=3.11
$ conda activate text-generation-inference
$ text-generation-launcher --model-id mistralai/Mistral-7B-Instruct-v0.2
bash: text-generation-launcher: command not found
Here you're only creating a new conda environment and activating it. You named it text-generation-inference
, but that doesn't mean that it's installed.
If you took the example from this part of the README, it seems that you forgot this line:
+ BUILD_EXTENSIONS=True make install # Install repository and HF/transformer fork with CUDA kernels
text-generation-launcher --model-id mistralai/Mistral-7B-Instruct-v0.2
Beware: it's a long installation. Using TGI with the docker image is recommended as much faster.
from text-generation-inference.
Related Issues (20)
- API_KEY argument
- Fp8 support KV-Cache
- HuggingFaceM4/idefics2: TGI would crash when I set do_image_splitting to False
- What is TGI's graceful shutdown behavior? HOT 1
- Cannot load model HuggingFaceM4/idefics2-8b-AWQ HOT 5
- RuntimeError: FlashAttention only supports Ampere GPUs or newer. HOT 2
- GPU memory not saturated using microsoft/Phi-3-small-128k-instruct HOT 1
- Can I run text-generation-interface "offline" HOT 1
- Guide/support for quantization + MLPSpeculator HOT 2
- ROCm: Server error: transport error when running batch size >=2 (Falcon-11B) HOT 1
- ROCm: Support models with head_dim>128
- ROCm: mismatch in generation for gpt2
- Poor/inconsistent results from Phi-3-mini-128k HOT 1
- idefics2: Sizes of tensors must match except in dimension 0. Expected size 448 but got size 447 for tensor number 2 in the list. HOT 2
- Some typo error in the picture of flash_attention.md HOT 1
- docker-compose throws `flash attention is not installed` error HOT 3
- Phi-3-mini-128k crashes on simple query HOT 2
- Add Environment Variable for OTLP Service Name HOT 2
- ImportError: libcuda.so.1: cannot open shared object file: No such file or directory HOT 8
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from text-generation-inference.