Skip to content

Segmentation fault in debug mode #508

@ufownl

Description

@ufownl

When I built and ran in debug mode, I got a warning in allocator.h followed by a segmentation fault:


  __ _  ___ _ __ ___  _ __ ___   __ _   ___ _ __  _ __
 / _` |/ _ \ '_ ` _ \| '_ ` _ \ / _` | / __| '_ \| '_ \
| (_| |  __/ | | | | | | | | | | (_| || (__| |_) | |_) |
 \__, |\___|_| |_| |_|_| |_| |_|\__,_(_)___| .__/| .__/
  __/ |                                    | |   | |
 |___/                                     |_|   |_|


tokenizer                     : [no path specified]
weights                       : gemma2-2b-it-sfp-single.sbs
compressed_weights            : [no path specified]
model                         : 
weight_type                   : sfp
max_generated_tokens          : 2048
prefill_tbatch                : 64
decode_qbatch                 : 16
multiturn                     : 1
image_file                    : [no path specified]

*Usage*
  Enter an instruction and press enter (%C resets conversation, %Q quits).

*Examples*
  - Write an email to grandma thanking her for the cookies.
  - What are some historical attractions to visit around Massachusetts?
  - Compute the nth fibonacci number in javascript.
  - Write a standup comedy bit about GPU programming.

> Hey, man!

[ Reading prompt ] Warn at allocator.h:237: Check why RowPtr stride=2048 < StrideForCyclicOffsets(cols=2048), T=4; this forces us to disable cyclic offsets.
Segmentation fault (core dumped)

Maybe there are hidden problems introduced.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions