cannot run fine-tuned gpt-oss model correctly
Mantenedores costumam responder em até 1 dia
Ninguém assumiu esta issue ainda.
Avaliação
- Dificuldade
- 4/5
- Tempo estimado
- 3-5 dias
- Facilidade para iniciantes
- 25/100
- Tipo de issue
- Bug
- Clareza
- Precisa de esclarecimento
- Status de atividade
- Estagnada
- Stack de tecnologia
- python
- Domínio
- ai, backend-api-design, machine-learning
Direção de pesquisa
A issue relata uma saída incorreta de um modelo GPT fine-tuned em comparação com o llama.cpp. O usuário fornece um caminho do modelo e o código de invocação. Comece examinando a inicialização da classe LlamaCpp e o método invoke nos bindings do llama-cpp-python. Compare a formatação da saída e o processamento de tokens com o comportamento nativo do llama.cpp. Verifique se a issue está relacionada ao 'harmony format' ou a especificidades do carregamento de modelos fine-tuned. Reproduza o erro com o modelo e o prompt fornecidos para ver a saída divergente.
Escrita pelo modelo de indexação a partir do texto da issue.
Descrição
Expected Behavior
Should produce the similar output format as llamacpp
Current Behavior
The output is wrong. Maybe related to the harmony format?
The current output of llamacpp-python:
Answer: weak
Llama.generate: 7 prefix-match hit, remaining 1 prompt tokens to eval
form, also known as variational form or integrated form, is a reformulation of a differential equation that involves integrals rather than derivatives.
Question: what is strong form
Answer: strong form, also known as the standard form or classical form, is a formulation of a partial differential equation in which all terms involve derivatives.
Yes, what is weak solution? how to set of a) to b)
how
for
theorem
How do you like
of
Questionary
To solve
Sure
What if
question: strong form
(what is the strong form
# Environment and Context
Please provide detailed information about your computer setup. This is important in case the issue is not reproducible except for under certain specific conditions.
* Physical (or virtual) hardware you are using, e.g. for Linux:
`$ lscpu`
Architecture: x86_64
CPU op-mode(s): 32-bit, 64-bit
Byte Order: Little Endian
Address sizes: 48 bits physical, 48 bits virtual
CPU(s): 96
On-line CPU(s) list: 0-95
Thread(s) per core: 2
Core(s) per socket: 24
Socket(s): 2
NUMA node(s): 2
Vendor ID: AuthenticAMD
CPU family: 25
Model: 1
Model name: AMD EPYC 7413 24-Core Processor
Stepping: 1
Frequency boost: enabled
CPU MHz: 1498.207
CPU max MHz: 2650.0000
CPU min MHz: 1500.0000
BogoMIPS: 5299.85
Virtualization: AMD-V
L1d cache: 1.5 MiB
L1i cache: 1.5 MiB
L2 cache: 24 MiB
L3 cache: 256 MiB
NUMA node0 CPU(s): 0-23,48-71
NUMA node1 CPU(s): 24-47,72-95
* Operating System, e.g. for Linux:
`$ uname -a`
Linux athena 5.4.0-176-generic #196-Ubuntu SMP Fri Mar 22 16:46:39 UTC 2024 x86_64 x86_64 x86_64 GNU/Linux
* SDK version, e.g. for Linux:
$ python3 --version
Python 3.10.18
$ make --version
GNU Make 4.2.1
$ g++ --version
g++ (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0
# Failure Information (for bugs)
Just call the model, didn't produce the correct result. But llammacpp works well, give me the correct output.
# Steps to Reproduce
Please provide detailed steps for reproducing the issue. We are not sitting in front of your screen, so the more detail the better.
# Make sure the model path is correct for your system!
llm = LlamaCpp(
model_path="/mnt/a/jgz1751/finetune/step8GGUF/gguf/Model_Final-32x2.4B-Q8_0.gguf",
temperature=0.75,
max_tokens=2000,
top_p=1,
callback_manager=callback_manager,
verbose=True, # Verbose is required to pass to the callback manager
)
question = """
Question: what is weak form
"""
llm.invoke(question)
- Linguagem predominante
- Python
- Estrelas
- 10.6k
- Forks
- 1.5k
- Merge médio
- 5h 9min
- PRs com merge (30d)
- 3
Preparar o ambiente
- Sem Dockerfile nem arquivo Docker Compose
- Sem modelo de pull request
- Ler o guia de contribuição
Primeiros passos
- Leia a issue inteira e depois o guia de contribuição do projeto.
- Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
- Faça um fork do repositório e trabalhe em uma branch.
- Abra um pull request que referencie o número da issue.
Mais de abetlen/llama-cpp-python
-
Seven llama_sampler_init_* bindings admit keyword arguments that the ctypes function object silently dropsTalvez já em andamento @Belal0066 assumiu há 21 dias. Aberta
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 88/100
abetlen/llama-cpp-python#2371 ·
Mantenedores costumam responder em até 1 dia
-
uv add llama-cpp-python wheels fails for versions above 0.3.30Talvez já em andamento Um pull request vinculado a esta issue está aberto ou já foi mesclado. Aberta
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 65/100
abetlen/llama-cpp-python#2352 · 1 comentário · 2 reações ·
Mantenedores costumam responder em até 1 dia
-
Docs: consolidate build-from-source and GPU backend guideTalvez já em andamento Um pull request vinculado a esta issue está aberto ou já foi mesclado. Aberta
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 75/100
abetlen/llama-cpp-python#2314 ·
Mantenedores costumam responder em até 1 dia
-
Llama.embed() calls LlamaBatch.add_sequence with old 3-arg signature; missing logits_arrayTalvez livre de novo @lxcxjxhx assumiu há 98 dias e não há nenhum pull request aberto. Aberta
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 65/100
abetlen/llama-cpp-python#2211 · 2 comentários ·
Mantenedores costumam responder em até 1 dia
-
Llama() silently accepts and discards `embedding` kwarg; .embed() then raises confusinglyTalvez já em andamento @Anai-Guo assumiu há 39 dias. Aberta
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 65/100
abetlen/llama-cpp-python#2210 ·
Mantenedores costumam responder em até 1 dia
Todas as issues de abetlen/llama-cpp-python
Issues semelhantes
-
[Bug]: LangGraph Store sync put bypasses namespace validationTalvez já em andamento @ktz03 assumiu hoje. Aberta
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 72/100
volcengine/OpenViking#6050 ·
Mantenedores costumam responder em até 1 dia
-
[Bug]: Streamed /v1/chat/completions sends unredacted agent error text (keys) in the final chunkTalvez já em andamento @rodricksz4h5 assumiu hoje. Abertaarea/streaming comp/gateway P2 type/security
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 78/100
NousResearch/hermes-agent#138245 ·
Mantenedores costumam responder em até 1 dia
-
[oblt-aw][autodoc] Update user onboarding guide for mandatory trigger CODEOWNERS stepTalvez já em andamento @github-actions assumiu hoje. Aberta
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 66/100
Mantenedores costumam responder em até 1 dia
-
correction metadata
Dificuldade 2/5 Menos de uma hora Facilidade para iniciantes 68/100
acl-org/acl-anthology#10378 · 1 comentário ·
Mantenedores costumam responder em até 1 dia
-
cloudtrail_multi_region_enabled_logging_management_events fails when the advanced event selector has a custom nameTalvez já em andamento @12YYCCYY16 assumiu hoje. Aberta
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 78/100
prowler-cloud/prowler#13033 ·
Mantenedores costumam responder em até 1 dia